jEdit Community - Resources for users of the jEdit Text Editor
Archives
Problem trying to Exit JEdit
Submitted by yogesh_4u on Tuesday, 17 August, 2004 - 14:01
I have getting an un expected error trying to exit jedit. Below is the Stack Trace for the error.

java.lang.NegativeArraySizeException

	at org.gjt.sp.jedit.jEdit.getBuffers(jEdit.java:1947)

	at org.gjt.sp.jedit.PerspectiveManager.savePerspective(PerspectiveManager.java:147)

	at org.gjt.sp.jedit.jEdit.exit(jEdit.java:2470)

	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:324)

	at bsh.Reflect.invokeOnMethod(Reflect.java:149)

	at bsh.Reflect.invokeStaticMethod(Reflect.java:100)

	at bsh.Name.invokeMethod(Name.java:872)

	at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72)

	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:349)

	at bsh.BshMethod.invoke(BshMethod.java:246)

	at bsh.BshMethod.invoke(BshMethod.java:171)

	at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:523)

	at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76)

	at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229)

	at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:2907)

	at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:216)

	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)

	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)

	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)

	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)

	at javax.swing.AbstractButton.doClick(AbstractButton.java:289)

	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)

	at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)

	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)

	at java.awt.Component.processMouseEvent(Component.java:5100)

	at java.awt.Component.processEvent(Component.java:4897)

	at java.awt.Container.processEvent(Container.java:1569)

	at java.awt.Component.dispatchEventImpl(Component.java:3615)

	at java.awt.Container.dispatchEventImpl(Container.java:1627)

	at java.awt.Component.dispatchEvent(Component.java:3477)

	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)

	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)

	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)

	at java.awt.Container.dispatchEventImpl(Container.java:1613)

	at java.awt.Window.dispatchEventImpl(Window.java:1606)

	at java.awt.Component.dispatchEvent(Component.java:3477)

	at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)

	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)

	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)

	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Problem trying to Exit JEdit
Submitted by yogesh_4u on Tuesday, 17 August, 2004 - 14:04
I have getting an un expected error trying to exit jedit. Below is the Stack Trace for the error.

java.lang.NegativeArraySizeException

	at org.gjt.sp.jedit.jEdit.getBuffers(jEdit.java:1947)

	at org.gjt.sp.jedit.PerspectiveManager.savePerspective(PerspectiveManager.java:147)

	at org.gjt.sp.jedit.jEdit.exit(jEdit.java:2470)

	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:324)

	at bsh.Reflect.invokeOnMethod(Reflect.java:149)

	at bsh.Reflect.invokeStaticMethod(Reflect.java:100)

	at bsh.Name.invokeMethod(Name.java:872)

	at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72)

	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:349)

	at bsh.BshMethod.invoke(BshMethod.java:246)

	at bsh.BshMethod.invoke(BshMethod.java:171)

	at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:523)

	at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76)

	at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229)

	at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:2907)

	at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:216)

	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)

	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)

	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)

	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)

	at javax.swing.AbstractButton.doClick(AbstractButton.java:289)

	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)

	at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)

	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)

	at java.awt.Component.processMouseEvent(Component.java:5100)

	at java.awt.Component.processEvent(Component.java:4897)

	at java.awt.Container.processEvent(Container.java:1569)

	at java.awt.Component.dispatchEventImpl(Component.java:3615)

	at java.awt.Container.dispatchEventImpl(Container.java:1627)

	at java.awt.Component.dispatchEvent(Component.java:3477)

	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)

	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)

	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)

	at java.awt.Container.dispatchEventImpl(Container.java:1613)

	at java.awt.Window.dispatchEventImpl(Window.java:1606)

	at java.awt.Component.dispatchEvent(Component.java:3477)

	at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)

	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)

	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)

	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

DotComplete in jsp files
Submitted by Anonymous on Tuesday, 17 August, 2004 - 19:30
Is there anyway to configure DotComplete to recognize jsp file extensions?
OpenIt plugin loosing focus in jEdit 4.2pre15 on MacOS X 10.3.5
Submitted by Anonymous on Wednesday, 18 August, 2004 - 06:06
When I invoke OpenEdit (1.0.5), the dialog comes up, but immediately looses focus. If I click into the textbox, I can use the plugin. Any suggestions? Thanks.
better c syntax highlighting?
Submitted by kimjim on Wednesday, 18 August, 2004 - 22:12
Hello,
I just started to learn a bit C. Is there a mode file, plugin or something that would give me better C syntax highlighting in jEdit? I use jEdit everyday, mostly for html stuff, and I would like to use it for my C lessons too, but I find the default C highlighting a bit disapointing. For example, function names are not highlighted at all, although there is a setting for functions in the syntax highlighting options. I would love to have different syntax highlighting for function names and variable names, like in SubEthaEdit, if anybody knows this editor.
Sorry if this is a FAQ. I tried to use the search form to find an answer, but it doesn't use search strings shorter than 2 chars, so I can't search for something like "c mode".
Thanks, kimjim
Jedit 4.2final fails to launch using osx 10.3.5- java 1.4.2
Submitted by Anonymous on Thursday, 19 August, 2004 - 10:46
Tried reinstalling java jedit etc. rebooting etc. stil gives me the error message "The application JavaApplicationStub has unexpectedly quit."
Viewing XML Document As Tree
Submitted by Michael36 on Friday, 20 August, 2004 - 07:28
Hello,

I'm editing an XML Document with jEdit. How can I display the document in a tree?
There seems to be no menu item for this purpose. I've already installed various XML-libraries ('XML','XML-Indenter','xml-commons-resolver.jar').

Help would be great.

Greetings

Michael
Folding/Unfolding Element Nodes in XML-Document
Submitted by Michael36 on Friday, 20 August, 2004 - 07:48
Hello,

folding/unfolding for element nodes does not work in my XML-Document although there is one menu item ('Folding|Collapse/Expand Fold') provided for this purpose. How can I configure jEdit to do this job?

Any help wellcome,

Greetings

Michael
Adding new dtd or xsd for autocompletion
Submitted by dverdin on Friday, 20 August, 2004 - 10:01
Hi,

I want to use autocompletion in Jedit for XML documents.
These documents are used in cocoon to create forms. They have their own namespaces and dtd or xsd.
I would like to use the autocompletion fonction, but I don't know how to tell this to jedit. I guess I need to have local copies of the dtds somewhere on my system, and declare it to Jedit. How can I do it ?

Another question, probably related : I don't understand what are the catalogs in the XML plugin, what is their usage, and what kind of file they are supposed to be.

Well, it's probably dumb questions, but I'm quite new to Jedit, and I need to learn...
Hyperlink support in text buffer
Submitted by Anonymous on Friday, 20 August, 2004 - 10:06
Hello all,

first I want to thank all jEdit-Developers for their really great work! I love this Editor!
Nevertheless it would be great, if it would support hyperlinks in the text buffer.
So if you have constructs like http://www.jedit.org in your text buffer it would be helpfull if it would be highlighted and a klick or CTRL+klick would call the standard browser with the respective URL.

What do you think about such a feature?

Best regards,
Watcheck
Ruby edit mode with enhanced auto-indenting and class/instance variable highlighting (ruby.xml v0.3? by Ian McLean, Chris Morris, Christophe Grandsire & Robert McKinnon)
Submitted by robmckinnon on Sunday, 22 August, 2004 - 15:47

Another update of the Ruby mode file, which enhances v0.2 auto-indenting by adding indenting for the following: while, for, until, loop do, module, begin, unless. It also adds highlighting of class and instance variables, which was missing from the original mode file.

Use in combination with the Ruby auto indent and insert end macro to solve most of your Ruby indenting needs!

Ruby auto indent and insert end v0.6 (Ruby_auto_indent_and_insert_end.bsh v0.6 by Robert McKinnon)
Submitted by robmckinnon on Sunday, 22 August, 2004 - 16:12

Designed to be executed each time the enter key is pressed. Auto indents and inserts 'end' after the following: if, for, while, until, unless, def, case, class, module, begin, loop do, x do |y|. Also aligns else and elsif. Designed to work with the auto-indenting defined in Ruby edit mode v0.3.

Use in combination with the Ruby edit mode v0.3 to solve most of your Ruby indenting needs!

TO INSTALL:

  1. Place in directory: [user_home_dir]/.jedit/macros/Ruby
  2. Add the 'ENTER' key shortcut to this macro via:
    • Utilities -> Global Options -> Shortcuts -> Edit Shortcuts: Macros
  3. Install Ruby edit mode v0.3.
FTP plug-in does not work with recent previews
Submitted by sss4r on Sunday, 22 August, 2004 - 20:50
Hi, I've been having this problem with jEdit for a long time now, and I am hoping someone can help. I have been forced to continue using 4.1final because the FTP plug-in does not function properly for me when I try any of the recent 4.2 previews. As soon as I upgrade to 0.7.2 of the FTP plug-in, all I get is "loading..." when I try to open from a secure server. Normally I would be more patient, but there are plug-in products that I need to use that only work with the latest previews, but I can't sacrifice the FTP plug-in. I've seen others report this problem on the forum. Is there a fix? Are there plans to address this problem? Thank you! Let me know if you need more information....
Drag and drop to open
Submitted by Anonymous on Monday, 23 August, 2004 - 18:52
I'm using jEdit v4.1 final on Windows XP.

Is it possible to open files by dragging them into the application window? I get the "not allowed" curser when I try to do this. Thanks.

-Adam
Saving file changes permissions
Submitted by jrsupplee on Tuesday, 24 August, 2004 - 10:07
I am using Jedit 4.1Final on windows and whenever I save a file that is located on a Linux box it removes executable permissions from the file. So if my file is a script and had permissions 755, after I save it, it will have 644. Is there a fix for this behavior?
Find Next Selected (Find_Next_Selected.bsh v1.01 by Dan Ferreira)
Submitted by DanF on Tuesday, 24 August, 2004 - 18:19
Got this idea from UltraEdit32, where I'd often skip the Find dialog by just selecting text and searching for its next occurrence. I never found another editor that provided this simple functionality, and now jEdit can do it with this macro!

If there's no selection, it looks for the next occurrence of your last search (issues a "find-next" action). It's meant to be an improved "find-next", so you can remap your "find-next" shortcut to this macro if you want to.


New in version 1.01:

- Special behavior when regular expressions enabled: if the current selection matches your regexp search string, then it issues a "find-next" action (so it won't disrupt ongoing regexp searches); otherwise, the selected text becomes the new regexp search string; if the new regexp search string is invalid, a regular search is performed (sounds more complicated than it actually is, the point is that now it handles regular expressions nicely :-) )
Enhanced Docking windows for JEdit
Submitted by Anonymous on Tuesday, 24 August, 2004 - 20:33
Hello all,

Take a look at InfoNode http://www.infonode.net/. It has a cool Docking Window for Java its also available under GPL. what do you think about including it into JEdit?

-yogesh
jEdit CVS access
Submitted by curoles on Wednesday, 25 August, 2004 - 04:20
I made a plugin that I use myself for a while.
Now I would like to bring it into the CVS, so
I follow the instructions and ask Slava and M.Dillon
to add my ID in order to get access to the CVS and
have no reply from them. What is going on? What am
I doing wrong?
Invoking actions within a macro
Submitted by DanF on Wednesday, 25 August, 2004 - 06:26
Ok, here's how I'm doing it:
jEdit.getAction("find-next").invoke(view);
... but something's wrong. The action gets executed in some kind of strange silent mode. Messages aren't shown in the status bar (like "Search string not found!"), no confirm dialog box asks "Continue search from beginning?" (if auto-wrap is disabled), etc.

How do I invoke an action inside a macro? Are there other ways of doing this?
Hold down key macro
Submitted by Anonymous on Wednesday, 25 August, 2004 - 09:22
I want to write a macro that allows me to instruct a specific key to be held down for set period of time. For instance, i need to be able to instruct that the spacebar be held down for x seconds.

Is this possible and how do i go about it?

Thanks in advance.
User login
Browse archives
« August 2004 »
MoTuWeThFrSaSu
 
15
16
21
26
 
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