Error: 'global' path
Submitted by
srikrishnan on
Wednesday, 7 July, 2010 - 08:19
Hi All,
I have newly upgraded to "JEdit 4.3.2 Server mode, using Java 1.6.0_19". from the starting itself frequently the following error window popup
"cannot run 'global'. Please set the path to 'global' in the plugin options."
I have checked the menue "Plugins -> Plugin Option -> global Plugin" in that following field has been set as follows:
'global' path = global
Eventhough it has been poping up very frequently, how can I avoid this?
Thanks in Advance,
R. Srikrishnan
Plugin FTP, SFTP
Submitted by
Jabberwock on
Wednesday, 7 July, 2010 - 13:12
HI,
I use the FTP plugin to open sftp files. It's works
But, i see in the log file that jedit release the connection. Ok it's not a problem, but on the server the connection still there.
How i can really close the connections ?
ScalaMiniIDE plugin with scalatest
Submitted by
matuszek on
Friday, 9 July, 2010 - 00:27
Hi,
I'm using a nonstandard plugin, scalaMiniIDE, from
http://wiki.liftweb.net/index.php/SetUp_jEdit
which I really like, because it's a lot more stable than any of the
plugins for Eclipse, NetBeans, or IntelliJ. However, when starting
jEdit, I always get
/Applications/jEdit.app/Contents/Resources/Java/jars/MvnPlugin.jar:
Cannot start: java.lang.IllegalStateException: Already connected
Try updating to a newer version of the plugin.
I apparently need Maven2 to use scalatest. I don't know Maven at all,
but I can probably follow the instructions on the above page, if I can
somehow remove the above plugin (not as easy as it sounds) and add a
good Maven2 plugin.
Can anyone help me with this? Has anyone successfully used scalatest
with jEdit?
Thanks,
Dave Matuszek
matuszek@cis.upenn.edu
Project viewer stopped working
Hi there,
I have a problem with Project Viewer plugin.
I am using JEdit 4.3.2 server mode with sun JDK 1.6.0_20, on a Linux64 machine.
Every time I hit the menu item Plugins->Project viewer, I get the following error message:
java.lang.RuntimeException: org.xml.sax.SAXParseException: Premature end of file.
at projectviewer.ProjectManager.loadConfig(ProjectManager.java:190)
at projectviewer.ProjectManager.(ProjectManager.java:129)
at projectviewer.ProjectManager.getInstance(ProjectManager.java:100)
at projectviewer.PVMenuProvider.(PVMenuProvider.java:57)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.gjt.sp.jedit.bsh.Reflect.constructObject(Reflect.java:620)
at org.gjt.sp.jedit.bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:123)
at org.gjt.sp.jedit.bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:114)
at org.gjt.sp.jedit.bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:62)
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.Interpreter.eval(Interpreter.java:644)
at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:738)
at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:727)
at org.gjt.sp.jedit.BeanShellFacade._eval(BeanShellFacade.java:148)
at org.gjt.sp.jedit.BeanShellFacade.eval(BeanShellFacade.java:113)
at org.gjt.sp.jedit.BeanShell.eval(BeanShell.java:369)
at org.gjt.sp.jedit.menu.EnhancedMenu.init(EnhancedMenu.java:114)
at org.gjt.sp.jedit.menu.EnhancedMenu.menuSelected(EnhancedMenu.java:99)
at javax.swing.JMenu.fireMenuSelected(JMenu.java:1028)
at javax.swing.JMenu$MenuChangeListener.stateChanged(JMenu.java:1107)
at javax.swing.DefaultButtonModel.fireStateChanged(DefaultButtonModel.java:333)
at javax.swing.DefaultButtonModel.setSelected(DefaultButtonModel.java:215)
at javax.swing.JMenu.setSelected(JMenu.java:294)
at javax.swing.JMenu.menuSelectionChanged(JMenu.java:1175)
at javax.swing.MenuSelectionManager.setSelectedPath(MenuSelectionManager.java:100)
at javax.swing.plaf.basic.BasicMenuUI$Handler.mouseEntered(BasicMenuUI.java:491)
at java.awt.Component.processMouseEvent(Component.java:6272)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.trackMouseEnterExit(Container.java:4363)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at projectviewer.ProjectManager.loadConfig(ProjectManager.java:185)
... 50 more
Can anybody help?
Thanks
gm
Beauty plugin issues
Submitted by
ITGuy on
Monday, 12 July, 2010 - 07:27
Hello
Really like jedit and the plugins that are provided. Many thanks to all the hard working developers who have contributed to this great program.
In teaching myself some Java I am using the Beauty plugin attached to a keyboard short (Ctrl-Shirt-F11). Using Beauty version 0.5.0 with Java mode.
The plugin in has two/ three little issues:
1. If have multiple classes in the same file (yes I know I shouldn't but the examples I am using do so) when I "Beauty" it I loose the lower classes. The workaround I have found is to change the bracketing to give my one class with sub-classes and then re-insert the brackets.
2. If I have a line that says "class MyClass extend Thread {" this becomes classMyClassextendThread{ if I have more than one class in the file as per 1 above. Does not affect sub-classes if I have removed
3. There is some weird thing where if I re-Beauty already formatted code I get additional blank lines between code which I can only delete via hand (regex search and replace not working). This is intermittent but then re-Beauty again and again keeps adding blank lines.
I have a brief look through the source code for Beauty but beyond my abilities to find or resolve. Ideas on what to do
Cheers
ITGuy
XML Indenter
Submitted by
tonka on
Monday, 12 July, 2010 - 17:22
Is there another plugin that rolls the XML Indenter into it? With Jedit version 4.3 this plugin is not available. When searching it comes up as obsolete.
http://plugins.jedit.org/plugins/?XmlIndenter
Thanks in advance..
java highlighting modes
Submitted by
mamboze on
Wednesday, 14 July, 2010 - 04:54
Hi,
I'm setting jedit up for java. I understand there are java highlighting modes available. If there are, where could I find them
thnx
Title Case
Submitted by
Llelan D. on
Saturday, 17 July, 2010 - 13:48
I see menu entries and shortcut commands for "To Lower Case" and "To Upper Case", but where is the command for "To Title Case"?
Title Case - Each word is all lower-case except for the first letter which is upper-case.
Posiibility to open a file jedit via an URL like txmt://open?url=file://%s&line=%s
Submitted by
player on
Wednesday, 21 July, 2010 - 11:54
With Textmate you can open a file via an URL from a browser, like txmt://open?url=file://%s&line=%s.
This is very useful if you develop with the playframework which shows you errors in the browser.
So you can jump directly to your file and line via the url.
Mode appropriate comments in templates
Submitted by
sillydragon on
Wednesday, 21 July, 2010 - 13:23
While messing around with the Template plugin I decided it was pointless to have different templates to take into account differences in comment characters for
different languages, so I poked around to see if I could find a way around this and came up with this.
--
## template = Get mode comment char
#*
Get the line comment character for the current buffer's mode. If the mode
doesn't define a line comment character, complain and ask what prefix
string to use instead. $comment will contain the results either way.
*#
#beanshell (false)
context.put("caret", view.getTextArea().getCaretPosition());
context.put("comment", buffer.getContextSensitiveProperty(caret,"lineComment"));
#end
#if ( $comment )
#else
#prompt ( "Mode doesn't have a line comment. String prefix to use?" $comment )
#end
--
Put that in a file called "getcommentchar.vm" in your templates directory, then in other templates you can do:
--
#parse ( "getcommentchar.vm" )
${comment} Lorem ipsum
${comment} dolor sit amet, consectetur adipiscing
--
The inserted text will be preceded by whatever passes for line comments in the buffer's language, or the prefix text you gave.
Enjoy.
Can't paste text from jEdit to Maya
Submitted by
pixeldroid on
Thursday, 22 July, 2010 - 04:36
I am using jEdit as a text editor for Maya, a 3D animation program.
When I copy text from jEdit, it won't paste into Maya, but it will paste into EditPlus (a text editor) and Word, and then I can copy from either of those to Maya.
Anyone have a suggestion to fix this? OS is WinXP x64.
Thanks.
Text selection - highlight only selected text
Submitted by
alexwebb2 on
Thursday, 22 July, 2010 - 22:30
When selecting across multiple lines, jEdit has the curious behavior of highlighting the entire region from left to right - well past the last character - instead of highlighting just the selected text. I would like the selection highlights to be a visual indicator of what is actually selected (including any whitespace at the end of the line). Is there any way to alter this behavior? I'm willing to write a plugin to take care of this if there's a way to override selection paint methods in the API (I looked, and couldn't find anything).
Any input would be appreciated.
Alert before overwriting
Submitted by
someone235 on
Sunday, 25 July, 2010 - 07:06
It'll be very comfortable if jEdit will warn you before it overwrite an existing file.
jython - open docs in infoViewer?
Submitted by
pixeldroid on
Monday, 26 July, 2010 - 12:03
I'm trying to figure out how to display docs in the infoViewer (in Windows), but I get an error.
Can someone help?
file = 'C:\Projects\Websites\Pfarm\MayaStuff\MayaPlugins_jEdit.html'
InfoViewerPlugin.openURL(view, file)
ERROR:
Traceback (innermost last):
File "C:\Documents and Settings\Administrator\.jedit\macros\displayHTMLTest.py", line 7, in ?
NameError: InfoViewerPlugin
Thanks.
jython - open docs in webBrowser?
Submitted by
pixeldroid on
Monday, 26 July, 2010 - 12:58
I'm trying to figure out how to open html docs in a web browser using jython, but I'm not able to get the webbrowser to load.
I've tried the following:
import webbrowser
Error:
File "C:\Documents and Settings\Administrator\.jedit\macros
\MayaHelp.py", line 3, in ?
ImportError: no module named webbrowser
========================================
from org.gjt.sp.jedit import webBrowser
Which is found using autocompletion but nonetheless throws this error:
ImportError: cannot import name webBrowser
========================================
I also tried:
from org.gjt.sp.jedit import browser
which doesn't throw an import error, but it doesn't have 'open',
'openURL', or 'open_new_tab' attributes, so I assume that isn't a web browser.
Anyone know what I'm doing wrong?
Thanks.
Cannot add or edit filter strings in File Browser
Submitted by
tonyrich on
Tuesday, 27 July, 2010 - 06:20
I have just installed jEdit on Mac OS X 10.6.4 (Snow Leopard),
flawlessly.
All the settings I like are now made and saved and restored OK.
A lot of keystrokes have been re-customized, but it all works.
I always filter groups of files to avoid opening the wrong
type of file.
So when I go to enter a new group of filter characters into
the File Browser (using Ctrl+O), I cannot enter any character,
not can I change an existing filter group that I managed to add
before (but don't know how).
A typical group of filters is:
{*.py,*.c,*.h}
...and I like to extend the group now and again.
There is NO problem in entering characters of any kind within
the editor itself - only into the "Filter" edit box in the
File Browser.
I have reset the machine in case this was a serious Java
problem, but no use.
Can anyone help?
Thanks.
Project view
Submitted by
rahul_yanina on
Thursday, 29 July, 2010 - 10:37
Is it possible to have projects (the actual project file could be on the local machine) where the files added to it are on remote files? Right now, with the FTP plugin, it allows me to add files from remote locations to a project, but does not save the information. So when I restart Jedit, the remote files no longer show up against the project. However, the files on the local machine added to the project shows up after the restart.
Ami I doing something wrong, or is this a limitation currently? Are there any plans for having this feature, as I think it is quite a useful one to have.
FTP-Plugin socket error
Submitted by
Maenny on
Friday, 30 July, 2010 - 13:05
Hi there,
I use jEdit for some time now, but since two days I have an annoying problem: When I use the FTP-Plugin and load a page on my Server, I edit it and save it, it works fine. When I edit the file again and save it, I get the following error message:
ftp://web1234@alfa3498.my-server.de:21/html/temp/temp.php:
Cannot save: java.net.SocketException: Connection reset by peer: socket write error
and my InternetConnection closes, that is I get disconnected.
I haven't changed anything, but I cannot say anything about automatic updates of jEdit or its components. Anyone has a solution for this, it is really annoying, since I have to close down and reopen the program everytime I saved once.
Greetz
Maenny
Load File to JEditBuffer
Submitted by
MikeN on
Friday, 30 July, 2010 - 14:51
Hi!
I am using the independent TextArea for a small project and was wondering how to load a file to a JEditBuffer. Currently I am reading the file by myself, and setting the text using "TextArea.setText(String)". Is there any way to load the file directly to the TextAres's JEditBuffer?
Thanks!
Unable to install LaTeX Tools plugin [SOLVED]
Submitted by
runbei on
Saturday, 31 July, 2010 - 16:49
I'm unable to install the LaTeX Tools plugin. I'm using jEdit 4.3.2 with Java 1.6.0_18 with Linux Mint 9 (= Ubuntu 10.04).
I installed the plugin manually - unzipped it an put the LaTeXTools.jar folder in the jar folder of the jEdit installation (home/.jedit/jars.
I also installed the Console and Sidekick plugins.
When I try to use a feature in the Latex Tools plugin menu, I get a dialog with a long list of Beanshell errors. For example, calling Insert Command produces the following. I'd be grateful for any help, or pointers to where I might find a solution. Thanks.
UPDATE: Hm, found the problem. Need to install the GnuRegexp plugin, then the LaTeX Tools plugin works fine. Console and Sidekick plugins are also required.
java.lang.NoClassDefFoundError: gnu/regexp/REException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
at java.lang.Class.privateGetPublicMethods(Class.java:2564)
at java.lang.Class.getMethods(Class.java:1427)
at org.gjt.sp.jedit.bsh.Reflect.gatherMethodsRecursive(Reflect.java:543)
at org.gjt.sp.jedit.bsh.Reflect.getCandidateMethods(Reflect.java:505)
at org.gjt.sp.jedit.bsh.Reflect.findOverloadedMethod(Reflect.java:478)
at org.gjt.sp.jedit.bsh.Reflect.resolveJavaMethod(Reflect.java:439)
at org.gjt.sp.jedit.bsh.Reflect.resolveExpectedJavaMethod(Reflect.java:381)
at org.gjt.sp.jedit.bsh.Reflect.invokeStaticMethod(Reflect.java:96)
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:352)
at org.gjt.sp.jedit.jEdit$4.invokeAction(jEdit.java:3255)
at org.gjt.sp.jedit.jEdit$4.invokeAction(jEdit.java:3237)
at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:221)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:374)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:829)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:873)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6108)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:5873)
at java.awt.Container.processEvent(Container.java:2105)
at java.awt.Component.dispatchEventImpl(Component.java:4469)
at java.awt.Container.dispatchEventImpl(Container.java:2163)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
at java.awt.Container.dispatchEventImpl(Container.java:2149)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Caused by: java.lang.ClassNotFoundException: gnu.regexp.REException
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at org.gjt.sp.jedit.JARClassLoader.loadFromParent(JARClassLoader.java:539)
at org.gjt.sp.jedit.JARClassLoader.loadClass(JARClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 54 more