Menu

#1826 ctagsinterface 2.8.0 can not start (luceneplugin 4.2 installed )

None
closed-works-for-me
nobody
None
5
2015-11-08
2015-11-05
liu li
No

ctagsinterface 2.8.0 can not start with luceneplugin 4.2 installed.

1 Attachments

Discussion

  • liu li

    liu li - 2015-11-05

    plugin list

     
  • Tim Blackler

    Tim Blackler - 2015-11-05

    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

     
  • liu li

    liu li - 2015-11-05

    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.

     
  • Alan Ezust

    Alan Ezust - 2015-11-06

    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.

     
  • liu li

    liu li - 2015-11-08

    It's ok after clean ctagsinterface plugin's index database and rebuild all, thanks for everyone.

     
    • Stefan Sauer

      Stefan Sauer - 2016-02-02

      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
  • Alan Ezust

    Alan Ezust - 2015-11-08
    • status: open --> closed-works-for-me
    • Group: -->
     

Log in to post a comment.