Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

universal-ctags installed by snap not compatible with vim-gutentags #267

Open
mellery451 opened this issue Mar 12, 2020 · 3 comments
Open

Comments

@mellery451
Copy link

This is more of a warning to other users since i discovered the hard-way that universal-ctags installed by snap is NOT compatible with gutentags. For me it manifested as permission errors reading the ctags_recursive.options file, but I could imagine different file perm errors depending on your config. The fs limitations are mentioned at https://snapcraft.io/universal-ctags and in universal-ctags/ctags-snap#26. I don't think there is anything for gutentags to do except maybe include a warning in the doc about snap installed ctags.

Feel free to close this issue, but I just wanted to document the problem before I forget about it.

@thallada
Copy link

thallada commented Apr 15, 2020

Anyone have a workaround for this? The snap seems like the only way to install universal-ctags on linux without compiling it yourself.

I tried defining a .gutctags file in my projects with the same contents as ~/.vim/bundle/vim-gutentags/res/ctags_recursive.options. It appears that the snap ctags executable might be able to read that, but now it is failing with:

gutentags: [job stdout]: ['Locking tags file...', 'Running ctags on whole project', 'ctags -f "tags.temp" "--options=/home/thallada/workspace/project/.gutctags"  --exclude=@/tmp/nvimkiWApE/1 --exclude=node_modules --exclude=ENV --exclude=venv --exclude=build --exclude=.swp --exclude=.ico --exclude=.git --exclude=.svn
 --exclude=*.egg --exclude=Session.vim --exclude=coverage "."', '']
gutentags: [job stderr]: ['ctags: cannot open "/tmp/nvimkiWApE/1" : No such file or directory', '']

That file appears to be a gitignore, not sure where the origin of it is and why it is in /tmp but I know snaps that aren't in the classic mode aren't able to access /tmp.

My workaround right now is to just compile universal-ctags myself. I was hesitant at first but it compiled without issues. I just need to remember to update it once in a while now.

@spazm
Copy link

spazm commented Jun 11, 2020

@Gengchen-Wei
Copy link

I've got the same error. Instead of using snap, sudo apt install universal-ctags solved the issue. @thallada

mrzzy added a commit to mrzzy/warp that referenced this issue Jun 20, 2022
snap universal-ctags has compatiblity issues with neovim's
vim-gutentags plugin ludovicchabant/vim-gutentags#267
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants