Creating a macro that configures Buffer Options and ConfigurableFoldPlugin
Submitted by
mbisping on
Tuesday, 7 August, 2007 - 13:38
Hi there,
I'd like to have a macro that sets the buffer option folding to custom and configures the ConfigurableFoldPlugin to use
Eureka...at last
Submitted by
JimT on
Tuesday, 7 August, 2007 - 15:30
I'm an industrial robot code monkey, and have been using a commercial editor for some years now, the problem is that editors are rarely writtem with robots in mind, and the one I was using has slowly become more difficult to use with each upgrade.
I did look at Java a few years ago, but was put off by what I took to be bloat.
Then I found jEdit. Sweeeet. Thanks guys, you've done a superb job of it.
So as of last Friday I've been converted. I read the "writing edit modes" manpage and within 20 mins had a working install.
I look forward to being able to upload modes for a couple of robots in the near future, as soon as I have time to figure out how to do it properly.
Well done guys.
JimT
Eureka...at last
Submitted by
JimT on
Tuesday, 7 August, 2007 - 15:31
I'm an industrial robot code monkey, and have been using a commercial editor for some years now, the problem is that editors are rarely writtem with robots in mind, and the one I was using has slowly become more difficult to use with each upgrade.
I did look at Java a few years ago, but was put off by what I took to be bloat.
Then I found jEdit. Sweeeet. Thanks guys, you've done a superb job of it.
So as of last Friday I've been converted. I read the "writing edit modes" manpage and within 20 mins had a working install.
I look forward to being able to upload modes for a couple of robots in the near future, as soon as I have time to figure out how to do it properly.
Well done guys.
JimT
Matching end-of-line with $
Submitted by
JasonHeiser on
Tuesday, 7 August, 2007 - 19:51
This has been broken (at least for me) since 4.3pre8 or so. I was hoping that 4.3pre10 would fix it, but I'm disappointed to discover that I still can't use $ to match the end of a line. Since first encountering this problem, I've been matching on newline characters. It's not perfect; for instance, it doesn't work on the last line in a file. Is there a better workaround or fix I can try?
Jason Heiser
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
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)
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