I hate to sound like the IT Crowd, but have you tried turning it off and on again ?
Seriously, the latest version of the Lucene plugin has upgraded to Lucene v5.1 which has some API differences with the old version the plugin used.
The latest version of ctags plugin also uses Lucene and it have been upgraded to work with Lucene v5.1.
Also I had the same issue when I did the upgrade, and restarting jEdit worked for me. I suspect the classloader still had the old version of the Lucene library lying around, and restarting meant that the right version of Lucene was loaded.
If you still see the issue, can you please post the errors from the activity log
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
21:43:36 [main][error] PluginJAR: Error while starting plugin ctagsinterface.main.CtagsInterfacePlugin
21:43:36 [main][error] PluginJAR: java.lang.IllegalArgumentException: Could not load codec 'Lucene42'. Did you forget to add lucene-backward-codecs.jar?
21:43:36 [main][error] PluginJAR: at org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:433)
21:43:36 [main][error] PluginJAR: at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:325)
21:43:36 [main][error] PluginJAR: at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:830)
21:43:36 [main][error] PluginJAR: at ctagsinterface.index.TagIndex.<init>(TagIndex.java:149)
21:43:36 [main][error] PluginJAR: at ctagsinterface.main.CtagsInterfacePlugin.start(CtagsInterfacePlugin.java:79)
21:43:36 [main][error] PluginJAR: at org.gjt.sp.jedit.PluginJAR.startPlugin(PluginJAR.java:1740)
21:43:36 [main][error] PluginJAR: at org.gjt.sp.jedit.PluginJAR.activatePlugin(PluginJAR.java:951)
21:43:36 [main][error] PluginJAR: at org.gjt.sp.jedit.PluginJAR.activatePluginIfNecessary(PluginJAR.java:1021)
21:43:36 [main][error] PluginJAR: at org.gjt.sp.jedit.jEdit.main(jEdit.java:549)
21:43:36 [main][error] PluginJAR: Caused by: java.lang.IllegalArgumentException: An SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene42' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [Lucene50]
21:43:36 [main][error] PluginJAR: at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:109)
21:43:36 [main][error] PluginJAR: at org.apache.lucene.codecs.Codec.forName(Codec.java:98)
21:43:36 [main][error] PluginJAR: at org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:423)
21:43:36 [main][error] PluginJAR: ... 8 more
21:43:36 [main][error] ErrorListDialog$ErrorEntry: /Users/pi1ot/Library/jEdit/jars/CtagsInterface.jar:
21:43:36 [main][error] ErrorListDialog$ErrorEntry: Cannot start: java.lang.IllegalArgumentException: Could not load codec 'Lucene42'. Did you forget to add lucene-backward-codecs.jar?
21:43:36 [main][error] ErrorListDialog$ErrorEntry: Try updating to a newer version of the plugin.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Perhaps you have some old .jar files left over from a previous lucene install?
Go to plugin manager - find orphan and see if you can clean up any old JARs that way.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For the record
"~/.jedit/CtagsInterface/" seems to be from an old version and can be deleted regardless.
"~/.jedit/plugins/ctagsinterface.main.CtagsInterfacePlugin" was the folder that I had to delete.
Last edit: Stefan Sauer 2016-02-02
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
plugin list
I hate to sound like the IT Crowd, but have you tried turning it off and on again ?
Seriously, the latest version of the Lucene plugin has upgraded to Lucene v5.1 which has some API differences with the old version the plugin used.
The latest version of ctags plugin also uses Lucene and it have been upgraded to work with Lucene v5.1.
Also I had the same issue when I did the upgrade, and restarting jEdit worked for me. I suspect the classloader still had the old version of the Lucene library lying around, and restarting meant that the right version of Lucene was loaded.
If you still see the issue, can you please post the errors from the activity log
Yes, but still same error.
21:43:36 [main] [error] PluginJAR: Error while starting plugin ctagsinterface.main.CtagsInterfacePlugin
21:43:36 [main] [error] PluginJAR: java.lang.IllegalArgumentException: Could not load codec 'Lucene42'. Did you forget to add lucene-backward-codecs.jar?
21:43:36 [main] [error] PluginJAR: at org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:433)
21:43:36 [main] [error] PluginJAR: at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:325)
21:43:36 [main] [error] PluginJAR: at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:830)
21:43:36 [main] [error] PluginJAR: at ctagsinterface.index.TagIndex.<init>(TagIndex.java:149)
21:43:36 [main] [error] PluginJAR: at ctagsinterface.main.CtagsInterfacePlugin.start(CtagsInterfacePlugin.java:79)
21:43:36 [main] [error] PluginJAR: at org.gjt.sp.jedit.PluginJAR.startPlugin(PluginJAR.java:1740)
21:43:36 [main] [error] PluginJAR: at org.gjt.sp.jedit.PluginJAR.activatePlugin(PluginJAR.java:951)
21:43:36 [main] [error] PluginJAR: at org.gjt.sp.jedit.PluginJAR.activatePluginIfNecessary(PluginJAR.java:1021)
21:43:36 [main] [error] PluginJAR: at org.gjt.sp.jedit.jEdit.main(jEdit.java:549)
21:43:36 [main] [error] PluginJAR: Caused by: java.lang.IllegalArgumentException: An SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene42' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [Lucene50]
21:43:36 [main] [error] PluginJAR: at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:109)
21:43:36 [main] [error] PluginJAR: at org.apache.lucene.codecs.Codec.forName(Codec.java:98)
21:43:36 [main] [error] PluginJAR: at org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:423)
21:43:36 [main] [error] PluginJAR: ... 8 more
21:43:36 [main] [error] ErrorListDialog$ErrorEntry: /Users/pi1ot/Library/jEdit/jars/CtagsInterface.jar:
21:43:36 [main] [error] ErrorListDialog$ErrorEntry: Cannot start: java.lang.IllegalArgumentException: Could not load codec 'Lucene42'. Did you forget to add lucene-backward-codecs.jar?
21:43:36 [main] [error] ErrorListDialog$ErrorEntry: Try updating to a newer version of the plugin.
Perhaps you have some old .jar files left over from a previous lucene install?
Go to plugin manager - find orphan and see if you can clean up any old JARs that way.
It's ok after clean ctagsinterface plugin's index database and rebuild all, thanks for everyone.
For the record
"~/.jedit/CtagsInterface/" seems to be from an old version and can be deleted regardless.
"~/.jedit/plugins/ctagsinterface.main.CtagsInterfacePlugin" was the folder that I had to delete.
Last edit: Stefan Sauer 2016-02-02