#1601 CtagsInterface unable to remove old tags

closed-accepted
Tom Power
None
5
2012-05-23
2012-05-10
Jarek Czekalski
No

I have no trees, no files and no project selected. Still I see tags that I needed some time ago. How do I get rid of the old tags?

If there is no option for that, what workaround may I apply to clean the database?

Ctags and jedit trunk.

Discussion

  • I got a workaround. Remove %appdata%/ctagsinterface. I was expecting the data under "plugins" but finally found it.

     
  • You should see the list of (stale) projects and trees in the database in the plugin options, in the "Source trees" and "Projects" option panes. I used to have a bug with removing projects/trees from the tag index, but I think Tom fixed it, so if you remove the projects and trees using the option panes, their tags will be deleted from the index.

     
  • I may only repeat what I already wrote: I have nothing in trees, files and projects. By "trees" I mean Plugin Options / CtagsInterface / Source trees. Similartly "files" and "projects" are the option panes where I was looking.

    For further information: that tags had origin TEMP:

    "Refresh tags" would be a handy option that would solve this issue also. Whenever I want to refresh tags I have to: remove project from options, close options, open options, add project, close options.

     
  • Ok, sorry. I think there should be an option pane for tag files that were added (rather than source files), so you can remove them (the TEMP origin).

     
  • Tom Power
    Tom Power
    2012-05-10

    There was a bug with deleting tags that I thought I had fixed, will try to replicate your issue and look again, could be to do with the origin associated with tags from tag files.

    Clicking "tag" in options should update whichever item is selected?

     
  • Tom Power
    Tom Power
    2012-05-10

    • assigned_to: nobody --> tp21
     
  • Tom Power
    Tom Power
    2012-05-10

    These are from tag or source files tagged by calling the "Add tag file.." and "Add current file" actions and there's no method for removing them that I can see, apart from deleting the index files manually.

    I think a good solution would be to add a selector for individual files to the options, as per the ones that are there at the moment. It would be populated from both these sources and be an easy way to add/remove individual files and deal with tags from old tag files. Also think'd it'd be good to drop the "Add tag file.." action, is duplicated but the "Add current file" one's still handy.

    Adding a "refresh" button is possible but I think most people add/remove items in one go then close the options, and that's fine for them, I'm guessing you had the query dialog open at the same time Jarek??

    Any opinions? I'll get on with it if no one objects!

     
  • "Refresh tags" would be a safety valve. But I don't insist on it if you have other plan. However I just
    removed the project from options (leaving none visible sources selected) and I still have the tags, even after pressing the Refresh button in Tag Index Browser. I don't see these tags in query, while I was able to query them when I was reporting the first issue. So this is another refreshing problem.

    A pane for added single files would be great. I like the option "Add current file". Anyway this stopped working for me. If it doesn't get fixed with your changes, I'll submit a separate report.

     
  • Tom Power
    Tom Power
    2012-05-23

    • status: open --> closed-accepted