jEdit Community - Resources for users of the jEdit Text Editor
Archives
File-saving permissions under Windows XP
Submitted by Afishionado on Friday, 15 October, 2004 - 21:27
For whatever reason, whenever I try to save a new file with jEdit under Windows XP, I get the error "Insufficient permissions to save file." If I create the file with Notepad, I can overwrite it to my heart's content with jEdit.

Oh, yeah, I'm using jEdit 4.1. I have no problems using it under Linux.

Is this a bug, or is there just something weird about my configuration?

A'fish'ionado
Block copy/paste request
Submitted by Hans_Bauer on Saturday, 16 October, 2004 - 17:40
Dear JEdit team,

working a lot with JEdit using block copy and paste i miss a very useful feature, some other editors offer. So at the moment it's hard for me to change to JEdit completely even though i wish to do this.

With JEdit we need to select a block using the ctrl-key, count the number of the selected lines in the block, select the same number of lines in the target area and insert the block (ctrl-v). This is very hard for large blocks with many lines, expecially because the statusline does not show the number of the selected lines.

It would be very useful to be able to paste the selected block into the target area only by setting the cursor to the upper left corner of the target and pressing ctrl-v.

An example to show my problem:
Assume the block of 'X' should be copied between 'c' and 'd' (should be read with fixed font)

aaaaa bbbbbbbbb
aXXXa cccdddeee
aXXXa f
aXXXa ggghhhiii
aaaaa jjjjjjjjj

The intuitive way is to select the block of 'X', press ctrl-c, move the cursor between 'c' and 'd' and press crtl-v to get

aaaaa bbbbbbbbb
aXXXa cccXXXdddeee
aXXXa f XXX
aXXXa gggXXXhhhiii
aXXXa jjjjjjjjj

At the moment the above procedure leads to

aaaaa bbbbbbbbb
axxxa cccXXX
XXX
XXXdddeee
axxxa f
axxxa ggghhhiii
aaaaa jjjjjjjjj

I hope you agree with my request. Is there a possibility to implement this?

I appreciate your great work coding one of the best editors found in the net.
Thanks you all.

Yours
Hans Bauer
Block copy/paste request
Submitted by Hans_Bauer on Saturday, 16 October, 2004 - 17:41
Dear JEdit team,

working a lot with JEdit using block copy and paste i miss a very useful feature, some other editors offer. So at the moment it's hard for me to change to JEdit completely even though i wish to do this.

With JEdit we need to select a block using the ctrl-key, count the number of the selected lines in the block, select the same number of lines in the target area and insert the block (ctrl-v). This is very hard for large blocks with many lines, expecially because the statusline does not show the number of the selected lines.

It would be very useful to be able to paste the selected block into the target area only by setting the cursor to the upper left corner of the target and pressing ctrl-v.

An example to show my problem:
Assume the block of 'X' should be copied between 'c' and 'd' (should be read with fixed font)

aaaaa bbbbbbbbb
aXXXa cccdddeee
aXXXa f
aXXXa ggghhhiii
aaaaa jjjjjjjjj

The intuitive way is to select the block of 'X', press ctrl-c, move the cursor between 'c' and 'd' and press crtl-v to get

aaaaa bbbbbbbbb
aXXXa cccXXXdddeee
aXXXa f XXX
aXXXa gggXXXhhhiii
aXXXa jjjjjjjjj

At the moment the above procedure leads to

aaaaa bbbbbbbbb
axxxa cccXXX
XXX
XXXdddeee
axxxa f
axxxa ggghhhiii
aaaaa jjjjjjjjj

I hope you agree with my request. Is there a possibility to implement this?

I appreciate your great work coding one of the best editors found in the net.
Thanks you all.

Yours
Hans Bauer
XML plugin - what's wrong
Submitted by Anonymous on Saturday, 16 October, 2004 - 17:54
I'm new to jEdit and I wonder what am I doing wrong when I write
Command console - How can I clear drop down list of strings entered
Submitted by dustfinger on Monday, 18 October, 2004 - 03:43
I am certain this question has been asked on this forum many times, but I can't seem to find it anywhere so I am going to ask it here now. I want to know how to clear the list of strings in the colsole drop down box. My list keeps getting bigger and bigger as I use this for various projects and I desperately want to clear it now but I can't figure out how for the life of me. I can't seem to find it in the help files either. I am sure I am just as blind as a bat, but if someone could help me out here I would really appreciate it. Thanks in advance.

dustfinger.
for long lines macro generate Error - Array index out of range: 3
Submitted by Anonymous on Monday, 18 October, 2004 - 17:10
Why this macro generate Error?


__________________________________________________________
I write this macro:
// Delete 3 chars at start of line for all except first line
// delete lines longer then 930 characters

textArea.goToBufferStart(false);
textArea.goToNextLine(false);

int textAreagetLineCount=textArea.getLineCount();
java.lang.String pos ="";

for(int j = 0; j < textAreagetLineCount; ++j)
{
textArea.goToNextCharacter(false);
textArea.goToNextCharacter(false);
textArea.goToNextCharacter(false);
textArea.deleteToStartOfLine();

textArea.goToStartOfLine(false);

if(textArea.getLineLength(j) >= 930)
{
textArea.deleteLine();

}
textArea.goToNextLine(false);
textArea.goToStartOfLine(false);
}
buffer.save(view,null,true);
jEdit.closeBuffer(view,buffer);









__________________________________________________________
and example of file:
----Begin of file---
title
g line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long lineg line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long lineg line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line
g line long line long line long line
---End of file---







__________________________________________________________
produce this error:
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 3

at org.gjt.sp.jedit.Buffer.getLineEndOffset(Buffer.java:935)

at org.gjt.sp.jedit.Buffer.getLineLength(Buffer.java:958)

at org.gjt.sp.jedit.textarea.JEditTextArea.getLineLength(JEditTextArea.java:1280)

at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at bsh.Reflect.invokeOnMethod(Reflect.java:149)

at bsh.Reflect.invokeObjectMethod(Reflect.java:81)

at bsh.Name.invokeMethod(Name.java:856)

at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72)

at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)

at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)

at bsh.BSHBinaryExpression.eval(BSHBinaryExpression.java:52)

at bsh.BSHIfStatement.evaluateCondition(BSHIfStatement.java:63)

at bsh.BSHIfStatement.eval(BSHIfStatement.java:46)

at bsh.BSHBlock.evalBlock(BSHBlock.java:130)

at bsh.BSHBlock.eval(BSHBlock.java:80)

at bsh.BSHBlock.eval(BSHBlock.java:46)

at bsh.BSHForStatement.eval(BSHForStatement.java:111)

at bsh.Interpreter.eval(Interpreter.java:641)

at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:355)

at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:284)

at org.gjt.sp.jedit.BeanShell.runScript(BeanShell.java:210)

at org.gjt.sp.jedit.Macros$BeanShellHandler.runMacro(Macros.java:990)

at org.gjt.sp.jedit.Macros$Macro.invoke(Macros.java:417)

at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229)

at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:2910)

at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:216)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.AbstractButton.doClick(Unknown Source)

at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)

at javax.swing.plaf.basic.BasicMenuItemUI$MenuDragMouseHandler.menuDragMouseReleased(Unknown Source)

at javax.swing.JMenuItem.fireMenuDragMouseReleased(Unknown Source)

at javax.swing.JMenuItem.processMenuDragMouseEvent(Unknown Source)

at javax.swing.JMenuItem.processMouseEvent(Unknown Source)

at javax.swing.MenuSelectionManager.processMouseEvent(Unknown Source)

at javax.swing.plaf.basic.BasicMenuUI$MouseInputHandler.mouseReleased(Unknown Source)

at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)

at java.awt.Component.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.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)
Jane Plugin
Submitted by mbirth on Monday, 18 October, 2004 - 22:16
After fixing/changing two lines of the Jane-Plugin, its parser now complains about a <String,String> inside the Runtime-Sourcecode.

 

Fixes:
jane\lang\CommentProxySupport.java, line 76
OLD: if ((mInfo.getComment()==null) || (mInfo.getComment().trim().equals("")))
NEW: if (mInfo==null || (mInfo.getComment()==null) || (mInfo.getComment().trim().equals("")))
(Caused NullPointerException.)

 

jane\lang\MemberInfoBase.java, line 132
OLD: StringTokenizer st = new StringTokenizer(aComment, "\r\n");
NEW: StringTokenizer st = new StringTokenizer(aComment, "\n");
(Because \n is used in SUN's JavaDocs and Sources for the Runtime. Also you can split on \n because afaik the \r get's automagically removed by the trim() procedure a few lines further down.)

 

My Jane-settings:
CLASS: C:\Progra~1\Java\jre1.5.0\lib\rt.jar
SOURCE: C:\Progra~1\Java\jdk1.5.0\src\
JDOC: C:\Progra~1\Java\jdk1.5.0\docs\api\

 

Now, when typing "System." in jEdit, Jane parses the sourcecode and breaks with

 

[error] SideKick #1: 80 [SideKick #1] ERROR ccparser.JavaParser  - file:/C:/Progra~1/Java/jdk1.5.0/src/java/lang/System.java
[error] SideKick #1: jane.parser.ccparser.ParseException: Encountered "<" at line 840, column 32.
[error] SideKick #1: Was expecting one of:
[error] SideKick #1:     <IDENTIFIER> ...
[error] SideKick #1:     "[" ...
[error] SideKick #1:     
[error] SideKick #1:  at jane.parser.ccparser.JavaParser.generateParseException(JavaParser.java:4007)

 

The line in the System.java is:
public static java.util.Map getenv() {

 

Is there anybody out there who knows the ccparser used in Jane? It looks somewhat complex to me and I don't want to spend the next few weeks' evenings analyzing it just to fix this little bug...

 

btw: I didn't find any code for handling the Runtime-JavaDocs. But perhaps I didn't look deep enough into the code. For me, it looks as if only comments from Runtime-sourcecode are taken ...

 

Best regards,
-mARKUS

How to open a open a class's source file from a variable of the class's type?
Submitted by blowfish on Tuesday, 19 October, 2004 - 00:13
Hi

When I use other editors like IDEA from IntelliJ, there is a facility by which, if I select a variable name or a Class name in an open buffer, I can choose an option to directly open the source code of the Class file, so long as it is in the project. I can also go to the declaration of the variable.

Is there a similar facility in jEdit? I have been searching if this facility is available, but I have not been able to locate it. Please let me know if you are aware as to how this can be done? Or is it a new feature altogether?

Rgds.
gruntspud broken pipe
Submitted by Anonymous on Tuesday, 19 October, 2004 - 09:37
hi all,
i'm tryng to use gruntspud plugin, but every time i use a command like checkout i have a "broken pipe" error.

maybe i don't set some preferences, i don't know

this is my activity log:
[notice] CommandGroup: 424637 [CommandGroup] INFO CVS - Ignore file filter set
[error] CommandGroup: java.io.IOException: Broken pipe
[error] CommandGroup: at java.io.FileOutputStream.writeBytes(Native Method)
[error] CommandGroup: at java.io.FileOutputStream.write(FileOutputStream.java:260)
[error] CommandGroup: at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
[error] CommandGroup: at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
[error] CommandGroup: at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
[error] CommandGroup: at java.io.FilterOutputStream.flush(FilterOutputStream.java:123)
[error] CommandGroup: at org.netbeans.lib.cvsclient.Client.processRequests(Client.java:422)
[error] CommandGroup: at org.netbeans.lib.cvsclient.command.checkout.CheckoutCommand.execute(CheckoutCommand.java:272)
[error] CommandGroup: at org.netbeans.lib.cvsclient.Client.executeCommand(Client.java:518)
[error] CommandGroup: at gruntspud.CVSCommandHandler$CommandGroup.doCommand(CVSCommandHandler.java:581)
[error] CommandGroup: at gruntspud.CVSCommandHandler$CommandGroup.doDir(CVSCommandHandler.java:510)
[error] CommandGroup: at gruntspud.CVSCommandHandler$CommandGroup.doNodes(CVSCommandHandler.java:388)
[error] CommandGroup: at gruntspud.CVSCommandHandler$CommandGroup.run(CVSCommandHandler.java:330)
[notice] CommandGroup: 426548 [CommandGroup] ERROR CVS - org.netbeans.lib.cvsclient.command.CommandException: Broken pipe
[notice] CommandGroup: 426548 [CommandGroup] ERROR CVS - Command unit exception
[notice] CommandGroup: java.io.IOException: Broken pipe
[notice] CommandGroup: at java.io.FileOutputStream.writeBytes(Native Method)
[notice] CommandGroup: at java.io.FileOutputStream.write(FileOutputStream.java:260)
[notice] CommandGroup: at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
[notice] CommandGroup: at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
[notice] CommandGroup: at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
[notice] CommandGroup: at java.io.FilterOutputStream.flush(FilterOutputStream.java:123)
[notice] CommandGroup: at org.netbeans.lib.cvsclient.Client.processRequests(Client.java:422)
[notice] CommandGroup: at org.netbeans.lib.cvsclient.command.checkout.CheckoutCommand.execute(CheckoutCommand.java:272)
[notice] CommandGroup: at org.netbeans.lib.cvsclient.Client.executeCommand(Client.java:518)
[notice] CommandGroup: at gruntspud.CVSCommandHandler$CommandGroup.doCommand(CVSCommandHandler.java:581)
[notice] CommandGroup: at gruntspud.CVSCommandHandler$CommandGroup.doDir(CVSCommandHandler.java:510)
[notice] CommandGroup: at gruntspud.CVSCommandHandler$CommandGroup.doNodes(CVSCommandHandler.java:388)
[notice] CommandGroup: at gruntspud.CVSCommandHandler$CommandGroup.run(CVSCommandHandler.java:330)
[notice] CommandGroup: 429614 [CommandGroup] ERROR CVS - Command unit exception
[notice] CommandGroup: java.io.IOException: Broken pipe
[notice] CommandGroup: at java.io.FileOutputStream.writeBytes(Native Method)
[notice] CommandGroup: at java.io.FileOutputStream.write(FileOutputStream.java:260)
[notice] CommandGroup: at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
[notice] CommandGroup: at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
[notice] CommandGroup: at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
[notice] CommandGroup: at java.io.FilterOutputStream.flush(FilterOutputStream.java:123)
[notice] CommandGroup: at org.netbeans.lib.cvsclient.Client.processRequests(Client.java:422)
[notice] CommandGroup: at org.netbeans.lib.cvsclient.command.checkout.CheckoutCommand.execute(CheckoutCommand.java:272)
[notice] CommandGroup: at org.netbeans.lib.cvsclient.Client.executeCommand(Client.java:518)
[notice] CommandGroup: at gruntspud.CVSCommandHandler$CommandGroup.doCommand(CVSCommandHandler.java:581)
[notice] CommandGroup: at gruntspud.CVSCommandHandler$CommandGroup.doDir(CVSCommandHandler.java:510)
[notice] CommandGroup: at gruntspud.CVSCommandHandler$CommandGroup.doNodes(CVSCommandHandler.java:388)
[notice] CommandGroup: at gruntspud.CVSCommandHandler$CommandGroup.run(CVSCommandHandler.java:330)
[debug] EditBus: ErrorSourceUpdate[source=null,what=ERROR_ADDED,errorSource=gruntspud.jedit.ErrorListGruntspudCVSListener@1e94001,error=gruntspud.jedit.ErrorListGruntspudCVSListener$GruntspudCVSError@7413e8]
[notice] AWT-EventQueue-0: 430485 [AWT-EventQueue-0] INFO Plugin - Saving progress dialog geometry cvsCommand.progressDialog.geometry as java.awt.Dimension[width=182,height=154]

thanks a lot
ps. nice job man, i love jedit
What's next?
Submitted by pcause on Tuesday, 19 October, 2004 - 12:38
Glad to see the release and love it, as always. Any thoughts on what is next, timing, etc?
resin
Submitted by troublesome on Tuesday, 19 October, 2004 - 18:04
i'd like to request a plugin for resin/j2ee development. if there is one already, could somebody tell me what it's called? thanks
"^" key doesn't work.
Submitted by Anonymous on Tuesday, 19 October, 2004 - 19:46
Hi,

As many TeX users, my work depends on the "^" symbol which doesn't work in JEdit, everywhere else it does. Is there any possibility to get it activated or is this a bug in jEdit? I'm running under Mandrake Linux 10.0 with XFree 4.3 and KDE 3.2.

Thanks in advance.
Oliver
Javafold + WhiteSpace = problem
Submitted by Anonymous on Wednesday, 20 October, 2004 - 02:16
Fold guides are not displayed as it should be if folding mode is set to java (using javafold plugin)
Plugin update
Submitted by Anonymous on Wednesday, 20 October, 2004 - 02:22
Plugin update allways reports that there is new version of Ant Helper (0.8.3) but i never get that new version.
Hiding unnecessary scrollbars
Submitted by Anonymous on Wednesday, 20 October, 2004 - 11:42
I would like the scrollbars (especially the horizontal scrollbar) to (individually) disappear when the text actually fits horizontally or vertically into the buffer. This provides about one more column and line of text and is especially helpful when you have more than one buffer open. I always like to see as much text as possible without having to scroll.

cu,
dwoakee.
Turning off the gutter
Submitted by Anonymous on Wednesday, 20 October, 2004 - 11:45
I searched extensively for an option / a possibility to turnoff the gutter in buffers completely. But I did not find one. Since I do not use any of the functions the gutter offers I would rather see one more column of text (especially when multiple buffers are open).

cu,
dwoakee.
Changing heap size on OSX
Submitted by arvid on Wednesday, 20 October, 2004 - 12:35
How do I do it on OSX? I've searched both the jEdit application dir and the .jedit dir
Press
Submitted by savithari on Wednesday, 20 October, 2004 - 21:01
Hello: I am inside a jedit buffer. It is of type jsp. I press the < key and immediately a drop down list box with entries like
International character input
Submitted by Anonymous on Thursday, 21 October, 2004 - 00:41
Whenever I type the a single quote (') or the double quote (") or a tilde (~) followed by certain letters it auto-corrects it into an accented character:

So:
'a => á
"a => ä
~n => ñ
"u => ü
/c => ¢
etc.

I am not sure if it is something Java is doing or if it is JEdit enabling international character input. This is under Windows XP SP2, JRE 1.5.0, Jedit 4.2. Either way, it makes writing program code a major pain.

Roger
The XML plugin don't find my DTD
Submitted by Marcogringo on Thursday, 21 October, 2004 - 07:23
Hi, I have a problem with the XML plugin : I can't find how to use it when a dtd (or an XML schema) is associated to a document.
Here is a part doctype of my document "my_tree.xml":
!DOCTYPE root SYSTEM "my_product.dtd" (encapsulate in < and > : sorry I didn't find how to post xml data in the forum)
"my_product.dtd" is in the same directory than "my_tree.xml" (loaded in a buffer of jEdit), but the XML plugin don't look finding it. It give an error for all elements et attributes, like "Element root must be declared". It is like if it doesn't able to find my dtd: it's the same thing if I write anything else for the system ID (dtd name) in "my_tree.xml".
Pleaaaase, I need an answer...
User login
Browse archives
« October 2004 »
MoTuWeThFrSaSu
 
6
10
17
22
26
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   108249
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