XML plugin fails with 4.2 final
Submitted by
jeffj on
Wednesday, 17 October, 2007 - 20:15
I can't get the XML parser to work with jEdit 4.2 final on a new Windows installation. Otherwise, jEdit runs fine.
When I try to use the plugin with an HTML file, I'm told that xml.parser.HTMLParserImpl didn't load because the class xml/parser/XmlParser wasn't found. Seems like those slashes should've been dots. The stack trace is at the end of the message.
I also get an error message, at the same time, that org.apache.xerces.jaxp.SAXParserFactoryImpl wasn't found.
After this, I have to use the Plugin manager to unload the XML plugin before I can type greater-than characters into any buffer that the XML plugin normally works with. Also, none of the functionality of the plugin is available.
Any ideas on how to fix it?
The stack:
java.lang.NoClassDefFoundError: A class required by class: xml.parser.HTMLParserImpl could not be loaded:
java.lang.NoClassDefFoundError: xml/parser/XmlParser
at bsh.BshClassManager.noClassDefFound(BshClassManager.java:552)
at bsh.BshClassManager.plainClassForName(BshClassManager.java:241)
at bsh.BshClassManager.classForName(BshClassManager.java:170)
at bsh.NameSpace.classForName(NameSpace.java:1265)
at bsh.NameSpace.getClassImpl(NameSpace.java:1165)
at bsh.NameSpace.getClass(NameSpace.java:1106)
at bsh.Name.consumeNextObjectField(Name.java:301)
at bsh.Name.toObject(Name.java:202)
at bsh.BSHAmbiguousName.toObject(BSHAmbiguousName.java:59)
at bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:86)
at bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:62)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.Interpreter.eval(Interpreter.java:641)
at bsh.Interpreter.eval(Interpreter.java:731)
at bsh.Interpreter.eval(Interpreter.java:720)
at org.gjt.sp.jedit.BeanShell._eval(BeanShell.java:446)
at org.gjt.sp.jedit.BeanShell.eval(BeanShell.java:410)
at org.gjt.sp.jedit.ServiceManager$Descriptor.getInstance(ServiceManager.java:321)
at org.gjt.sp.jedit.ServiceManager.getService(ServiceManager.java:264)
at sidekick.SideKickPlugin.getParser(SideKickPlugin.java:142)
at sidekick.SideKickPlugin.getParserForBuffer(SideKickPlugin.java:167)
at sidekick.SideKick.setParser(SideKick.java:131)
at sidekick.SideKick.handleMessage(SideKick.java:155)
at org.gjt.sp.jedit.EditBus.send(EditBus.java:148)
at org.gjt.sp.jedit.jEdit.addPluginJAR(jEdit.java:1034)
at org.gjt.sp.jedit.pluginmgr.ManagePanel$PluginTableModel.loadPluginJAR(ManagePanel.java:376)
at org.gjt.sp.jedit.pluginmgr.ManagePanel$PluginTableModel.setValueAt(ManagePanel.java:298)
at javax.swing.JTable.setValueAt(JTable.java:2662)
at javax.swing.JTable.editingStopped(JTable.java:4661)
at javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:125)
at javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEditor.java:330)
at javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:215)
at javax.swing.DefaultCellEditor$EditorDelegate.actionPerformed(DefaultCellEditor.java:347)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:291)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at javax.swing.plaf.basic.BasicTableUI$Handler.repostEvent(BasicTableUI.java:924)
at javax.swing.plaf.basic.BasicTableUI$Handler.mouseReleased(BasicTableUI.java:1138)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Mode C onversion and Newbie Console Help
Submitted by
woodslanding on
Thursday, 18 October, 2007 - 09:14
I am using a program called MUP, which compiles music graphics from text files I have been editing in JEdit. There are currently MUP syntax highlighting files for VIM, EMACS and KATE. I'm wondering if there is any way to convert any of these files into a mode file that JEdit can use. Or if there is a good tutorial out there on the way in which these type of syntax files are set up. It's obviously a problem that has been addressed by a number of programs in a variety of ways, but it's pretty much greek to me.
Also, if there is an intro to console tutorial somewhere, I'd like to check it out. The MUP compiler runs from the command line, so I'm thinking it should be possible to get it to compile from the console in JEDIT, but I'm not at all command-line savvy.... Ideally, I'd like to just compile from a key-command.
Any help welcome!
-eric
jEdit hijacked ctrl+alt+j
Submitted by
wtijsma on
Thursday, 18 October, 2007 - 10:59
Hi,
For some reason JEdit hijacked my ctrl+alt+j combination to start up, where can I change this (to Windows + J for example?)? It's quite an important shortcut for me in other programs, and I couldn't find it quick enough in the global settings, and didn't disable the shortcut on stopping JEdit Server

so I had to uninstall unfortunately.
Thank you in advance...
Wiebe Tijsma
One-stage save breaks hard links
I know that the docs claim that if you turn off the "two-stage save" mode, jEdit should preserve hard links and file ownership and so on, but this doesn't work for me. If I save a file that is hard-linked from elsewhere, the link is always broken as if I had two-stage save turned on. Can anybody else repeat this?
I'm using 4.2Final with Kubuntu 7.04 and Java version 1.4.2-02.
newbie
Submitted by
am33n on
Sunday, 21 October, 2007 - 10:17
Hello guys
I downloaded jedit to use for my java programming studies! I use mac but i have no clue how to run the program!! I dont know how to compile, where to write the java code, its a bit confusing, it doesnt look like this picture http://jedit.org/index.php?page=screenshot&image=22
P.S. im just starting my "hello world" program.
thanks
JCompiler problem
I have just downloaded JEdit and the JCompiler plugin. When I try to use JCompiler I get a BeanShell error followed by the message - Java Core Plugin. The "Default" service is not available. Possibly the plugin providing it has been unloaded or removed. Switching to default.
I would guess that I'm missing something that is basic but I am obviously quite thick and any help would be most appreciated.
Syntax highlight
Submitted by
gregus on
Tuesday, 23 October, 2007 - 06:52
How do I get to the class or method that control the Highlight. when you save as "example.java" the extension will know that it is a java program other extensions are Java,xml,php, perl.etc. example of what I am saying is below.
public SyntaxStyle getStyle()
{
if(!okClicked)
return null;
Color foreground = (fgColorCheckBox.isSelected()
? fgColor.getSelectedColor()
: null);
When I save a new file as "example.java" Those color on public, getsysle etc. should not appear again.
I have tried all the GlobalOptions, SyntaxHillit, and others I cannot find it. I am a babe learning.
C# question???
Submitted by
jimmygyuma on
Wednesday, 24 October, 2007 - 18:10
I know, I know, this is a jEdit forum. But I have gotten no help from MSDN C# forum or CodeGuru C#.
I use jEdit to edit the pages on my website. I am in the process of putting up the pages of a logbook. I have written a program in C# to help me write those pages; basically I fill in a lot of blanks and the program writes and saves the .html page. I have a button to open the page in IE to see if it looks alright, and I have another button which is supposed to open the file in jEdit for editing. It is this button that is giving me problems.
It opens the file in a new instance of jEdit, instead of in the running instance of jEdit. Well, actually it opens the file in both the running instance and the new instance. And the new instance has all the same files open as the running instance. Dopey.
I don't want to open a new instance of jEdit, I want the file to open in the already running instance.
If anyone has any experience with C# or the .NET framework and can tell me how to do this, I would be very grateful.
I guess I should have written the thing as a jEdit plugin to begin with, but that would have required learning how to write a plugin and relearning Java.
Thanks,
Jim
Macro problem on self-built jEdit
Submitted by
jedi on
Thursday, 25 October, 2007 - 20:46
I checked out the HEAD from svn (rev 10955) and it compiled without errors. However, when I'm running it (ant run) it gives me errors from some of the built-in macros. For example:
Sourced file: /Users/jedi/projects/jedit/jEdit/build/macros/Editing/Emacs_Next_Line.bsh : Command not found: setAccessibility( boolean ) : at Line: 16 : in file: /Users/jedi/projects/jedit/jEdit/build/macros/Editing/Emacs_Next_Line.bsh : setAccessibility ( true )
Emacs_Next_Line works fine if I use it in the latest release (4.3pre1).
Has something been changed in the beanshell & macros since the latest release and how do I fix this?
Thanks!
Surround selection with string (Surround.bsh v1)
Submitted by
vdichev on
Monday, 29 October, 2007 - 11:31
This script is designed to help with inline markup of strings for reStructuredText, AsciiDoc, txt2tags, or other similar Lightweight markup languages. Of course, you can use it on *any* plain text where you want to convey extra meaning to the contents.
Similarly to the XML plugin, it can surround multiple selections with the string requested by the user (by default, an asterisk- "*"). To be accepted as valid markup, though, the string must be at the start or end of the word, so the macro inserts the string at the closest word boundary without shrinking the selection. The selection is preserved, making it easier to apply another markup command afterwards.
Unlike the Add_Prefix_and_Suffix.bsh macro, this one operates on selections, not selected lines.
mysql tables problem
Submitted by
sirfaber on
Friday, 2 November, 2007 - 00:33
I just figured out that there is a problem in table definition... actually, mysql script used to create tables contains some odd field name (eg: "index") and mysql report an error. If it's correct it's necessary to change db init script and tables references in the code.
Selecting/Excluding lines of text
Submitted by
jurrie on
Friday, 2 November, 2007 - 16:59
When analyzing log files it can be handy to run with split views with each view being restricted to a particular subset of lines from the file in question. I'm trying to do something like this with jEdit and am looking for some guidance to steer me in the right direction. A search of the User's Guide and this forum didn't yield any obvious answers, possibly due to my use of inaccurate search terminology. Here goes:
1. how can I display only lines which match a certain search string (or pattern) ?
i.e. Show only lines with contain the string "MyLogEntry:"
2. how can I restrict the display content to only those lines which do not meet some exclusion content?
Ideally I'd be able to add and remove display filter restrictions dynamically.
i.e. Only show lines which do not contain the string "ComponentA:" nor the string "ComponentD:" nor the string "ComponentZ:"
In both of these cases I'd like to maintain the buffer's gutter and the ability display the original line numbers.
Is there a standard jEdit means of doing this?
Any guidance would be appreciated.
Saving & Editing Read-Only Files
Submitted by
drperrier on
Sunday, 4 November, 2007 - 18:58
I want to edit and then save a read-only file and I can't seem to do this. The "Read Only" macro built in only seems to work one-way and trying beanshell and entering buffer.setReadOnly(false) doesn't work either. Trying the search here at the community only turned up hits for people trying to make files read-only.
Is there a simple way to edit and then save read-only files in JEdit? Textmate and even Smultron will let me edit read-only files and then save them by authenticating myself as the root user inside the program. I'd like to stick with JEdit.
I'm running JEdit 4.3pre11 on Mac OS 10.4.9 and am dealing with a ruby directory I created as the root user in a unix window.
Thanks
Cannot see contents of Samba share
Submitted by
Slav Erik on
Tuesday, 6 November, 2007 - 09:30
Hi,
I'm running Ubuntu 7.10 on my workstation, and most of my files are on my server(running ubuntu 6.06). I connect via a Samba share which is mounted at boot.
I installed jEdit via the .deb install using synaptic, and it appears to work great apart from one major issue, I cannot access any of my work files. The samba share appears but when I click on it it is shown as empty. I've turned off the two step save incase thats the problem but still no go.
Any help at this point would be much appreciated as it's taken me quite some time to find an IDE as good as phpEdit that runs on Linux.
Thanks.
CtagsSideKick case insensitive tag sort?
Submitted by
colinl on
Thursday, 8 November, 2007 - 16:36
Hi
I use CtagsSideKick with C++, it is excellent. Unfortunately I have legacy code that is inconsistent in the case of function names. When I sort tags by name it correctly but non-intuitively (for me anyway) sorts all functions starting in upper case before those starting in lower case. Is there a way of getting it to ignore the case?
Thanks
jEdit java source files
Submitted by
vikki_pu on
Monday, 12 November, 2007 - 05:32
Hello ,I want to know that where I get the Java source files of jEdit editor or like as DrJava,J,eclipse etc...
Anyone know the Url or link so please tell me.
Thanks in Advance..
jEdit Font Courier New != Windows Courier New ?!
Submitted by
uhuebner on
Thursday, 15 November, 2007 - 13:02
I'm using jEdit 4.2pre11 on Windows XP.
Text Area font is Courier New 12.
Why does it look completely different (may I say ugly?) from the Windows one?
Can I use the Windows font?
Plugin Console: TOGGLE LABEL is not working properly
Submitted by
domingo80 on
Thursday, 15 November, 2007 - 23:42
Hello guys,
I'm having some problems making an XML file for a commando UserInterface with
the console plugin.
The jedit help is telling about the use of the TOGGLE_ENTRY ELEMENT the
following:
Here is an example TOGGLE_ENTRY element:
<TOGGLE_ENTRY LABEL="Additional file" VARNAME="ignoreCase"
EVAL="buffer.getPath()"/>
Now, i've try this:
<?xml version="1.0"?>
<!DOCTYPE COMMANDO SYSTEM "commando.dtd">
<COMMANDO>
<TOGGLE LABEL="blahblah"
VARNAME="var1" />
<TOGGLE_ENTRY LABEL="more blah " VARNAME="var2"
EVAL="buffer.getPath()"/>
</COMMANDO>
The first action "toggle" is working, which means for me that the xml file (under
\.jedit\console\commando) has been found and could be read. Now, if i add the
element "toggle_entry" jedit is giving an error. Im having exactly the same
problem with the LONG ENTRY element!
Am i doing something really wrong or is this a bug? This feature is really
important for me, so if u guys have an idea, plz let me know it!
The first lines of the BeanShell error say:
Sourced file: inline evaluation of: ``commandoTOGGLE_ENTRY(view,pane,ns,label,var,options);''
: Undefined argument: value : at Line: 10 : in file: commandoTOGGLE_ENTRY : (
value )
Called from method: commandoTOGGLE_ENTRY : at Line: 1 : in file: inline
evaluation of: ``commandoTOGGLE_ENTRY(view,pane,ns,label,var,options);'' :
commandoTOGGLE_ENTRY ( view , pane , ns , label , var , options )
at bsh.BSHArguments.getArguments(BSHArguments.java:67)
at bsh.BSHPrimarySuffix.doName(BSHPrimarySuffix.java:167)
.....
...
.
TypoScript problem
Submitted by
blipbloup on
Friday, 16 November, 2007 - 10:15
Hi,
I'm using the TypoScript extension for jEdit and have the following problem :
In "Plugin Options", when I choose "TypoScript" and click on the + button to add a new site, nothing happen !
I tried with jEdit 4.2 and 4.3.
Thanks for help !
sql 2 html
Submitted by
mbisping on
Saturday, 17 November, 2007 - 11:25
Hello,
I'd like to present SQL from a database with syntax highlighting on a HTML-web page.
I thougt about combining the JEdit syntax package
with the Code2Html plugin.
However, even the old version of the plugin doesn't streamline with the jedit syntax code.
What would be the best/easiest way to create a java method like
/**
* param String sql - a number of sql statements
* returns syntax highlighted sql codes in HTML notation
**/
public String toSyntaxHighlightHTML(String sql)
Cheers
Meikel