jEdit Community - Resources for users of the jEdit Text Editor
Archives
java.lang.NullPointerException: Null Pointer in Method Invocation at bsh.Name.invokeMethod(Name.java:844)
Submitted by barenca on Thursday, 9 August, 2007 - 00:16
Why every time a Macro fails, next time i try to execute it again the following message appears?:

java.lang.NullPointerException: Null Pointer in Method Invocation
at bsh.Name.invokeMethod(Name.java:844)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHCastExpression.eval(BSHCastExpression.java:60)
at bsh.BSHReturnStatement.eval(BSHReturnStatement.java:48)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BshMethod.invokeImpl(BshMethod.java:362)
at bsh.BshMethod.invoke(BshMethod.java:258)
at bsh.BshMethod.invoke(BshMethod.java:186)
at bsh.Name.invokeLocalMethod(Name.java:917)
at bsh.Name.invokeMethod(Name.java:804)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHVariableDeclarator.eval(BSHVariableDeclarator.java:86)
at bsh.BSHTypedVariableDeclaration.eval(BSHTypedVariableDeclaration.java:84)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BshMethod.invokeImpl(BshMethod.java:362)
at bsh.BshMethod.invoke(BshMethod.java:258)
at bsh.BshMethod.invoke(BshMethod.java:186)
at bsh.Name.invokeLocalMethod(Name.java:917)
at bsh.Name.invokeMethod(Name.java:804)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BshMethod.invokeImpl(BshMethod.java:362)
at bsh.BshMethod.invoke(BshMethod.java:258)
at bsh.BshMethod.invoke(BshMethod.java:186)
at bsh.Name.invokeLocalMethod(Name.java:917)
at bsh.Name.invokeMethod(Name.java:804)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHVariableDeclarator.eval(BSHVariableDeclarator.java:86)
at bsh.BSHTypedVariableDeclaration.eval(BSHTypedVariableDeclaration.java:84)
at bsh.Interpreter.eval(Interpreter.java:645)
at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:341)
at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:286)
at org.gjt.sp.jedit.BeanShell.runScript(BeanShell.java:212)
at org.gjt.sp.jedit.Macros$BeanShellHandler.runMacro(Macros.java:1013)
at org.gjt.sp.jedit.Macros$Macro.invoke(Macros.java:436)

Bug?

Thanks
indent block selections
Submitted by coolcat on Thursday, 9 August, 2007 - 03:30
In visual studio, if I 'block' select and hit tab, the whole block tabs over. In jedit, the whole block is deleted and replaced with a tab.

In visual studio I use this feature all the time, for aligning columns in text-based data tables (c/c++).

Thanks

ps. If this is already possible, my apologies, I'm new to the program.
Pressing '>' reports 'java.lang.NoSuchMethodError' error
Submitted by ironsidevsquincy on Thursday, 9 August, 2007 - 10:34
recently I've been getting a weird error message whenever I press '>' (i.e. shift and /)...


java.lang.NoSuchMethodError: org.gjt.sp.jedit.textarea.JEditTextArea.getBuffer()Lorg/gjt/sp/jedit/Buffer;
at xml.XmlPlugin.isDelegated(Unknown Source)
at xml.XmlActions.insertClosingTagKeyTyped(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at bsh.Reflect.invokeMethod(Reflect.java:134)
at bsh.Reflect.invokeStaticMethod(Reflect.java:98)
at bsh.Name.invokeMethod(Name.java:874)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BshMethod.invokeImpl(BshMethod.java:362)
at bsh.BshMethod.invoke(BshMethod.java:258)
at bsh.BshMethod.invoke(BshMethod.java:186)
at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:509)
at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:416)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:382)
at org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey(DefaultInputHandler.java:373)
at org.gjt.sp.jedit.input.AbstractInputHandler.processKeyEventKeyStrokeHandling(AbstractInputHandler.java:116)
at org.gjt.sp.jedit.gui.InputHandler.processKeyEvent(InputHandler.java:163)
at org.gjt.sp.jedit.textarea.TextArea.processKeyEvent(TextArea.java:4591)
at java.awt.Component.processEvent(Component.java:5815)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:697)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:962)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:834)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:661)
at java.awt.Component.dispatchEventImpl(Component.java:4282)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Everything works fine though, the angle bracket is ouputted, so the error is more of an annoyance then anything, but it is really annoying. Anybody have any ideas?

Darren
HTML edit mode wont deligate to PHP
Submitted by physcopanda on Thursday, 9 August, 2007 - 11:12
Help! I've tried downloading other edit HTML edit modes - and none of them delegate correctly.

This is a real hassle as my html scripts often have php embeded and I can't get jedit to highlight the code correctly unless I select PHP edit mode - then I lose my HTML formatting.

I've tried editing the catalog file (this just makes jedit lose all syntax highlighting if I add anything at all to it!)

Anyone got any advice for me? I've looked everywhere for answers so this posting is my last resort.

Thanks! - PS I'm using Jedit V 4.3Pre10 on windows vista (I've tried previous versions but they seem to behave the same)
docking and slow scrolling fix
Submitted by jav on Thursday, 9 August, 2007 - 20:39
I've been using jEdit since pre9 and currently moved to pre10.

In pre9 at times I had the 100% cpu utilization problem reported by others, which resulted in the main scrollbar being really slow among other things. In pre10 I haven't noticed the resource hogging problem anymore, but the scrollbar (and scrolling of code in general) often became unbearably slow.

In Global Options, Shortcuts, Close Current Docking Area the shortcut was for some reason C+e C` and whenever docking related functionality was fired up, this triggered an error that made jEdit scrolling unusable (11:17:59 PM [error] KeyEventTranslator: Invalid key stroke: C+e C`). Noticed it while browsing Troubleshooting,Activity Log. This problem manifested itself also while not having the main work area maximised. The fix? Clear the shortcut. The error is still fired up, but it doesn't cause any problems.

Maybe this was an unfortunate typo on my behalf, though I can't remember even messing with the shortcuts.

Leaving this here for anyone whom might stumble into jEdit behaving slowly.
SuperAbbrevs missing options
Submitted by sgtrock123 on Saturday, 11 August, 2007 - 00:09

Hi all,

I've installed and used SuperAbbrevs in the past, and recently re-installed it on a new machine after upgrading jEdit to 4.3pre9. I noticed that the option to "Expand Abbreviation" is now gone, and instead the only option available is to bring up a dialog box to type in the shortcut. Why was this removed? It seems cumbersome to me to force a mode switch, breaking the flow as I'm typing. It's simply not as fluid as the type-then-expand strategy.

This happens in the two latest versions available on SourceForge, so I reverted all the way back to 0.01 and it has the "Expand Abbreviation" option. However, it will not run under 4.3, presumably the jEdit API has changed (I'm not a jEdit expert), as attempting to tab from the inside of the snippet to the end throws the following error:

java.lang.NoSuchMethodError: org.gjt.sp.jedit.textarea.JEditTextArea.getBuffer()Lorg/gjt/sp/jedit/Buffer;
	at superabbrevs.SuperAbbrevs.nextAbbrev(SuperAbbrevs.java:155)
	at SuperAbbrevsPlugin.nextAbbrev(SuperAbbrevsPlugin.java:39)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at bsh.Reflect.invokeMethod(Reflect.java:134)
	at bsh.Reflect.invokeStaticMethod(Reflect.java:98)
	at bsh.Name.invokeMethod(Name.java:874)
        ... (40 more lines snipped)

(I'm using Java 1.5.0_06 on XP SP2, in case this is a bug I'm not aware of)

Any plans to bring this feature back, or is it gone for good?

Thanks...

Problems with C+c and C+v
Submitted by mamboze on Saturday, 11 August, 2007 - 09:52
Hi,
I recently migrated from win xp to ubuntu. I installed jEdit for work with ruby on rails and things are fine except for one little problem - isn't there always one.

The C+c sequence doesn't copy, it cuts and leaves a 'c' in the text, similarly with C+x, an 'x' is left. C+v copies and then appends a 'v'. The DELETE/INSERT alternatives work OK. This is no big deal but the C+c etc keystrokes work elsewhere in ubuntu so why not in jEdit.

Any suggestions on how this might be resolved would be much appreciated
Problems with C+c and C+v
Submitted by mamboze on Saturday, 11 August, 2007 - 09:58
Hi,
I recently migrated from win xp to ubuntu. I installed jEdit for work with ruby on rails and things are fine except for one little problem - isn't there always one.

The C+c sequence doesn't copy, it cuts and leaves a 'c' in the text, similarly with C+x, an 'x' is left. C+v copies and then appends a 'v'. The DELETE/INSERT alternatives work OK. This is no big deal but the C+c etc keystrokes work elsewhere in ubuntu so why not in jEdit.

Any suggestions on how this might be resolved would be much appreciated
Problems with C+c and C+v
Submitted by mamboze on Saturday, 11 August, 2007 - 10:08
Hi,
I recently migrated from win xp to ubuntu. I installed jEdit for work with ruby on rails and things are fine except for one little problem - isn't there always one.

The C+c sequence doesn't copy, it cuts and leaves a 'c' in the text, similarly with C+x, an 'x' is left. C+v copies and then appends a 'v'. The DELETE/INSERT alternatives work OK. This is no big deal but the C+c etc keystrokes work elsewhere in ubuntu so why not in jEdit.

Any suggestions on how this might be resolved would be much appreciated
AviSynth Edit-Mode (avs.xml v2.1 by Thorsten Willert)
Submitted by Thorsten Willert on Saturday, 11 August, 2007 - 18:43
Edit-Mode for AviSynth:
  • Auto-indent
  • Highlighting for all functions, types, keywords ...
  • Highlighting for all filters from http://avisynth.org/mediawiki/External_plugins

Changes in V2.1:
Updated plugin list (the same like on http://avisynth.org/)
Autocomplete not working
Submitted by sgtrock123 on Sunday, 12 August, 2007 - 19:03
Is there a known problem with 4.3pre9 not autocompleting HTML/XML tags? I upgraded to 4.3pre9 quite a while back, and though I can't confirm that it was the upgrade that removed the autocomplete it does seem like it has been "quite a long time" since I had autocomplete working in jEdit. Is there a configuration change that I can make?

To be clear, I'm not talking about the autocompletion of words in the buffer as provided by the TextAutocomplete plugin. I'm looking for the ability to type in <foo> and getting <foo>(cursor here)</foo> instead, with indention for block-level elements.

jEdit "used to" have this feature, and I haven't seen it in a long time. Any help greatly appreciated.

Thanks,
-dave
Enhance JEdit speed
Submitted by mabra on Tuesday, 14 August, 2007 - 17:34
Hi All !

Since a longer time, I am a big fan of JEdit. This is the one side. On the other hand, I must prevent me regularly from writing "JEdit is the world slowest editor" [So I don't put this into the subject Eye-wink ].
The usual problem - on windows so far - is that the process is outswapped and re-loading all parts needs a long time. I do not know why. This is true on all of my machines and between the slowest [450MHz] and the fastest [2.4GHz] is not much difference while working. The problem mostly appears, if JEdit is re-called from the taskbar [re-aktivated, made the top-level window now].

The Eclipse community has the same problem, see:

description [http://www.javaperformancetuning.com/news/roundup045.shtml] and
solution [http://suif.stanford.edu/pub/keepresident]

I found this solution today, while I was looking for something like that - due to the last big hung of JEdit. I'll just recommend to implement this solution for JEdit too.

Any comments are welcome!

Best regards,
mabra
Add directory reference for virtual directories/nodes in projectviewer
Submitted by mabra on Tuesday, 14 August, 2007 - 17:44
Hi All!

I use the projectviewer to organize much of my work. You can import new files to explicitely named nodes in the viewers tree. This is a very good option.

Sometimes, thes files imported into such a node are located elsewhere, but not within your project. If you later want to add more files to this node, you must locate the files deep in your tree.
It would be a good option to associate a physical directory to the node to prevent browsing again.

Just an idea.

Best regards,
mabra
How to make 'Tasklist' work with plain textfiles?
Submitted by mabra on Tuesday, 14 August, 2007 - 18:06
Hi All !

I am using the tasklist plugin to make notes inside my code. I wish to use this type of annotations for [plain] textfiles also. This looks easy, just go to the plugin options and select the edit mode.

But is does not work.

Any ideas? Each tip is really very welcome!

Best regards,
mabra
Why jEdit Rocks
Submitted by JonathanAquino on Thursday, 16 August, 2007 - 04:31
I've just written a rave review about our favorite editor, complete with numerous screenshots about the parts of it that I find most impressive:

http://jonaquino.blogspot.com/2007/08/why-jedit-text-editor-rocks.html
no answer first time(s) - why don't C+c and C+v work in ubuntu as they should
Submitted by mamboze on Monday, 20 August, 2007 - 05:37
Well, the title says most of it. I have used jEdit on win xp before, great editor, now on ubuntu, still a great editor but with one irritating hassle, C+c does a cut instead of a copy and leaves 'c' behind, C+v pastes and adds a 'v'. OK, I can use C+insert and S+insert,these work OK but these are listed only as alternative shortcuts in Options/Shortcuts.

Sure, jEdit rocks but it could rock a bit better for me if these shortcuts worked as designed and specified in the relevant Options section.

I'm not sure whether this is a bug (unlikely) or that I've overlooked some switch or other. Has anybody else experienced this problem?
no answer first time(s) - why don't C+c and C+v work in ubuntu as they should
Submitted by mamboze on Monday, 20 August, 2007 - 05:39
Well, the title says most of it. I have used jEdit on win xp before, great editor, now on ubuntu, still a great editor but with one irritating hassle, C+c does a cut instead of a copy and leaves 'c' behind, C+v pastes and adds a 'v'. OK, I can use C+insert and S+insert,these work OK but these are listed only as alternative shortcuts in Options/Shortcuts.

Sure, jEdit rocks but it could rock a bit better for me if these shortcuts worked as designed and specified in the relevant Options section.

I'm not sure whether this is a bug (unlikely) or that I've overlooked some switch or other. Has anybody else experienced this problem?
site feedback
Submitted by tonyhnz on Monday, 20 August, 2007 - 17:29
Firstly - the product itself is great, have worked with it using ruby and erlang now and found great plugins/tips that help productivity.
The site is another matter.., i apologize if these have been covered elsewhere.
The stylesheet is very bland and could do with revamp. I have messed with drupal in the past and know that it can look much better then this without too much effort. Maybe some sort of competition to choose a new theme ?
It is very difficult to search the forums to try to see if a particular question has already been asked. I am not sure what search method is used (maybe drupal built in) but i have found better results using google search. Maybe google search could be integrated into site.
Lastly the wiki seems to be completely hosed up apart from the home page ( i am using firefox ). I get all sorts of garbage displayed and cannot see any wiki content. I would suggest mediawiki be used instead and to have integrated logins from the drupal site.
I would like to see the website reflect the strength of the product as it may turn off some potential users in it's current state.
I am willing to help with this.
Associating Files With jEdit
Submitted by doggroomer on Monday, 20 August, 2007 - 18:07
I really like using jEdit. It is a wonderful piece of software.
But with version 4.2 there is no way to associate file types with jEdit.
I was looking for a way to associate file types with jEdit in Windows.
Windows will not let you associate an executeable ".jar" file with a file type.
I like the function in windows of just double clicking on the file name and
having the file load in a particular application. When a file is double clicked
in Windows the file name is passed to the program associated with that file.
From some simple testing I knew that jEdit would accept a command line argument
with the file name in it. So all you have to do is create a simple executeable
file that will pass its command line arguments to jEdit and load jEdit. I did
this using Visual Studio 2005.


Create a new windows application and name it "jEdit".

Make the Icon for the executeable
In the Solution Explorer right click on the jEdit project and select
"Properties".
In the main screen on the left hand tab section choose the "Application"
tab.
Under icon browse to the jEdit icon saved wherever jEdit was installed on
your computer.

Add this code in the form load event

Try
Dim jFile As String = ""
If My.Application.CommandLineArgs.Count = 0 Then
'There are no command line arguments
'So there is no File Name supplied
'Will just load Jedit when .exe is double clicked
jFile = Nothing
Else
'A file associated with this appliction is doubled clicked
'The file name is passed in the first command line argument
'Enclose filename in quotation marks in case of spaes in file name
jFile = Chr(34) & My.Application.CommandLineArgs.Item(0) & Chr(34)
End If
Dim applicationName As String = "C:\Program Files\jEdit\jedit.jar"
Dim jProcess As New System.Diagnostics.Process
jProcess.StartInfo.FileName = applicationName
jProcess.StartInfo.Arguments = jFile
jProcess.Start()
jProcess.Close()
Catch ex As Exception
MessageBox.Show(ex.Message, "jEdit Load Error")
End Try
Me.Visible = False
Me.Close()

The "C:\Program Files\jEdit\jedit.jar" is installation location for the jEdit
executeable. So change this as necessary.

Build the project

Navigate to the Visual Studio 2005 project folder for the jEdit project you
created and locate the executeable created after the build.

Save the ".exe" in the jEdit installation directory.

You now have a "jEdit.exe" that you can associate file types too.
Vertical lines marking block locations
Submitted by etiger13 on Monday, 20 August, 2007 - 20:42
Does anyone know how I can get the vertical lines showing where the tabs line up like here: http://www.rutherfurd.net/jEdit/jedit_ss3.jpg
the vertical lines I want start with the current tab and go all the way down to the next tab. not the lines in the gutter, but the lines in the actualy document itself
User login
Browse archives
« August 2007 »
MoTuWeThFrSaSu
 
2
4
5
8
10
13
15
17
18
19
23
27
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   108250
Context Free Art (*.cfdg)   0.31   46071
BBEdit scheme   1.0   18607
JBuilder scheme   .001   18508
ColdFusion scheme   1.0   18041
R Edit Mode - extensive version   0.1   17488
Advanced HTML edit mode   1.0   16222
Matlab Edit Mode   1.0   16086
jEdit XP icons   1.0   15245
XP icons for jEdit   1.1   14309