Ctags error "Is a directory"
Asked Answered
L

1

8

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?

Lamontlamontagne answered 4/1, 2017 at 2:37 Comment(0)
L
5

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.

Lamontlamontagne answered 4/1, 2017 at 11:41 Comment(2)
Same goes on CentOS LinuxMenarche
I actually ran into this error when I used the default Ubuntu Linux ctags. Was able to resolve by installing ctags via sudo apt-get install ctagsParagraphia

© 2022 - 2024 — McMap. All rights reserved.