jEdit Community - Resources for users of the jEdit Text Editor
Help! Can't get Python syntax highlighting to work
Submitted by kcstrom on Friday, 25 May, 2012 - 12:34
At work, others like to strip off the .py on some python files which wouldn't be a big deal, except they also have '#! python' instead of the more normal pattern of something like '#! /usr/bin/env python'. So I changed the /path/to/my/jedit/settings/catalog file to have a copy/paste of the python file mode from the /path/to/jedit/install/settings/modes/catalog file except I removed '*/' from the FIRST_LINE_GLOB so it would match both the normal and the less normal that is used at my work.

That was great - it now recognizes both file types as python. Unfortunately, I no longer have syntax highlighting for the Python edit mode. I've undone my changes, and updated from Python 4.5.0 to 4.5.1 just to make sure I hadn't modified the original catalog or did something else weird (I'm pretty sure I didn't anyway), but syntax highlighting for Python is still broken.

Please help!
Problem in file opening window
Submitted by jmmalmedy on Thursday, 24 May, 2012 - 11:52
Hi, In the file browser window, when I double-click the "roots" item, "loading" is briefly displayed but the files and directories list is never updated. If I then click the "refresh" button, the following error is reported: java.lang.NullPointerException at org.gjt.sp.jedit.browser.VFSDirectoryEntryTable.getExpandedDirectories(VFSDirectoryEntryTable.java:146) at org.gjt.sp.jedit.browser.BrowserView.saveExpansionState(BrowserView.java:147) at org.gjt.sp.jedit.browser.VFSBrowser.reloadDirectory(VFSBrowser.java:648) 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.invokeObjectMethod(Reflect.java:80) at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:855) 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:225) at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:423) at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:73) at org.gjt.sp.jedit.browser.VFSBrowser$BrowserActionContext.invokeAction(VFSBrowser.java:1988) at org.gjt.sp.jedit.browser.VFSBrowser$BrowserActionContext.invokeAction(VFSBrowser.java:1952) at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:212) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) 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.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(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.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(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.pumpEventsForFilter(Unknown Source) at java.awt.Dialog$1.run(Unknown Source) at java.awt.Dialog$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Unknown Source) at java.awt.Component.show(Unknown Source) at java.awt.Component.setVisible(Unknown Source) at java.awt.Window.setVisible(Unknown Source) at java.awt.Dialog.setVisible(Unknown Source) at org.gjt.sp.jedit.browser.VFSFileChooserDialog._init(VFSFileChooserDialog.java:363) at org.gjt.sp.jedit.browser.VFSFileChooserDialog.(VFSFileChooserDialog.java:73) at org.gjt.sp.jedit.browser.VFSFileChooserDialog.(VFSFileChooserDialog.java:57) at org.gjt.sp.jedit.GUIUtilities.showVFSFileDialog(GUIUtilities.java:940) 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:225) at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:423) at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:73) at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:342) at org.gjt.sp.jedit.jEdit$4.invokeAction(jEdit.java:3249) at org.gjt.sp.jedit.jEdit$4.invokeAction(jEdit.java:3231) at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:212) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) 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.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(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.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(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) The same problem happens in the File System Browser window. I've tried to reinstall jEdit (last version) and to delete all parameters but it does not solve the problem. Is there a way to avoid this problem, please? Thanks in advance.
Strange Behavior with Shift-C
Submitted by Cheruvim on Tuesday, 15 May, 2012 - 15:00
Not sure how this happened or how to reproduce it, however, in Jedit and only in Jedit, when I push shift-C It doesn't type a 'C' (which I just typed here on the same machine, a macbook pro OS 10.6). The strange thing is if I type shit-C in succession or if I type shift-C and then another key, I get a system beep.

What the heck is going on? Where on earth did Jedit get that mapped?
Issue running jEdit on Mac OS X 10.5.8 (Using OpenJDK7 bsd-port compiled against platform)
Submitted by jlove on Sunday, 22 April, 2012 - 09:11
Hi,

I love jEdit and use it all the time on my standard Linux desktop however I've recently purchased a PowerMac G4 and have managed to compile OpenJDK7 against the platform. Great... now I can upgrade to the latest version of jEdit!! I downloaded the source and compiled against my platform but due to complications I have to explicitly set Djava.awt.false=false as an option when running jEdit.

Everything loads correctly and I can browse through the menu items, install plugins etc however the one thing which doesn't work is keyboard input into buffers. When I try to type into a buffer no text appears and instead the output is directed to the console.

Could somebody please help me understand what is happening and perhaps suggest any way of avoiding this issue? I'm not afraid to get my hands dirty in the code if it comes to that but I'd appreciate a starting point!

Kind Regards,

JLove
jEdit hangs on Win7 32bit
Submitted by Dominicus on Tuesday, 17 April, 2012 - 05:37
I updated jEdit from 4.4.2 to 4.5.1 on Win 7 32-bit PC, and now my environment is toast.
Upon opening, gave me an I/O error related to "Sidekick". I uninstalled 4.5, and installed 4.4.2 back.
No luck.
I can open a file with code and move the cursor around, but as soon as I update anything (i.e. add or delete a single character), jEdit hangs.
I have to kill the process from Task Manager.
Tried uninstalling either of the two version and now both installations behave exactly same...hung after first interaction.
After uninstalling a version, I reboot to install another, and the install wizard tells me it needs to close an existing version of jEdit that's running...how can this be, after I've uninstalled and rebooted?
I suspect there's a component or accessory to jEdit that both corrupted and persists even after uninstall.
any clue how I can fix my environment to successfully reinstall and start from scratch?
No graphic display (window) when starting jedit - java process hangs
Submitted by rdehmel on Thursday, 15 March, 2012 - 15:57
Hi,
I have just installed jre 1.6 on my very very old Linux box. Suse LinuxEnterprise 1.0 (SLES Cool

de/jedit> java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
de/jedit> uname -a
Linux atgws-rdl 2.4.19-64GB-SMP #1 SMP Mon Oct 21 18:48:05 UTC 2002 i686 unknown
de/jedit>

When I try to install jedet the graphic window does not popup. One of the java processes uses 100% CPU time.

Trying text mode -> Installation of jedet is OK!

Trying to start jedit same as above: No window and one of the java processes uses 100% CPU time.

All other graphic stuff is fine on the linux box.

Any idea?

PS: I love jedit, because I use it already on windows.

Ruediger
How to get a function list of a JavaScript file with jEdit's Sidekick on a Mac?
Submitted by Ton on Wednesday, 14 March, 2012 - 13:57
I have a Mac with jEdit 4.5 installed on it, including the Sidekick and the JavaScript plugin from [1]. Now when I open the Sidekick window, I can choose from two JavaScript parsers (skrul-xml-javascript and skrul-javascript).

However, none of them parses my JavaScript file (the window only shows the document name with "Not parsed" underneath it). When I open a PHP file and choose my PHPParser, it does parse the file and shows clickable PHP function names.

Does anybody know what might cause this and/or how it can be solved?

[1] http://skrul.com/blog/projects/javascript/
Whitespace plug-in in v4.5
Submitted by CJreige on Tuesday, 13 March, 2012 - 15:41
Hi everybody.

I've upgraded to version 4.5 and I've only encountered a single issue. My Whitespace plug-in does not work and I've had to uninstall it. Now it does not even install. Has anyone else come across a similar problem? Any thoughts on a possible solution?

Cheers,
CHJ
Mouse Speed Halved?
Submitted by stretch6555 on Tuesday, 13 March, 2012 - 06:02
Hi,

I have this strange but really annoying problem with JEdit 4.5. Everytime a JEdit dialog box of any kind appears (for example, the Find/Replace dialog), the speed of my mouse is halved. Every time this happens, I have to go to my Windows 7 Control Panel and set the mouse speed back to its original speed (the maximum, which is what I prefer). Why is this happening? Is this a bug?
jedit 4.5 configuration and MacOS 10.7
Submitted by urbanatb on Wednesday, 7 March, 2012 - 03:37
I just installed jedit on my MAC and had hoped to simply copy over my .jedit settings from a Linux install. I presumed that the settings on the mac would be found in ~/.jedit, but this does not seem to be the case. Any idea where the settings might be located? I'm beginning to suspect that the JRE is actually not allowing jedit to read/write the settings. Possible?
JEdit hangs at "run startup scripts" in Mac OS X 10.6
Submitted by Ton on Thursday, 1 March, 2012 - 09:14
I installed JEdit 4.5 a few days ago and all seemed to work fine. In order to get the alt-key working, I did a few modifications in the startup.bsh-file in the application package, and after that the alt-key was working perfectly. However, the next day I tried to start up, it hangs at the "run startup scripts" message on the splash screen. I have no idea what could have changed in the mean time. I also tried opening a "fresh" application package (without the modifications I made) but that one had the same problem. Strange thing is that is doesn't crash: the jEdit menu is available and I can open the Preferences pane, and even change the Swing look & feel (though the apply-button does not work, when I reopen the prefs it does apply the changes), but the "run startup scripts" seems to take minutes and minutes.

Hope somebody can help! Thanks in advance.
XML Plugin : validation of xsi namespace
Submitted by emilise on Thursday, 9 February, 2012 - 10:24
Hello, I am using the XML plugin and every time I open files using the xsi namespace, errors are shown. Sample file : Error found : cvc-elt.4.2: Cannot resolve 'TransactionRequestType' to a type definition for element 'Transaction' This is just a sample, my real files use a custom namespace and schema, this schema validates ok but I always get the @xsi:type errors I also use Oxygen and these files and the @xsi:type are validated with no problem there. This only happens with the xsi namespace, not with other custom defined namespaces. I don't really know how to handle this. I have found that the xsi schema should be defined in the parser and can not be manually overriden, so I can't find a workaround for this... Thanks for any advice.
Nor BufferTabs or FTP will install!
Submitted by ImNew on Friday, 27 January, 2012 - 14:56
I downloaded jEdit and I did not do any adjustments, I went directly to the plugins and tried to install them but this came:

Plugin Error:
Error while downloading the plugin, please try another mirror

What does it mean and is there a fix for it?
Can not start cygwin shells from Console
Submitted by rovf on Tuesday, 24 January, 2012 - 12:34
I have a Console (System) window on Windows 7. From there, I can easily open a Windows command shell by typing "cmd". However if I invoke a Cygwin zsh or bash, this hangs forever.

I invoked them like this:

zsh -i
bash --login

The same happens, if I first create a cmd shell from jEdit console, and from *this* invoke zsh or bash.

Doing the same from a "normal" Windows CMD console works well. I wonder what special environment the jEdit console creates, so that the Cygwin shells don't work.
NetRexxJe Plugin does not load
Submitted by rovf on Friday, 20 January, 2012 - 10:39
It says on loading that it can't find the class REException, and suggest I should upgrade to a newer version.

I have installed the most recent version of the plugin, though.
How is PATH in Console determined?
Submitted by rovf on Tuesday, 17 January, 2012 - 09:35
On Windows 7:

I opened a new console using the menu item Plugins/Console/Shells/console.shell.system-show

In the resulting console Window, my PATH is set differently to what I have set using the Windows Control Center.

Now I wonder how jEdit sets up the PATH for the Console application. I checked the Console plugin user's guide, but couldn't find this topic being explained.
java.net.NoRouteToHostException: No route to host
Submitted by anonymous4711 on Friday, 13 January, 2012 - 19:33
hi all,

i just installed jedit using jedit4.5pre1install.jar

when i run 'update mirror list' in the plugin manager i get lots of erros stating with - see below.
(i had the same problem with jedit 4.2)

it makes no difference wether i turn the http proxy on or off. the proxy works fine for my firefox.

any pointers?
need more info (like OS/version/etc)?

18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: java.net.NoRouteToHostException: No route to host
18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: at java.net.PlainSocketImpl.socketConnect(Native Method)
18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: at java.net.Socket.connect(Socket.java:529)
18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: at java.net.Socket.connect(Socket.java:478)
18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
Help (F1) does not work - can not contact to server
Submitted by rovf on Wednesday, 11 January, 2012 - 09:30
Calling up Help (F1) does not open a help window.

The activity log does not show any error. Actually, it does not show any activity whatsoever, except a periodic entry saying

10:27:35 [AWT-EventQueue-0] [debug] EditBus: DynamicMenuChanged[menu=recent-files,source=null]

The problem occurs independent on whether I try to call up the help using the F1 key, or via the Help menu.

Any ideas why this doesn't work?
bug or feature? No copy&paste in Quicknotepad
Submitted by rovf on Tuesday, 10 January, 2012 - 12:05
(jEdit 4.5 running on Windows 7)

Copy & Paste (using Control-C and Control-V) does not work from and to Quicknotepad. Control-C also doesn't work on text selected at the "Tips of the Day". However, it works fine between edit pane.

Is this a bug, or is this feature deliberately not implemented?
Plugins Not Installing (Suspect Windows 7 "Feature")
Submitted by jgamble on Saturday, 7 January, 2012 - 00:42
I've installed jEdit on my new Windows 7 computer, and cannot upgrade plugins or install new ones.

After attempting to upgrade Template, I got the message "The plugin C:\Users\John M Gamble\.jedit\jars\Templates.jar could not be removed", followed by "Error while downloading the plugin, please try another mirror".

New plugins went through the download process (successfully), but then reported "Error while downloading the plugin, please try another mirror" for each one. Changing the plugin installation directory in Global Options from "jEdit settings directory" to "jEdit application directory" had no effect.

I tried this with jEdit version 4.3.3 and 4.4.2 as well, with the same results. I installed the latest version of Java (jdk-7u1-windows-x64.exe), with no change.

So this problem appears to be Windows related, but I can't seem to find anything that would cause this. Which is annoying, as I really need to use the GitPlugin. Any ideas?
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