Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ctags cannot open option file ".ctags"

Tags:

ctags

ctags is not seeing my ~/.ctags file, so I've tried specifying it using the --options option but it always says it cannot find the file, no matter where I put it:

$ touch .ctags && ctags --options=.ctags
ctags: cannot open option file ".ctags" : No such file or directory

I'm using the latest homebrew version (5.8) and I've tried using HEAD as well.

Thanks!

like image 644
simon Avatar asked Oct 24 '12 03:10

simon


2 Answers

The fix for me was to change .ctags to .ctags.cnf. I have no explanation why this worked. But it seems that Exuberant Ctags requires an extension, I changed it to .ctags.bak it it works as well.

like image 178
JaredMcAteer Avatar answered Nov 04 '22 17:11

JaredMcAteer


You have to specify the full path to the ctags options: /Users/your_username/.ctags instead of ~/.ctags

like image 1
Taiwo Kolawole Avatar answered Nov 04 '22 18:11

Taiwo Kolawole