jEdit Community - Resources for users of the jEdit Text Editor
Archives
4.3p7: Paint errors
Submitted by Baldurien on Saturday, 4 November, 2006 - 23:29
Hi, I have this exception in Activity Logs :

[error] ExtensionManager: Error repainting line range {0,41}:
[error] ExtensionManager: java.lang.ArrayIndexOutOfBoundsException: -42
[error] ExtensionManager: at org.gjt.sp.jedit.syntax.DisplayTokenHandler.canMerge(DisplayTokenHandler.java:226)
[error] ExtensionManager: at org.gjt.sp.jedit.syntax.DisplayTokenHandler.merge(DisplayTokenHandler.java:193)
[error] ExtensionManager: at org.gjt.sp.jedit.syntax.DisplayTokenHandler.handleToken(DisplayTokenHandler.java:94)
[error] ExtensionManager: at org.gjt.sp.jedit.syntax.TokenMarker.markTokens(TokenMarker.java:250)
[error] ExtensionManager: at org.gjt.sp.jedit.buffer.JEditBuffer.markTokens(JEditBuffer.java:1218)
[error] ExtensionManager: at org.gjt.sp.jedit.textarea.ChunkCache.lineToChunkList(ChunkCache.java:771)
[error] ExtensionManager: at org.gjt.sp.jedit.textarea.ChunkCache.updateChunksUpTo(ChunkCache.java:646)
[error] ExtensionManager: at org.gjt.sp.jedit.textarea.ChunkCache.getLineInfo(ChunkCache.java:255)
[error] ExtensionManager: at org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRange(ExtensionManager.java:102)
[error] ExtensionManager: at org.gjt.sp.jedit.textarea.Gutter.paintComponent(Gutter.java:131)
[error] ExtensionManager: at javax.swing.JComponent.paint(JComponent.java:1005)
[error] ExtensionManager: at javax.swing.JComponent.paintChildren(JComponent.java:842)
[error] ExtensionManager: at javax.swing.JComponent.paint(JComponent.java:1014)
[error] ExtensionManager: at javax.swing.JComponent.paintChildren(JComponent.java:842)
[error] ExtensionManager: at javax.swing.JComponent.paint(JComponent.java:1014)
[error] ExtensionManager: at javax.swing.JComponent.paintChildren(JComponent.java:842)
[error] ExtensionManager: at javax.swing.JComponent.paint(JComponent.java:1014)
[error] ExtensionManager: at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4963)
[error] ExtensionManager: at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4916)
[error] ExtensionManager: at javax.swing.JComponent._paintImmediately(JComponent.java:4859)
[error] ExtensionManager: at javax.swing.JComponent.paintImmediately(JComponent.java:4666)
[error] ExtensionManager: at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)
[error] ExtensionManager: at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
[error] ExtensionManager: at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
[error] ExtensionManager: at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
[error] ExtensionManager: at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
[error] ExtensionManager: at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
[error] ExtensionManager: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
[error] ExtensionManager: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
[error] ExtensionManager: at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

That the first time I see it.

If someone has an Idea?

Hardware:
Gigabyte-965P-DS4
C2D E6400
1G Ram
MSI7900GTO512MB (drivers: 93.71)
Suggestion on plug ins?
Submitted by Jim on Monday, 6 November, 2006 - 04:35
Hello, I'd like to set up a nice IDE with debugger that can step through code. What are the essential plug in to install?

Also, I get a connection error when I try to download plugins. Does anybody know where I can get help?

Thanks
Jim
Syncronize working directory of console and/or beanshell with current buffer (ChangeDirectory.bsh v1.4 by Robert Schwenn)
Submitted by Robert Schwenn on Monday, 6 November, 2006 - 20:46
This macro changes the working directory of console plugin and/or beanshell to the current buffer's parent directory. This is controlled by two properties, which have to be set manually.

The macro is intended for use with the action hooks pugin, bound to the events "BufferUpdate.LOADED" and "EditPaneUpdate.BUFFER_CHANGED". So the working directory of console is synchronized with current buffer (almost) every time.

Last Update: Now for Linux, too: Invoke cd command only, if buffer directory really has changed.

C mode line comments
Submitted by prg on Monday, 6 November, 2006 - 23:03
Using jEdit4.2final. Problem with mode C and line comments.

#define SAT_DEFAULT 128 // Saturation Control Register [128/0x80]

Editor sees the line comment as something else. The syntax highlight color is dark green (keyword2) just like the constant label. The numbers inside the square brackets are highlighted as digit (bright red). If the comment is enclosed with /*....*/ it is correctly recognized as a comment. It appears that this problem happens when the line comment follows a digit type. This bug was supposedly fixed see 696765
FTP plugin exception
Submitted by jg on Tuesday, 7 November, 2006 - 14:46
I've been using jedit for a while now, recently updated to 4.3pre7 from 4.2Final I'm using FTP plugin version 0.8 when I go to save a file, I often get the below exception. I then can't save the file, I have to select all, copy to clipboard, close the file, re-open the file, and paste my file contents over the previously saved version. Very annoying. Any ideas?? Thanks avax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated: java.lang.NullPointerException at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source) at com.sshtools.common.hosts.AbstractHostKeyVerification.(Unknown Source) at com.sshtools.common.hosts.AbstractHostKeyVerification.(Unknown Source) at com.sshtools.common.hosts.DialogHostKeyVerification.(Unknown Source) at ftp.SFtpConnection.(SFtpConnection.java:47) at ftp.ConnectionManager.getConnection(ConnectionManager.java:267) at ftp.FtpVFS.getConnection(FtpVFS.java:451) at ftp.FtpVFS._getFile(FtpVFS.java:287) at org.gjt.sp.jedit.Buffer.save(Buffer.java:432) at sun.reflect.GeneratedMethodAccessor37.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.invokeObjectMethod(Reflect.java:80) at bsh.Name.invokeMethod(Name.java:858) 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(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.KeyboardFocusManager.redispatchEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(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.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)
Still broken XML plugin (or is it SideKick).. and who the hell is hy263?
Submitted by gribelu on Thursday, 9 November, 2006 - 07:58
HTML tag highlighting hasn't worked on 4.3pre7 and still doesn't on 4.3pre8 Sad .. I tried the SVN versions of both plugins with no luck.
Or am i doing something wrong? Smiling

And... Who is that annoying user and why isn't anyone doing anything about it?
Cheers Smiling
why o why won't Error List display content of warnings
Submitted by fwelland on Thursday, 9 November, 2006 - 14:56
JEdit 4.3p8 -- jdk 1509 - WinXP.

using antfarm with external 'ant.bat' from ANT 1.65 and javac task w -Xlint.

Jedit will run the ant task fine and even colorize warnings (and errors correctly) in the console output.
But in the error list for warings, the correct line number appears (w warning icon), but the warning message is not there - just blank...

Errors seem ok - line numbers, error icon, and message show in error list.

This happened for 4.3p7 too. Hoping that 4.3p8 might correct this.
exam prep sites ?
Submitted by jakannan on Monday, 13 November, 2006 - 23:14
iam going to study for mcse , ccna and ocp in my next couple of month and i was looking for sites with package deals .... i came across hotcerts.com . anyone knows how good is their $85 all exams package and is it worth it ???? . looking for ur responses
can't see screen using Jedit 4.3pre8
Submitted by liran vigdor on Wednesday, 15 November, 2006 - 07:05
I was using jedit 4.2 and now tried to transfer to 4.3pre8 , but when starting Jedit , I cant see anything, and only if I pass on the screen with the mouse it will show the screen - this is true only for the icons and other jedit stuff, the files themself can't be seen anyway !
thanks
What's best to use for XML formatting? Tried JTidy but it's causing line breaks
Submitted by rickcr on Wednesday, 15 November, 2006 - 19:26
What is the best plugin for formatting XML files? I tried using JTidy but I can't seem to figure out how to get it to not put in a line break in between every line. TIA for any help.
Console plugin significantly slows down build process
Submitted by shlomy on Sunday, 19 November, 2006 - 11:59
Hi,

I've started using the Console plugin (with the ErrorList plugin) to build our project. First, I must say that the Console plugin is really great - it is very easy to configure to support other tools (e.g. g++), and it simplies working with jEdit a lot.

The problem is that the output of my build process, which is quite large, is displayed in the Console plugin very slowly (much slower than the Linux shell), and this slows down the build significantly. Any idea why this happens or what I can do to fix this slowdown?

Also, from the documentation of the Console plugin, it seems like it tries to match all the Error Patterns until it finds a match. Is this the way it works? While it may be good enough for most purposes, there are several problems with this:
1. Lines which do not express errors in the output of one tool, may express errors in the output of another tool. So if I'm running the first tool, I may get false errors because its output is also matches with the other error patterns. (Probably rare, though)
2. The output is probably slowed down by several redundant pattern matches.

Since the Console plugin cannot really know which tool is generating the output, it can either try all of the Error Patterns or rely on the user to indicate which Error Patterns to include. When I run "make", I only have "g++" output, so I don't need to match all other patterns (I've added a 'g++' error pattern manually). When I run Perl, I only have Perl output. I can erase some error patterns to exclude them, but I think the Console plugin should enable the user to select the active error patterns to use (e.g. using check-boxes or using disable/enable buttons below the Error Patterns list), to avoid unwanted pattern matches.

Shlomy
In firefox, drop downs are not legible. They are close to zero width. Simple CSS fix.
Submitted by Anup on Sunday, 19 November, 2006 - 18:22
The community web site, for ages, has had drop downs that cannot be read, because their width is screwed up. The problem is by the following CSS rule (around line 38 of style1.css) .box * { max-width: 100%; /* make sure textarea's and inputs do not overflow the containing box */ } The * makes EVERYTHING have this max-width, and it is not needed. Removing it sorts it out. If you really want this just for text areas and inputs, then use this: .box textarea, .box input { max-width: 100%; /* prevent overflow of the containing box */ } This is critical, for it prevents using the web site effectively under Firefox (which I imagine is a LARGE audience for this site) because you can't read the drop downs. User participation will hopefully increase when this is done.
Please create a feature to allow community members to monitor forum blogs and delete fake/spam users
Submitted by Anup on Sunday, 19 November, 2006 - 18:27
The tons of chinese comment spam is wrecking the usefulness of JEdit's community site. Here are some ideas (not knowing anything about Drupal) how to sort this out: 1) Community self-policing: allow/invite some users somehow (loyal, longtime, frequent posters, ask who is interested?) to volunteer to police the community site. Limit capability only to delete posts, or report a user abusing the site (this will prevent misuse by volunteers!). Then, when users or posts are marked as requiring deletion or something, another group agrees, or the admin has final say or something like that. Of course, this needs to be done in such a way that the same robots that create accounts and post content do not create volunteer accounts! 2) Put rel="nofollow" or whatever it is, in the anchor tag of html posts, so that spammers have no need to try and create fake accounts. They are just trying to increase their links so that search engines will follow them. Drupal must have some comment spam plug-in surely? Not addressing this for so long is creating a negative impression amongst users, and losing the value of this open-source project... JEdit itself is excellent, but its natural support has to be good too.
WTF MAKES A NEW LINE???
Submitted by thinsoldier on Sunday, 19 November, 2006 - 19:26
I need to fine all commas (,) and replace them with a new line/ carriage return.

for example: jim,jane,john,joe,kelly,kent,kimberley
becomes:
jim
jane
john
etc....

HOW?

in BBEdit I can
find: ,
replace: \r
done.

but jedit doesnt respond to \r, \n, \r\n it just literally replaces the , with \ r \ n !
ie: jim\rjane\rjohn\rjoe\rkelly\rkent\rkimberley !

And where is the best place to find active JEdit users? Is there an irc channel anywhere?
ABB RAPID edit mode (jEdit-ABB_RAPID.zip v0.0.1 by Andrew Thompson)
Submitted by andrewt on Thursday, 23 November, 2006 - 05:28
Edit mode for jEdit 4.2 for ABB RAPID robot programming language. Note this is not 100% complete. It has been some time since I worked on this, but thought I should make this available "as-is" at least. Please feel free to develop it! In particular, there is no auto un-indent - as far as I know this was not supported by jEdit 4.2 Includes code browser support via ctags.
Favorites / FTP-Plugin: label for connections?
Submitted by pepl on Thursday, 23 November, 2006 - 10:51
Hi!

I'm using jEdit to edit files (almost Perl) which resides on Unix servers who are placed in strong secured areas in our company.

The only way to access these files is to use a special server over which i have to establish SSL tunnels to the servers.

This means that i'm always connecting over one server on different ports.

I save these connections as favorites and unfortunately they all, for example, look like this:
'sftp://user@server:55010/usr/ldap'
'sftp://user@server:55020/usr/ldap'
'sftp://user@server:55030/usr/ldap'
'sftp://user@server:55040/usr/ldap'
'sftp://user@server:55020/prj/ldap/scripts'
'sftp://user@server:55040/prj/ldap/scripts'

This could be connections to four different servers - ports 55010,...,55040 (e.g. production, test, etc.).

Until now i have 12 connections defined who all look like the example above.

As you can see this ist very confusing, very unclear.

If there where the possibility to enter labels for favorites or for ftp-connections it would be much easier for me.

In Ultra-Edit there's a possibility to name (to label) connections (i used Ultra-Edit before).

Do you think it's possible to create a feature like labeling or naming favorites or ftp-connections?

Thanks
Pepl
Cheat RubyGem macros
Submitted by charlesroper on Friday, 24 November, 2006 - 18:17
I've created a couple of macros for the excellent Cheat RubyGem (check it out: http://cheat.errtheblog.com/). Download 'em from here:

http://homepages.nildram.co.uk/~charlesr/jedit/cheat_macros.zip

Charles
Rails macro for moving between related files
Submitted by marioaquino on Saturday, 25 November, 2006 - 20:31
I have created a macro for jumping between related files in a Rails project. The macro figures out what file you have in your buffer and offers a popup list of other related files that you can jump to. There is a brief screencast demonstrating the macro that you can view on my blog: http://marioaquino.blogspot.com/

You can download the macro from: http://mario.blogdns.net/rails_macro.zip
SVN update (svn_update.bsh v1.0 by Dale Anson)
Submitted by daleanson on Sunday, 26 November, 2006 - 16:49
Macro to run SVN update. The SVN command line client needs to be installed separately.
SVN Add (svn_add.bsh v1.0 by Dale Anson)
Submitted by daleanson on Sunday, 26 November, 2006 - 17:28
Console plugin is required. SVN command line client is required. Works on current buffer only. I add it to the text area context menu (right click on the text area, then "Customize this menu").
User login
Browse archives
« November 2006 »
MoTuWeThFrSaSu
 
5
8
10
11
12
14
16
17
18
20
21
22
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   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