jEdit Community - Resources for users of the jEdit Text Editor
Find/Replace Dialog not working in pre13?
Submitted by christophergraz on Friday, 14 March, 2008 - 16:47
I'm trying the new pre13 release on Windows XP, and I'm getting a Java exception whenever I try to use the Find/Replace dialog. I've tried fresh installation (including clearing out any jedit config files in my personal folders, and not running any additional plugins) using both the native Windows installer as well as the Jar installer, with no difference.

Below is the exception. It looks as if the dialog is launched by running some kind of beanshell script inside of Jedit.

Is anyone having the same problem? Anyone have any workarounds? Anyone know where this beanshell definition lives (if I'm correct about how it works)?

java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.elementAt(Unknown Source)
at javax.swing.DefaultListModel.elementAt(Unknown Source)
at org.gjt.sp.jedit.gui.HistoryModel.getItem(HistoryModel.java:86)
at org.gjt.sp.jedit.search.SearchDialog.setSearchString(SearchDialog.java:151)
at org.gjt.sp.jedit.search.SearchDialog.showSearchDialog(SearchDialog.java:109)
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 org.gjt.sp.jedit.bsh.Reflect.invokeMethod(Reflect.java:134)
at org.gjt.sp.jedit.bsh.Reflect.invokeStaticMethod(Reflect.java:98)
at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:871)
at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at org.gjt.sp.jedit.bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at org.gjt.sp.jedit.bsh.BSHBlock.eval(BSHBlock.java:80)
at org.gjt.sp.jedit.bsh.BshMethod.invokeImpl(BshMethod.java:362)
at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:258)
at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:186)
at org.gjt.sp.jedit.BeanShellFacade.runCachedBlock(BeanShellFacade.java:224)
at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:443)
at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:383)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:349)
at org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey(DefaultInputHandler.java:197)
at org.gjt.sp.jedit.input.AbstractInputHandler.processKeyEventKeyStrokeHandling(AbstractInputHandler.java:364)
at org.gjt.sp.jedit.gui.InputHandler.processKeyEvent(InputHandler.java:152)
at org.gjt.sp.jedit.textarea.TextArea.processKeyEvent(TextArea.java:4731)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Can't confirm
by scaRFhogg on Fri, 14/03/2008 - 21:06
The dialog is working for me. I am using Linux (Kubuntu 7.10 Gutsy), though. Installed using the jar installer. Java version 1.6.0_03. Probably doesn't help Sad
 
Find/Replace in pre13
by JohnC on Sun, 16/03/2008 - 16:14
I got this as well but found a workaround. If you select some text in the buffer before clicking the find/replace button then it should work OK. The problem only occurred once after the initial install and after using the above workaround it didn't happen again.
 
Confirmed JohnC workaround
by christophergraz on Tue, 18/03/2008 - 15:42
It's my theory that this has something to do with loading the user's previous search history. If my guess is correct, this might only be a problem for those who completely wipe their previous code/configuration files and do a clean install (I haven't tested this theory though).

In any case, your workaround solved the problem for me. Thanks JohnC!
 
bug
by Robert Schwenn on Wed, 26/03/2008 - 15:46
Your theory is exactly right. That's a new bug of jEdit 4.3pre13.
Robert
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
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   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293