jEdit Community - Resources for users of the jEdit Text Editor
Archives
How do you clear the console screen by using keys?
Submitted by 357mag on Wednesday, 19 May, 2010 - 01:09
Is there a way you can clear the contents of the console window by using keys? Like in the Windows command prompt you hit cls and the entire screen clears. If you hit cls in jEdit you will see the message that it exited with code 0 so it appears nothing went wrong but the screen does not clear. It's still full of junk.

And then tried assigning a few shortcut keys to the clear console command in the shortcuts menu but they don't work either. First I assigned cls to the clear console command and it did not clear the console. Then I assigned c to the same command and that didn't clear the window either.

Confused.
Updated CandyFold plugin
Submitted by maulik13 on Wednesday, 19 May, 2010 - 09:11
hi,

I have updated the candy fold plugin. I have tried contacting the author on SourceForge, but I have not heard anything back.
I was wondering how to I share this update?

-Maulik
jerky performance on 64bit win7
Submitted by Rambosmurf on Tuesday, 25 May, 2010 - 10:54
I see there are some other threads regarding this that pertain to slow draws of the textarea and/or windows such as the file browser, with a variety of hardware and os-configurations.

I'm having the same problem after reinstalling my computer with windows 7 64 bit, previously windows 7 32 bit. I did this as i god an 8gb ram upgrade and an ssd, but these hardware changes are imo unlikely to be the source of the problem. In that sense the hardware is essentially the same before and after reinstall.

The performance of jEdit 4.3.2 on the same pc under 32 bit was immaculate, while the performance under 64 bit is jerky. I can sense a slight lag as i type, selecting and scrolling through larger pieces of code is noticable more jerky, windows take a long time to render. I've tried reinstalling both jEdit and java, also googling for 64bit specific editions of java, but there doesnt seem to be any 64-bit specific java packages?

In any case, the java binary on my computer says 32-bit.

What i did notice however (just now) is that jEdit is running under something called server-background mode, as detailed by the about screen. I saw from a different thread (http://community.jedit.org/?q=node/view/4165#7870) that one user outlined a possible cause as java beeing run in server mode. Are these two related, and what exactly does this server mode in jEdit do?

If it helps, the hardware im running on is as follows:
Nvidia quadro fx 770 mobile
Core2duo cpu
Intel ICH9 family chipset
jEdit Console Commandos for Tcl/Tk
Submitted by Gary Gabriel on Saturday, 29 May, 2010 - 10:38
Hi,

jEdit Console commandos do not currently include Tcl/Tk. I was not
successful in finding any in the archives or references.
- Does anyone have the commandos to bind the Tclsh and Wish interpreters
into the Console and could provide them?


Thanks for your efforts and time- Gary Gabriel
filename.extension + ~ files
Submitted by ColaColin on Monday, 7 June, 2010 - 01:45
Why is jEdit creating additional files with a leading ~ ?
For example if I edit a main.bsh it will create a main.bsh~ next to the main.bsh.


Is there a way to stop jEdit from doing this ?
I want to edit files in a dir, which will get zipped and stored and i dont need additional files in it.
Jsch et GSSAPI
Submitted by Jabberwock on Monday, 7 June, 2010 - 09:07
Hi,

I create a class to connect with jsch to a server.
If i send the login/mdp it's ok.

But I want to use the GSSAPI authenfication. I look the jsch examples.
With this code i have the message "Auth failed".

Do you have an idea ? or examples ?

public void connect(String username, String password, String host, int port)
throws JSchException, IOException {
JSch shell = new JSch();
shell.setKnownHosts("chemin_vers_known_host");
this.login = username;
this.serveur = host;
this.password = password;
Session session = shell.getSession(username, host, port);
MyUserInfo ui = new MyUserInfo();
ui.setPassword(password);
//Session session = new Session(shell);
session.setUserInfo(ui);
session.setUserName(username);
/*UserAuthGSSAPIWithMIC uagss = new UserAuthGSSAPIWithMIC();
Log.log(Log.DEBUG,this,"ICI-1");*/
session.setConfig("PreferredAuthentications", "gssapi-with-mic");
session.connect();

channel = session.openChannel("shell");
fromServer = new BufferedReader(new InputStreamReader(channel.getInputStream()));
toServer = channel.getOutputStream();
channel.connect();
/*Log.log(Log.DEBUG,this,"ICI-2");
uagss.start(session);
Log.log(Log.DEBUG,this,"ICI-3");*/
variable_env_lue = false;
if(isConnected()){
//send("echo \"\"");
}
}
Macros for ProjectViewer
Submitted by Jabberwock on Monday, 7 June, 2010 - 09:12
Hi,

I write some macros for ProjectViewer.

You have a macro to do a search in the projects tree, and some for load/unload project, and one to add a project.

If you want to use the unload macro, call always the macro Export.bsh
If you want to load a project, call Import_Tree_Project.bsh, if you want to load a tree project, or Import_a_project.bsh if you want to load only one project.

The Add_project.bsh macro, add a project, and the focus stay where your are, and don't go inside the new project.

The Search macros is simple Smiling
javascript minify macro (compress.bsh v0.1 by Patrik Plihal)
Submitted by birdspider on Thursday, 10 June, 2010 - 17:57
minifies javascript
improved it to my needs

you can now specify an amount off lines which will be restored after compression to make comments persistent (so after deployment I can check which version of the script the server is running) this is especially usefull if you use a version control with 'on commit - keywords'
Frequent crashes on OS X
Submitted by dfilip on Sunday, 13 June, 2010 - 20:33
I have just started using JEdit and love it ... when it works! However, using it under OS X frequently crashes.

I am justing Snow Leopard - 10.6.3 - and drag-n-drop files into the JEdit which usually launches JEdit with the file source. However, sometimes - more frequently after I've just logged in (?!) - it will launch, and then immediately crash, giving me the options to ignore / restart / report. Sometimes it will launch JEdit with an empty buffer (even though I've dragged-n-dropped a file), sometimes it will crash immediately, and sometimes it will launch with the correct file source. After a crash, I repeat the same drag-n -drop of the same file repeatedly, it will eventually work and not crash, but may take 2 or 3 or up to 4 or 5 times before it works, although I don't think I've ever had to do it more than 5 times. However, after I've launched it by draging-n-dropping a file into it, editing and saving files seems to work flawlessly.

If I manually launch JEdit with an empty buffer and then drag a file into it, it usually works, but again, sometimes will crash.

Important hint: because I am developing for a Java 1.5 server, the JVM that I am using is Java 1.5.0_19, from Snow Leopard. Therefore, I am NOT using the 1.6 JRE that Apple provides with Snow Leopard, but rather the JRE 1.5 that Apple provided with Leopard. Could this be causing my problems?

Is anyone else having similar problems under OS X? I think its a great editor when it works, which is actually most of the time, but find it frustrating when it crashes.

Any help would be appreciated.

Thanks,

Dave.
Whitespace marking...dots
Submitted by imgod2u on Monday, 14 June, 2010 - 02:30
So this must be new to 4.3.2 or around there. But I've noticed that all of my whitespaces (on OSX) are being marked with a small dot. While I'm sure this is quite helpful, I find it distracting. How do I turn this off?
javascript packer macro (pack.bsh v0.1 by Patrik Plihal)
Submitted by birdspider on Thursday, 17 June, 2010 - 14:40
see javascript minify @ http://community.jedit.org/?q=node/view/4476
instead of YUI compress this one uses a port of http://dean.edwards.name/packer/
encodings
Submitted by efthimis on Friday, 18 June, 2010 - 13:32
Hallo my friends i am a novice user of jedit and i want to ask you how can i use the x-MacGreek encoding to see some files that i have. I used it before but i have made an upgrade of java and then it dissapeared from the list of my Global Options where can i find it?
I have an old version jEdit 4.3pre12 using Java 1.6.0_20 but i had not any problem before this upgrade.
Thanks a lot...
Efthimis
Horizontal bar on the screen
Submitted by mauricebis on Friday, 25 June, 2010 - 10:29
Hi,

I'm using jEdit version 4.3.2 on Ubuntu lucid. It works pretty well but there's an issue which is a bit annoying: A horizontal bar or sometimes various horizontal bar appear at random in the textarea, these horizontal lines appear or disappear as I type along and insert or remove lines in a non predictable way. Any ideas? Thanks.

Log head:
22:23:31 [main] [message] Log: java.version=1.6.0_18
22:23:31 [main] [message] Log: java.vm.version=14.0-b16
22:23:31 [main] [message] Log: java.runtime.version=1.6.0_18-b18
22:23:31 [main] [message] Log: java.vendor=Sun Microsystems Inc.
22:23:31 [main] [message] Log: java.compiler=null
22:23:31 [main] [message] Log: os.name=Linux
22:23:31 [main] [message] Log: os.version=2.6.32-21-generic
22:23:31 [main] [message] Log: os.arch=i386
22:23:31 [main] [message] Log: user.home=/home/maurice
22:23:31 [main] [message] Log: java.home=/usr/lib/jvm/java-6-openjdk/jre
22:23:31 [main] [message] Log: java.class.path=/usr/share/jEdit/jedit.jar
22:23:32 [main] [debug] MiscUtilities: Saving backup of file "/home/maurice/.jedit/activity.log" to "/home/maurice/.jedit/settings-backup/activity.log~1~"
22:23:32 [main] [notice] jEdit: jEdit version 4.3.2
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 Smiling

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
Submitted by gattu marrudu on Friday, 9 July, 2010 - 21:14
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
User login
Browse archives
« May 2010 »
MoTuWeThFrSaSu
 
2
3
4
5
6
7
8
9
11
13
16
18
20
21
22
23
24
26
27
28
30
31
 
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