XML plugin causing java process to go to 95%+ cpu
Submitted by
elsigh on
Monday, 16 October, 2006 - 04:36
Hey folks, I've isolated this issue to the XML plugin. I love the XML plugin, but when I have it on, after some amount of time, say 10 min., I notice my processor is chugging and I look at top - and there's java, at the top of the list, consuming like 95%+ cpu. I'm running Sun JDK 1.5 on linux.
PS - Did I mention I love jEdit?
HTML Strong tags (HTML_Strong.bsh v1.0 by grasshopper)
Submitted by
grasshopper on
Monday, 16 October, 2006 - 10:59
A simple macro to enclose a string in strong tags.
Short but frustrating black screen [4.3p7]
Submitted by
Baldurien on
Monday, 16 October, 2006 - 12:29
Hi,
Before I try to send a bug report, I'd like to know a solution to my problem, or perhaps user in the same condition than me.
I had run jEdit 4.3pre5 to 4.3pre6 on jdk1.5_06 to jdk1.5_08*, and now the latest jEdit - 4.3p7 - on jdk1.5_08, all on WinXP Pro SP2.
(* 4.3p5 with jdk1.5_06, 4.3p6 with jdk1.5_06, and 4.3p6 with jdk1.5_08)
In all of this use of jEdit, I had that black screen that appeared a short time (enough to be noticable), and it seems to be worse in 4.3p7. The black screen appear for example when I go to help, or when a new window spawn (like popup menu, etc).
I'm running it on a GeForge 7900GTO+512Ram, testing to disable direct draw in Java, but no : that black screen is still there.
I also installed the jdk1.5_09, and will test with it.
Is that a real problem?
[Note : I tested that with a lot of plug in installed, Have to try it with only a short set of them]
How to use several folding modes at the same time?
Submitted by
wildemar on
Monday, 16 October, 2006 - 15:16
When writing code I would very much like to use language-specific folding for language structures in addition to expclicit folding for logical groups of lines. Is that at all possible? If so, how?
thx alot
wildemar
XML plugin causing java process to use 95%+ cpu
Submitted by
elsigh on
Monday, 16 October, 2006 - 18:33
Hey folks, I've isolated this issue to the XML plugin. I love the XML plugin, but when I have it on, after some amount of time, say 10 min., I notice my processor is chugging and I look at top - and there's java, at the top of the list, consuming like 95%+ cpu. I'm running Sun JDK 1.5 on linux and jEdit pre7.
Maybe it's an option in the plugin manager? Any other linux jEdit users running with the XML plugin?
PS - Did I mention I love jEdit?
Cool macro to share
Submitted by
pieroxy on
Monday, 16 October, 2006 - 20:06
I have this macro I wrote a while ago that "indents" a piece of code (C, Java, Javascript). I like it over the various beautifiers plugins for the following reasons:
1. It keeps the lines as they are, it justs indents them, so that part of the coding style is preserved.
2. The macro will indent just the selection, not all the file, making the change an easy and visible one.
How shall I share the macro so as it is well exposed? It's around 500 lines and I doubt it is worth getting into the default install (how do one macro gets elected to get in the default install?). I'd also like some user feedback on it.
XRefactory and java 1.5
Submitted by
pieroxy on
Monday, 16 October, 2006 - 20:17
I have been happily using the XRefactory plugin for my java browsing for a while (completion of methods, going to definitions of methods, seeing all references to a method / variable) and am frustrated by the lack of Java 1.5 support. I'd like very much to start getting my hands dirty with 1.5's new syntax, but without these 3 features I am not willing to go very far.
Is there plugins doing all these three things that works with Java 1.5 ?
ruby snippets for jedit (ruby_rhtml_snippets.zip v1)
Submitted by
nicolias on
Tuesday, 17 October, 2006 - 00:07
These are the snippets that were at http://synthesis.sbecker.net/articles/2006/03/20/jedit-snippets-for-ruby-on-rails
How come I can't use Python interactively in the console (anymore)?
Submitted by
wildemar on
Tuesday, 17 October, 2006 - 16:46
WinXP SP2, Python 2.4 and 2.5, jEdit 4.3b7, Console 4.2.6.5
It used to be possible with some older version (a while back) but now it doesn't work anymore ...
thx
wildemar
Regular Expressions backreference feature
Submitted by
sjoaquim on
Thursday, 19 October, 2006 - 18:39
Hi,
I've tried to use the standard backreference for regular expressions (\1) in the "Replace with:" field of jEdit's Search and Replace with no success. I also tried to use variations of the common sintax for most regex-oriented languages like Perl or Ruby, which is something like this:
s/<span id=\"([^\"]*)\">/Value is equal to \1/g
But had no success.
Do you know if jEdit implement a different kind of backreference or if it really doesn't implement it at all? If so, wouldn't it be nice to have it?
Thanks!
Plugin install fails: An I/O error occurred (error in opening zip file)
Submitted by
cayhorstmann on
Friday, 20 October, 2006 - 05:08
I just installed 4.3pre7 and tried to install the XML plugin. The plugin files seem to get downloaded, and then I get a sequence of error dialogs "An I/O error occurred (error in opening zip file)". I use JDK6 (build 102) on Ubuntu 6.06 (Dapper).
I tried blowing away ~/.jedit, and the result is still the same.
I would appreciate any hints.
Thanks,
Cay
jedit ftp (sftp) plugin not working with openssh
Submitted by
eero on
Friday, 20 October, 2006 - 06:16
Problem appears with newer openssh version, is there working solution to this problem?
Updated Tcl Edit mode (tcl.xml v2006/10/20 by Jean-François Larvoire)
Submitted by
larvoire on
Friday, 20 October, 2006 - 14:56
Hello,
Here's a much improved Tcl language edit mode, based on the one in the latest source.
Changes:
- Fixed comments detection: Only # at the beginning of Tcl commands are comments!
- Quoted strings can span multiple lines.
- Added recursive in-string substituted command and variable analysis.
- Added numerous missing tcl keywords and variables up to version 8.4.14.
- Removed $ on global variable keywords, as they're often used with $::.
- Added Expect keywords, as KEYWORD2. ("send" was already in tk as KEYWORD2)
- Avoid colouring substituted variables that are homonyms of a keyword.
- Highlight hexadecimal numbers too.
Known limitations:
- Unbalanced quotes or brackets within braces, such as in regular expressions,
will confuse the analysis. Add behind the confusing instruction a ;# comment with
closing quotes and brackets, to trick it into thinking it's balanced again.
Known bugs (Were there before, and I failed to fix them):
- \c escape colouring does not work for escapes embedded in words.
I attemted numerous workarounds using spans and regexps, but they
all seem to fail to detect anything beginning with a \. And using
NO_ESCAPE="TRUE" does not help.
- {} within quoted strings should not affect indentation.
Any hint at how to fix the last two known bugs is welcome!
Trying to get code complete going on jedit 4.3pre7
Submitted by
Rom399 on
Saturday, 21 October, 2006 - 11:32
I've installed
JavaSide kick
Project Viewer
Ant Farm
running java 1.5
When i try and code complete in a class i get the following : error
java.lang.ArrayIndexOutOfBoundsException: -1:104
at org.gjt.sp.jedit.buffer.JEditBuffer.getText(JEditBuffer.java:520)
at sidekick.java.JavaCompletionFinder.getWordAtCursor(JavaCompletionFinder.java:90)
at sidekick.java.JavaCompletionFinder.complete(JavaCompletionFinder.java:51)
at sidekick.java.JavaParser.complete(JavaParser.java:637)
at sidekick.SideKickActions.complete(SideKickActions.java:101)
at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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:440)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:406)
at org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey(DefaultInputHandler.java:373)
at org.gjt.sp.jedit.gui.InputHandler.processKeyEventKeyStrokeHandling(InputHandler.java:295)
at org.gjt.sp.jedit.gui.InputHandler.processKeyEvent(InputHandler.java:184)
at org.gjt.sp.jedit.textarea.TextArea.processKeyEvent(TextArea.java:4557)
at java.awt.Component.processEvent(Component.java:5265)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:672)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:920)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:798)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:636)
at java.awt.Component.dispatchEventImpl(Component.java:3841)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Trying to get code complete going on jedit 4.3pre7
Submitted by
Rom399 on
Saturday, 21 October, 2006 - 11:58
I've installed
JavaSide kick
Project Viewer
Ant Farm
running java 1.5
When i try and code complete in a class i get the following : error
java.lang.ArrayIndexOutOfBoundsException: -1:104
at org.gjt.sp.jedit.buffer.JEditBuffer.getText(JEditBuffer.java:520)
at sidekick.java.JavaCompletionFinder.getWordAtCursor(JavaCompletionFinder.java:90)
at sidekick.java.JavaCompletionFinder.complete(JavaCompletionFinder.java:51)
at sidekick.java.JavaParser.complete(JavaParser.java:637)
at sidekick.SideKickActions.complete(SideKickActions.java:101)
at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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:440)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:406)
at org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey(DefaultInputHandler.java:373)
at org.gjt.sp.jedit.gui.InputHandler.processKeyEventKeyStrokeHandling(InputHandler.java:295)
at org.gjt.sp.jedit.gui.InputHandler.processKeyEvent(InputHandler.java:184)
at org.gjt.sp.jedit.textarea.TextArea.processKeyEvent(TextArea.java:4557)
at java.awt.Component.processEvent(Component.java:5265)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:672)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:920)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:798)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:636)
at java.awt.Component.dispatchEventImpl(Component.java:3841)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
javaIndent.bsh v1.0 by Pierre Grimaud
Submitted by
pieroxy on
Saturday, 21 October, 2006 - 13:53
This macro will ident the selected lines in the current buffer. The identation of the first line will serve as a reference.
Note that the code isn't changed, just some whitespaces added (or removed) at the beginning of each lines.
Line 38 and 67 to 81 you can configure your preferred indentation sizes.
Mac os X and JDK 1.5
Submitted by
damaru on
Saturday, 21 October, 2006 - 19:54
I am sure thisquestion hasbeen asked and answered manytimebut I couldn't yet find the info. . How do you changethe PATH and HOME of your java once Java1.5 is install ?
Thanks
Console subshell path
Submitted by
neurophyre on
Saturday, 21 October, 2006 - 23:29
Console doesn't recognize my 'subshell path' until I hit 'apply' in the plugin options every time after I load jEdit. This is extremely annoying and can't be working as intended. Is there a workaround for it?
How to launch jEdit from inside another Java program?
Sorry people this is probably a really dumb question but I've been searching the forum and the net for 2 hours and I can't find the answer.
I have a Java program that maintains a list of web pages. Presently the program is configurable to allow the user to select an editor of choice e.g. NotePad, WordPad, DreamWeaver etc. That editor is opened with the files that the user has selected from a list box. I would like it to be possible for jEdit to be used, however I have failed completely to get jEdit to launch. I have found numerous examples of code on the web that make a call like this -> jEdit.openFile(null, path) but when I use null for the View I get a null pointer exception. I've tried using jEdit.getCurrentView and that returns null (not surprisingly), I've even launched jEdit manually and getCurrentView still returns a null.
What am I missing, I assume this is possible? I don't want multiple instances, I just want a single instance of jEdit running with the ability to set it viewing one or more files that have been selected from inside of my Java program.
Any help most appreciated. I'm running jEdit 4.3pre7 under Windows XP Home.
Project(s)-wide SideKick
Submitted by
shlomy on
Monday, 23 October, 2006 - 13:46
The SideKick plugin currently provides a tree for the current buffer, which can be updated each time the buffer is modified or another buffer becomes the current buffer.
How about a project-wide SideKick? I normally work on an entire project, not a single buffer. I have many buffers open at the same time and I frequently switch between them (or open new ones). Nearly every single feature/bug fix I write involves several files. A project-wide SideKick could help navigate an entire project - for example, I don't need to know where a function is defined (or even type its name) in order to go to it. I can simply click it in the project-wide SideKick.
To be generally useful, a project-wide SideKick would probably need some filtering, but this in itself is an issue for another discussion. What do you think about a project-wide SideKick? The CtagsSideKick plugin, for example, could use existing (project-wide) tag files to generate much more information than it currently does.