Web-eWorks/ide-c-cpp

ccls not found (snap install)

Opened this issue · 2 comments

I have installed ccls using snapd : sudo snap install ccls on ubuntu 18.04.

Output of which ccls :

/snap/bin/ccls

Output of echo $PATH :

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

So it seems to me it should work. But i get the error : Error: spawn ccls ENOENT

This one in particular is weird, because it absolutely should be picking that up. My guess is that your path is set in your .bashrc or similar, and it's not being evaluated by the desktop environment at startup time and therefore not being passed on to Atom.

Try launching Atom from a command line where you've verified the CCLS path is in the PATH environment variable and see if that fixes the problem. If so, you'll need to change where you set your PATH so that the desktop environment (e.g. GNOME) reads it when it starts up.

Same problem here on Fedora 32:
`❯ whereis ccls
ccls: /usr/bin/ccls

❯ echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/antoine/bin`

I tried to create a directory /var/tmp/ccls where it is expecting to find the cache directory and give it root:users 775 permissions, but it didn't change a thing.