Difference between Jedit 4.2 and 4.3pre6
Submitted by
Fabio2006 on
Friday, 18 August, 2006 - 05:48
Hello Developpers
I have a lite Script who work fine in Jedit 4.2 but not in 4.3pre5 and not in 4.3pre6.
The Console Window open and wait but there are errors in the Command Window and in the BeanShell Window.
Is there any idea what I can change?
Regrads,
Fabio
import console.Console;
{
Buffer b = view.getBuffer();
String strName = b.getName();
String strPath = b.getPath();
String strCmd = new String("java.exe -jar \"C:\\Programme\\Interlis\\ili2c\\ili2c.jar\" --without-warnings \"" + strPath + "\"");
runCommandInConsole(view, "System", strCmd);
}
1) Console Window Errors:
[error] BeanShell: java.lang.NoClassDefFoundError: org/gjt/sp/jedit/search/RESea
rchMatcher
...and a lot of more error lines...
2) BeanShell Window Errors:
java.lang.NoClassDefFoundError: org/gjt/sp/jedit/search/RESearchMatcher
...and a lot of more error lines...
Difference between Console PlugIn 4.1.2 in Jedit 4.2 and 4.3pre6
Submitted by
Fabio2006 on
Friday, 18 August, 2006 - 05:55
Hello Developpers
I have a lite Script who work fine in Jedit 4.2 but not in 4.3pre5 and not in 4.3pre6.
The Console Window open and wait but there are errors in the Command Window and in the BeanShell Window.
Is there any idea what I can change?
Regrads,
Fabio
import console.Console;
{
Buffer b = view.getBuffer();
String strName = b.getName();
String strPath = b.getPath();
String strCmd = new String("java.exe -jar \"C:\\Programme\\Interlis\\ili2c\\ili2c.jar\" --without-warnings \"" + strPath + "\"");
runCommandInConsole(view, "System", strCmd);
}
1) Console Window Errors:
[error] BeanShell: java.lang.NoClassDefFoundError: org/gjt/sp/jedit/search/RESea
rchMatcher
...and a lot of more error lines...
2) BeanShell Window Errors:
java.lang.NoClassDefFoundError: org/gjt/sp/jedit/search/RESearchMatcher
...and a lot of more error lines...
explict folding mode
Submitted by
haras on
Friday, 18 August, 2006 - 17:02
how to use explict folding mode in php, i have tried almost all function in jedit and nothing happens :{
i have for example:
/**
* @name render_menu
// +{{{
* .... some other
*/
public static function render_menu() {
....code...
} //}}}
i want this to produce:
+ render_menu
when i hit + it will expand the code of this method
i have makro downloaded from this site to collapse folds on startup beginning with -{{{ and expand statring with +{{{
but it doesn't work
Damn those Pangos.
Submitted by
Modulok on
Friday, 18 August, 2006 - 18:07
I installed jEdit on Debian, no problem. When I fire up the jedit.jar through my java bytecode rpreter, it shows the jedit splash screen and then hangs. When I interrupt the process, the following error is printed to the shell I launched jedit from:
(.:26442): Pango-WARNING **: Invalid UFT-8 string passed to pango_layout_set_text()
Anyone have any ideas on how to resolve this?
-Modulok-
Open_Last_Closed_Buffer.bsh v0.1 by Jakub Roztocil
Submitted by
Oswald on
Monday, 21 August, 2006 - 09:28
Opens last closed buffer.
Jedit with Lilypond on Suse 10.1
Submitted by
marino on
Wednesday, 23 August, 2006 - 17:18
Hello everyone,
me installed jEdit4.3pre6 version and lilypond-2.8.6-1 version.
many things not works.
me can launch and use Lilipond to compile file, but internal midi player, DVI and lots of features not working.
solved something installing back version of Console.
there's a mix of plugin and program versions all working together?
all seems wonderful but not working, pity!!
thank you in advance.
Open/Save dialog keyboard focus - Is this a bug?
Submitted by
2gooder on
Wednesday, 23 August, 2006 - 17:22
Hey guys. I've been using jEdit for a few years and I alway use the latest development version. As of version 4.3pre5 I've noticed that when I open a Save or Open dialog (Crtl-S or Ctrl-O) the keyboard focus is no longer in the "File name:" text box.
The result of this is that I can no longer begin typing a name of a file when the dialog open. Instead I have to move to the mouse and click on the file name text box. It really slows me down when I am creating or opening lots of files.
Should I file this as a bug, or is this a new "feature"?
Thanks a lot,
Simon
linecomment //
Submitted by
OBI_Ron on
Wednesday, 23 August, 2006 - 20:05
Hello everyone,
I have just started using jEdit, and would like to create a new edit mode to handle Poser cr2 files. I have read thru the help docs, and am using the python.xml as a reference.
In python.xml, the following line handles comments:
PROPERTY NAME="lineComment" VALUE="#" /
So each line that begins with # is recognized as a comment line.
In a cr2 file, comment lines begin with //, and have no end of comment designation. So I tried to use the same cocept:
PROPERTY NAME="lineComment" VALUE="//" /
But I am not getting the results that I would expect. Comment lines are not recognized at all.
Can anyone shed some light on this?
Thanks for your time!
editing .wsf files
Submitted by
jeisma on
Thursday, 24 August, 2006 - 05:09
hi!
im trying to edit .wsf files but jedit cannot seem to syntax highlight codes with the "script language" sections.
it can aptly recognize .js files though.
i tried to change default edit mode to javascript, xml, html, but to no avail.
anyone have tips on how to go around this?
thanks!
joey
Info Viewer using Internet Explorer or Firefox under Windows
Submitted by
mserero on
Friday, 25 August, 2006 - 01:16
Hello,
I haven't been abble to use Internet Explorer or Firefox under Windows with Info Viewer.
I use the following command line:
start "c:\Program Files\Internet Explorer\iexplorer.exe" $u
It seems to return the content of the buffer and not the file URL. I used jedit 4.2-pre6 with Info Viewer 1.5.9.
Has anyone attempted to do the same thing?
Edit modes "FUNCTION"
Submitted by
Manil on
Friday, 25 August, 2006 - 02:30
Hi,
i want to know if it is possible to have something like this highlighted as a function:
a ();
b ();
aa ();
ababab();
<*MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="FALSE">(<*/MARK_PREVIOUS>
I know that this will highlight a function but with no space before (, i have code like that sometimes and i want to know if there is a way to highlight a function with n spaces before (
Thx a lot
substring error
Submitted by
OBI_Ron on
Saturday, 26 August, 2006 - 02:16
Hello Everyone,
I am creating a macro, using hypersearch_results_to_buffer as a starting point. I have modified the macro so far so that the path is not included. Now, I would like to strip out the line number. Using the following code:
traverseTree(javax.swing.tree.DefaultMutableTreeNode node, StringBuffer results){
if (node.getUserObject() instanceof org.gjt.sp.jedit.search.HyperSearchFileNode)
{
path = node.getUserObject().path;
match = node.getFirstChild();
while(match != null)
{
text = match.getUserObject().str;
results.append(text + "\n");
match = match.getNextSibling();
I get results like:
1770: material CabinetBase
1792: material CabinetBase_Panel_01.jpg.001
So I try to modify the block to:
text = match.getUserObject().str;
myStrLoc = (text.indexOf(":")+1);
text = text.subString(myStrLoc);
results.append(text + "\n");
match = match.getNextSibling();
However, every time I try to run the macro, I get the following error:
Sourced file: C:\Program Files\jEdit\macros\Misc\HyperSearch_Results_to_Buffer2.bsh : Error in method invocation: Method subString( int ) not found in class'java.lang.String' : at Line: 37 : in file: C:\Program Files\jEdit\macros\Misc\HyperSearch_Results_to_Buffer2.bsh : text .subString ( myStrLoc )
Called from method: writeHypersearchResultsToBuffer : at Line: 81 : in file: C:\Program Files\jEdit\macros\Misc\HyperSearch_Results_to_Buffer2.bsh : writeHypersearchResultsToBuffer ( view )
I have tried using text = text.subString(1); and text = text.subString(1,8);
...but I get the same results.
What am I missing?? Thanks in advance for your help!!
TaskList plugin:How make it work with text-files?
Submitted by
mabra on
Saturday, 26 August, 2006 - 18:21
Hi All!
I just wished to use the TaskList with some simple "Notes" files, with "*.txt" extension, but I cannot get it working. My Task's settings normally work with all my other file-types. I recognized, that text-files were not checked in the MODEs settings and I checked it. I also tried to re-start JEdit.
Nothing seems to help. Are there known issues or do I have possibly overseen somethink?
Any help is very welcomed!
Best regards,
Manfred
Including plug-ins in install
Submitted by
adxp on
Monday, 28 August, 2006 - 03:29
Hey,
I've customised a few pre-existing jEdit plug-ins, and I'd like to distribute them within my organisation by having the installer copy them to the plug-in directory automatically. Is there any easy way of accomplishing this? Also, in a similar vein, is there any good way of defining default perspective.xml settings?
Cheers, -adxp
Regular Expressions in 4.3pre6
Submitted by
zodiac_hh on
Monday, 28 August, 2006 - 07:46
Hi,
the regular expressions search and replace doesn't work here in version 4.3pre6 (fresh install). It doesn't match the specified regexp and it produces 100% cpu loads. For eample I often have to add ; to EOLs for SQL generation. So I use $ as the search term and ; as replacement string. It doesn't match anywhere, although there are 20 lines of ASCII, and it takes a minute or so to complete, using all of the CPU. Other regexp I tried also don't match. I had to switch back to 4.3pre4; here everything works fine. Is this related to the replacement of the regexp engine?
André
java.lang.RuntimeException: Invalid screen line count: 0
Submitted by
oimara475 on
Tuesday, 29 August, 2006 - 20:16
Hi,
I am trying to run a very simple macro, which should find duplicated
lines and delete the second one.
textArea.goToBufferStart(false);
SearchAndReplace.setSearchString("(^
LK-\\d+)(.+$\\n)([\\w\\W]*?)(^ LK-\\d+)\\2");
SearchAndReplace.setAutoWrapAround(true);
SearchAndReplace.setReverseSearch(false);
SearchAndReplace.setIgnoreCase(false);
SearchAndReplace.setRegexp(true);
SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
SearchAndReplace.setReplaceString("$1$2$3");
SearchAndReplace.setBeanShellReplace(false);
while (SearchAndReplace.find(view) == true)
{
textArea.goToBufferStart(false);
SearchAndReplace.replaceAll(view);
}
While the macro is executing, the following error occurs, several times.
java.lang.RuntimeException: Invalid screen line count: 0
at
org.gjt.sp.jedit.textarea.DisplayManager.getScreenLineCount(DisplayManager.java:187)
at org.gjt.sp.jedit.textarea.FirstLine.physDown(FirstLine.java:167)
at
org.gjt.sp.jedit.textarea.DisplayManager.setFirstPhysicalLine(DisplayManager.java:621)
at
org.gjt.sp.jedit.textarea.JEditTextArea.setFirstPhysicalLine(JEditTextArea.java:545)
at
org.gjt.sp.jedit.textarea.JEditTextArea.scrollTo(JEditTextArea.java:767)
at
org.gjt.sp.jedit.textarea.JEditTextArea.scrollTo(JEditTextArea.java:673)
at
org.gjt.sp.jedit.search.SearchAndReplace.find(SearchAndReplace.java:641)
at
org.gjt.sp.jedit.search.SearchAndReplace.find(SearchAndReplace.java:498)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
(...)
The same problem with this macro:
textArea.goToBufferStart(false);
SearchAndReplace.setSearchString("^( LK-)(\\d+)");
SearchAndReplace.setAutoWrapAround(false);
SearchAndReplace.setReverseSearch(false);
SearchAndReplace.setIgnoreCase(false);
SearchAndReplace.setRegexp(true);
SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
SearchAndReplace.setBeanShellReplace(true);
SearchAndReplace.setReplaceString("_1 +
(textArea.getSelectionStartLine() - 2)");
var n = textArea.getLineCount();
for (i = 0; i <= n - 2; i++)
{
SearchAndReplace.find(view);
SearchAndReplace.replace(view);
}
Has anybody got a hint, what the problem might be?
Martin
How to import the current date from two or three days ago?
Submitted by
SCJ on
Tuesday, 29 August, 2006 - 22:41
Can anyone help me write a macro that will import the date from one, two or three days ago.
Example- On August, 29th, 2006 the macro would generate the following text into a document:
Posted from: 08/26/06
I'm also wondering how to create a simple macro to create bold tags around a selected group of text? I thought this would be simple to find. Perhaps I am just looking in the wrong place? Any help is much appreciated. Thanks!
Can I compare 2 files in jEdit?
Submitted by
higgledy on
Thursday, 31 August, 2006 - 11:49
I would like to compare two script files, like this version with previous version, through GUI. Can jEdit do this?
I searched the forums but could not find a similar question, so I posted one.
jEdit on Dual Boot WinXP FC5 system
Submitted by
khala on
Thursday, 31 August, 2006 - 17:36
Hi
I decided to "save space" and run just one installation of jEdit on my dual boot system. I have a shared fat32 drive that is writable from both OSs. So I installed jEdit 4.2 (java version) from XP on that drive. Now when I try to run jEdit from fedora I see the splash screen and then those errors come up on the console. Does anybody know what should I do to get it running on FC5 without having to do a seperate install? Thanks
java -jar "/media/DATA/Programs/jEdit 4.2/jedit.jar"
(.:3515): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text ()
[error] AWT-EventQueue-4: java.lang.InternalError: Pango: Invalid UTF-8 string p assed to pango_layout_set_text()
[error] AWT-EventQueue-4: at java.la
[error] AWT-EventQueue-4: ng.reflect.Constructor.newInstance(libgcj.so.7)
[error] AWT-EventQueue-4: at gnu.java.awt.peer.gtk.GdkFontPeer.getTextMetri
[error] AWT-EventQueue-4: cs(lib-gnu-java-awt-peer-gtk.so.7)
[error] AWT-EventQueue-4: at gnu.java.awt.peer.gtk.GdkFontMetrics.stringWidth (lib-gnu-ja
[error] AWT-EventQueue-4: va-awt-peer-gtk.so.7)
[error] AWT-EventQueue-4: at gnu.java.awt.peer.gtk.GdkFontMetrics.charWidth(l ib-gnu-java-awt-peer-gtk
[error] AWT-EventQueue-4: .so.7)
[error] AWT-EventQueue-4: at java.awt.FontMetrics.getWidths(libgcj.so.7)
[error] AWT-EventQueue-4: at org.gjt.sp.jedit.textarea.TextAreaPai
[error] AWT-EventQueue-4: nter.getCharWidth(TextAreaPainter.java:879)
[error] AWT-EventQueue-4: at org.gjt.sp.jedit.textarea.TextAreaPainter.setSty le
[error] AWT-EventQueue-4: s(TextAreaPainter.java:218)
[error] AWT-EventQueue-4: at org.gjt.sp.jedit.EditPane.propertiesChanged(Edit Pane.java:455)
[error] AWT-EventQueue-4:
[error] AWT-EventQueue-4: at org.gjt.sp.jedit.EditPane.(EditPane.java:360)
[error] AWT-EventQueue-4: at org.gjt.sp.jedit.View.createEditPane(Vi
[error] AWT-EventQueue-4: ew.java:1547)
[error] AWT-EventQueue-4: at org.gjt.sp.jedit.View.restoreSplitConfig(View.ja va:1393)
[error] AWT-EventQueue-4: at org.gjt.sp.jedit.
[error] AWT-EventQueue-4: View.(View.java:1197)
[error] AWT-EventQueue-4: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2141)
[error] AWT-EventQueue-4: at org.gjt.sp.j
[error] AWT-EventQueue-4: edit.jEdit.newView(jEdit.java:2117)
[error] AWT-EventQueue-4: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2097)
[error] AWT-EventQueue-4: at org.
[error] AWT-EventQueue-4: gjt.sp.jedit.jEdit$5.run(jEdit.java:3455)
[error] AWT-EventQueue-4: at java.awt.event.InvocationEvent.dispatch(libgcj.s o.7)
[error] AWT-EventQueue-4: at java.awt.EventQueue.dispatchEvent(libgcj.so.7)
[error] AWT-EventQueue-4: at java.awt.EventDispatchThread.run(libgcj.
[error] AWT-EventQueue-4: so.7)
*** glibc detected *** java: double free or corruption (!prev): 0x080f4968 ***
======= Backtrace: =========
/lib/libc.so.6[0x445f18]
/lib/libc.so.6(__libc_free+0x78)[0x4493ef]
/usr/lib/libglib-2.0.so.0(g_free+0x31)[0xb6b335a1]
/usr/lib/lib-gnu-java-awt-peer-gtk.so.7(Java_gnu_java_awt_peer_gtk_GdkFontPeer_g etGlyphVector+0x3ab)[0xb6c03d3b]
/usr/lib/lib-gnu-java-awt-peer-gtk.so.7(_ZN3gnu4java3awt4peer3gtk11GdkFontPeer14
getGlyphVectorEPN4java4lang6StringEPNS5_3awt4FontEPNS9_4font17FontRenderContextE +0x85)[0xb6bf23c5]
======= Memory map: ========
00001000-00356000 rwxp 00001000 00:00 0
003b8000-003bc000 r-xp 00000000 fd:00 1396206 /usr/lib/libgthread-2.0.so.0.10 00.3
.........................................................................................
............... etc
Aborted
Problems with jEdit / Synaptic
Submitted by
antzmg on
Saturday, 2 September, 2006 - 12:53
I installed rencentlly jEdit, the last debian package.
Maybe, I installed the package wronged? I have Ubuntu 6.06.
I receive the message (in Synaptic):
Unknown Error: exceptions.SystemError (E: The package jedit needs to be reintalled, but I can't find an archive for it)
Can you help me, please?