Ctags error "Is a directory"

3.2k views Asked by At

I was trying to tag a C++ project with ctags with the options as listed in this answer C++ source tagging. I am in a project tree that contains multiple folders and those folders contain source files. I have tried the following to tag the entire source tree

ctags --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ -R .
find . -type f \( -iname "*.cpp" -o -iname "*.hpp" \) | xargs ctags --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++
ctags -R . 
ctags -R *

and all of the above give the same error

ctags: Failure on attempt to read file : Is a directory

How do I go about fixing this?

1

There are 1 answers

2
Curious On BEST ANSWER

Turns out this was a case insensitive filesystem problem. The MacOSX I am on has case insensitive files and as a result a folder named Tags was affecting the ctags program. Removing the Tags folder or causing ctags to output to another file with the -f flag fixed the issue.