I cannot reproduce the bug, but I was looking at similar bugs of jEdit and it may be an installation problem.
Could you try to do the following action ?
Go to menu Utilities->Beanshell and choose evaluate beanshell expression
copy this expression into it
System.out.println("mode is "+jEdit.getMode("text"))
and check the activity log (Utilities->Troubleshooting->Activity Log)
If it is the same bug you will have
[notice] AWT-EventQueue-0: mode is null
(with the correct installation you must have [notice] AWT-EventQueue-0: mode is text)
It happens all the time with the same file. Now other files of that type (if there are others) will not open as well. Some are straight *.txt files others are not.
Attached is an example of the types that are not opening, just giving me a blank page and hanging JEdit.
From: Matthieu Casanova [mailto:firstname.lastname@example.org]
Sent: Friday, April 28, 2006 7:57 AM
To: Aclin, Keith A
Subject: Re: [ jEdit-users ] opening files issue
And when a file doesn't open, is it happening all the time or sometimes it opens ?
could you provide an example file ? is there something in the activity log ?
2006/4/28, Aclin, Keith A < Keith.Aclin@ca.com>:
No they are all different types of files (all text however). So there does not appear to be a pattern to it.
does all those files have the same extension ? is there something similar in all those files ?
2006/4/27, Aclin, Keith A <Keith.Aclin@ca.com >:
I have just installed JEdit 4.2 (final) and on some files open without any issue. However about 1/3 of the files are opening to blank pages. If I use something like Word or notepad the file opens correctly. But each time I attempt to open them with JEdit I get a blank page. Then once I attempt to close the file I get a BeanShell error It starts java.lang.NullPointerException:Mode must be non-null). This tells me that JEdit thinks the file is empty. However it prevents me from even writing into the file.
Is this a know bug? Is there a workaround for this issue?
Thank you in advance,
Keith A. Aclin