gutentags: ctags job failed, returned: 1
LukeAI opened this issue · 1 comments
LukeAI commented
gutentags: Scanning buffer 'darknet_node.py' for gutentags setup...
gutentags: No specific project type.
gutentags: Setting gutentags for buffer 'darknet_node.py'
gutentags: Generating missing tags file: /home/luke/projects/aios2/src/aiPE/tags
gutentags: Generating wildignore options: /tmp/vAtMVLt/0
gutentags: Running: ['/home/luke/.vim/bundle/vim-gutentags/plat/unix/update_tags.sh', '-e', 'ctags',
'-t', 'tags', '-p', '.', '-o', '/home/luke/.vim/bundle/vim-gutentags/res/ctags_recursive.options', '-
x', '@/tmp/vAtMVLt/0', '-l', 'tags.log']
gutentags: In: /home/luke/projects/aios2/src/aiPE
Press ENTER or type command to continue
gutentags: [job stdout]: 'Locking tags file...'
gutentags: [job stdout]: 'Running ctags on whole project'
gutentags: [job stdout]: 'ctags -f "tags.temp" "--options=/home/luke/.vim/bundle/vim-gutentags/res/ct
ags_recursive.options" --exclude=@/tmp/vAtMVLt/0 "."'
gutentags: [job stderr]: 'ctags: cannot open option file "/home/luke/.vim/bundle/vim-gutentags/res/ct
ags_recursive.options" : Permission denied'
gutentags: Finished ctags job.
gutentags: ctags job failed, returned: 1
so I look at the file it can't open:
$ ls -l /home/luke/.vim/bundle/vim-gutentags/res/ctags_recursive.options
-rw-rw-r-- 1 luke luke 15 Dec 14 11:51 /home/luke/.vim/bundle/vim-gutentags/res/ctags_recursive.options
$ cat /home/luke/.vim/bundle/vim-gutentags/res/ctags_recursive.options
--recurse=yes
I tried setting 777 permissions on the file it complains about not having permission to open and it makes no difference to the output I see.
I installed universal-ctags on ubuntu 18.04 with:
sudo snap install universal-ctags
if I run ctags directly in the project root I get
$ ctags -R
ctags: Warning: cannot open input file "src/aiRS/src/CMakeLists.txt" : No such file or directory
ctags: Warning: cannot open input file "src/CMakeLists.txt" : No such file or directory
ctags: Warning: cannot open input file "src/common/src/CMakeLists.txt" : No such file or directory
ctags: Warning: cannot open input file "src/aiPE/src/CMakeLists.txt" : No such file or directory
lukepass commented
I have exactly the same issue and I am using the snap version too. How did you manage to fix it? Thanks.