CTags icon indicating copy to clipboard operation
CTags copied to clipboard

Ctags --exclude not working on ST3

Open j5shi opened this issue 11 years ago • 5 comments

It seems that on Sublime Text 3 (Build 3065 on Win64) even --exclude=/some/path is set in CTags.sublime-settings, when rebuild tags, the path which is set in --exclude option is still parsed.

j5shi avatar Oct 14 '14 12:10 j5shi

Can you give the part of the CTags.sublime-settings file where you set this option?

stephenfin avatar Oct 19 '14 11:10 stephenfin

{
    "autocomplete": true,
    "debug": true,

    "opts" : 
    [
        // The following two lines will not work at all!
        "--exclude=d:/userdata/Work/Projects/BTS_SC_DSPHWAPI/C_Platform/*_RT", 
        "--exclude=d:/OneDrive/Private/Workspace/Proj_C/C_MISC" ,
    ],
}

I think it's probably not a bug in SublimeCtags but in Ctags itself, since I found I'm using Ctags 5.8 without +wildcard compiled feature on Windows, and the problem is that I can't find Ctags with compiled feature wildcard on Windows, otherwise I can verify it.

c:\Ctags\ctags58>ctags.exe --version Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert Compiled: Jul 9 2009, 17:05:35 Addresses: [email protected], http://ctags.sourceforge.net Optional compiled features: +win32, +regex, +internal-sort

j5shi avatar Oct 19 '14 13:10 j5shi

If I have the following dir structure:

Proj_root /       |_ test1/       |_ test2/       |_ xx.c       |_ ...

then I add

"--exclude=test1" ,
"--exclude=test2" ,

and rebuild tags on Proj_root, then test1 and test2 will be excluded, seems that only relative path to the root of project will work.

j5shi avatar Oct 19 '14 14:10 j5shi

BTW, can I put the Ctags options to project setting files? Since that seems to be more reasonable as options could be project related, like the --exclude option.

j5shi avatar Oct 19 '14 14:10 j5shi

Yes, this feature is being worked on in this pull request. Just waiting on some rework before I merge.

stephenfin avatar Dec 16 '14 11:12 stephenfin