kpouer / jedit-plugin-highlight Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
Greetings,
Just wanted to let you know how I managed to solve a critical fatal error when trying to run Highlight on a fresh install.
(And I find your plugin absolutely essential to be productive, if I could only run 1 plugin in jEdit overall, that would be Highlight.)
I installed and ran jEdit 5.6, installed Highlight 2.5, and kept getting the following error on trying to start the plugin:
Cannot start: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
Try updating to a newer version of the plugin.
Reinstalling jEdit or the plugin didn't help.
After reading the detailed log (bless jEdit for the Activity Log), and reading the source code here on GitHub (bless you for keeping it open source), I discovered that the line String line = lines.get(0);
was throwing this error, and empty highlights.ser
was the culprit (the file was there, but it was 0 bytes).
I copied that file from my other machine, and the plugin runs like a charm now.
I highly suspect that even having one line like that in said file would be enough:
Highlight file v2
(To those who find this via web-search, the file to edit is /plugins/gatchan.highlight.HighlightPlugin/highlights.ser
in your jEdit directory.)
A short trace is, in case you need it:
[error] PluginJAR: at java.base/java.util.ArrayList.get(ArrayList.java:459)
[error] PluginJAR: at gatchan.highlight.HighlightManagerTableModel.<init>(HighlightManagerTableModel.java:139)
[error] PluginJAR: at gatchan.highlight.HighlightManagerTableModel.createInstance(HighlightManagerTableModel.java:101)
[error] PluginJAR: at gatchan.highlight.HighlightPlugin.start(HighlightPlugin.java:77)
[error] PluginJAR: at org.gjt.sp.jedit.PluginJAR.startPlugin(PluginJAR.java:1736)
[error] PluginJAR: at org.gjt.sp.jedit.PluginJAR.activatePlugin(PluginJAR.java:956)
Hi Matthieu,
can you please retag and update https://sourceforge.net/p/jedit/plugin-central-submission/1068/ ?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.