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

Usage with ctags (installed with snap) #714

Open
samuelsayag opened this issue Nov 26, 2020 · 3 comments
Open

Usage with ctags (installed with snap) #714

samuelsayag opened this issue Nov 26, 2020 · 3 comments
Labels

Comments

@samuelsayag
Copy link

samuelsayag commented Nov 26, 2020

Hello,

Issue:

The /tmp file use to cache the source before passing them to ctags is out of reach for the ctags program installed with snap.
The plugin cannot be used consequently. The log shows that it cannot open the file in /tmp and the snap page informs on this limitation (https://snapcraft.io/universal-ctags informs on the limitation).

A Solution?

The plugin vim-gutentags solves this limitation with an option letting change the cache of the plugin to ~/tmp for instance which is compatible with the security policy of snap (see: ludovicchabant/vim-gutentags#267).

Is it something already known? Is there already a solution that I am not aware of?

Note: for the moment I use this workaround: not having cache files in .vimrc

let g:tagbar_use_cache = 0

Thanks

@samuelsayag samuelsayag changed the title Usage with Clojure Usage with ctags (installed with snap) Nov 26, 2020
@alerque
Copy link
Member

alerque commented Nov 27, 2020

At the moment disabling the cache is the accepted work around. We'd be happy to accept a PR if you want to propose something better. See also #635.

Or just, you know, install ctags to your actual system. Snap is a disaster for things like this and this isn't the only way it is problematic for tagbar.

@raven42
Copy link
Collaborator

raven42 commented Jan 11, 2021

@samuelsayag Can you try the tempname() workaround listed in #723 to see if this helps your issue too?

@alerque
Copy link
Member

alerque commented Feb 18, 2021

PSA for anyone using snaps because that was the easy path on Ubuntu: As of Focal 20.04 (and of course Groovy 20.10) Ubuntu has Universal Ctags packages in the universe repos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants