SublimeText / CTags

CTags support for Sublime Text
MIT License
987 stars 167 forks source link

ctags is generating wrong paths in the tag file #338

Closed gypsyhut closed 3 years ago

gypsyhut commented 3 years ago

I am generating tags with the following command line:

ctags -R --tag-relative=yes -f tag_file ../../../../folder_name/* Unfortunately, the output generated doesn't have the correct path to the file which contains the class definition. This causes vim to give a file does not exist error. Is this a known limitation of ctags? Can it take a relative path as given in the above command line?

I am doing as above to keep all the tag files in one location instead of distributing all over the place. Also the tag file is generated once and shared by the whole team.

The issue is wrong path in the generated tags file.

For example:

`s_tx2 ../est_lis/test_lib/tx

this should be

`s_tx2 ../test_list/test_lib/tx

body ../eq_libs/seq_lib/ic

this should be

../seq_libs/seq_lib/ic

run_phase ../../../../BEHAVIOUR/sessses/enlasses

this should be

../../../../BEHAVIOUR/env/classes So the issue is wrong folder names in the path.