#808 CtagsInterface 2.2

Alan Ezust

{{{ CtagsInterface 2.2
Source: Source code is in git with tag "release-2.2"
Announcement: Updated for jEdit 4.5. Bugfix release.
Requires Java 1.6
Requires jEdit
Required plugins:
Completion 0.3 (completion.CompletionPlugin)
LucenePlugin 2.8 (gatchan.jedit.lucene.LucenePlugin)
SuperAbbrevs 1.0 (SuperAbbrevsPlugin)
Optional plugins:
Navigator 2.3 (ise.plugin.nav.NavigatorPlugin)
Project Viewer 3.4 (projectviewer.ProjectPlugin)

Short Description: CtagsInterface provides common Ctags services to interested plugins.

Long Description: <p>
CtagsInterface provides source code tagging functionality using the "Exuberant Ctags" tool (http://ctags.sourceforge.net). It automatically invokes Ctags on a list of projects (or source code trees) and keeps the tag information in a HSQL database ( http://hsqldb.org\). It can automatically keep track of modifications to the projects (or source trees), re-run Ctags over the modified files and keep the database updated.
The plugin provides a "Follow tag" function which can be used to follow the tag under the caret, and a "Tag preview" dockable which tracks the caret location and shows the definition of the tag under the caret automatically.
In addition, CtagsInterface provides a convenient API to access the tag database, so that the tag information can be shared with other plugins as well, and to eliminate the need for other plugins to interface with Ctags directly.
CtagsInterface is highly-configurable and can make use of all the information provided by Ctags. All tag extensions are inserted into the database and made available to other plugins by the API.



  • Alan Ezust
    Alan Ezust

    • assigned_to: nobody --> jarekczek
  • Ok, I will take care of this.

  • Met an exception in a clean 4.5 environment. Full log attached.

    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)

  • It happened when opening jedit for the first time.

  • Alan Ezust
    Alan Ezust

    Please open a separate ticket, assign to shlomy, and close,reject this one.

    • status: open --> closed-rejected
  • Alan Ezust
    Alan Ezust

    • status: closed-rejected --> open
  • Alan Ezust
    Alan Ezust

    Re-tagged release-2.2 after Shlomy fixed #3487078. Reopening this ticket.

  • There are problems with this plugin like:
    1. indexnotfound on first call to create/update lucene index
    2. the browser tree is not refreshed until I change group, e.g. to Namespace.
    2a. Refresh button is invisible, because I docked it at the right. If I could see that, I would know to refresh.
    3. check path button claims that "ctags" is improper although it works from command prompt (linux).
    4. lucene exception while trying to follow a tag in source tree
    But after all it started to work and the result seems fine. So I guess it can be released although it needs a few bug fixes.

    Released to plugin central.

    • status: open --> closed-accepted
  • Comment has been marked as spam. 

    You can see all pending comments posted by this user  here


    same issue here.. tried removing the plugin, removing the directory, installing again, retagging, etc... errors shouldn't go silent!

  • Alan Ezust
    Alan Ezust

    nate, please find the correct ticket or open a new one describing your issue. This is the wrong place to discuss specific bugs in ctagsinterface.

  • Hi, I don't know in which conditions your problems occurs, but one this CtagsInterface plugin do not work with the trunk version of LucenePlugin, so if you build this plugin yourself, it is not compatible (yet)