#1554 CtagsInterface no segments file at first run

closed-fixed
None
6
2012-02-29
2012-02-12
Jarek Czekalski
No

When running jedit 4.5 for the first time after installing ctagsint I got an exception:

10:15:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0:
org.apache.lucene.index.IndexNotFoundException: no segments* file found in
org.apache.lucene.store.MMapDirectory@C:\Temp\30\plugin-factory\jedit.04.05.settings\CtagsInterface\index
lockFactory=org.apache.lucene.store.NativeFSLockFactory@67dacccc: files:
[write.lock]
10:15:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:712)
10:15:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at
org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:75)
10:15:51 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at
org.apache.lucene.index.IndexReader.open(IndexReader.java:421)
10:15:51 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at
org.apache.lucene.index.IndexReader.open(IndexReader.java:281)
10:15:51 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at
org.apache.lucene.search.IndexSearcher.<init>(IndexSearcher.java:104)
10:15:51 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at
ctagsinterface.index.TagIndex.runQuery(Unknown Source)
10:15:51 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at
ctagsinterface.index.TagIndex.getOrigins(Unknown Source)
10:15:51 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at
ctagsinterface.options.DirsOptionPane.getDirs(Unknown Source)
10:15:51 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at
ctagsinterface.jedit.BufferWatcher.isInMonitoredTree(Unknown Source)
10:15:51 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at
ctagsinterface.jedit.BufferWatcher.monitored(Unknown Source)
10:15:51 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at
ctagsinterface.jedit.BufferWatcher.handleBufferUpdate(Unknown Source)
10:15:51 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Full log uploaded to ticket #3485827 in plugin central. Here is the link to the file directly:
https://sourceforge.net/tracker/download.php?group_id=588&atid=625093&file_id=435550&aid=3485827

Happened on windows.

Discussion

  • The link to the complete log file seems to be broken - I get an error from SourceForge.
    I have some questions:
    1. I'd like to know if you already had a tag index (of CtagsInterface) before you installed jEdit 4.5. Did you use CtagsInterface before that? If so, do you know if it was the version of CtagsInterface that used Lucene to maintain its tag database? (until some point, CtagsInterface had used a relational database instead of a Lucene index for the tag information).
    2. The path in the error above: C:\Temp\30\plugin-factory\jedit.04.05.settings\CtagsInterface\index
    is strange to me. The tag index should be located somewhere under the jEdit settings directory. Does this path (C:\Temp\...) reflect the jEdit settings directory?

     
  • Sourceforge has problems with attachements. I sometimes download them dozens of times before succeeding.
    1. Never used that before
    2. It is correct directory

    Are you saying you tried to reproduce and could not? I didn't supply steps to reproduce because they seemd obvious to me:
    1. Install a fresh jedit 4.5
    2. Run it with new settings dir
    3. Install ctagsinterface with plugin manager
    4. Restart jedit
    The procedure is always the same when a plugin is released from plugin central submission. And the paths are like that.

     
  • I didn't say that I couldn't reproduce. But the solution is different if you already had a tag index before or not.
    In your case, the error message can be ignored. I'll fix it so that tag index queries are not attempted if there is no index.

     
  • Fixed in git version f9d45f8

     
    • status: open --> closed-fixed