MaskRay / ccls

C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting
Apache License 2.0
3.73k stars 254 forks source link

ccls+eglot on ubuntu 22.04? #911

Open heeh opened 1 year ago

heeh commented 1 year ago

Has anyone been able to setup ccls+eglot on ubuntu 22.04? I don't know about others, setting up ccls+eglot on ubuntu 22.04 is so painful. (For 20.04, it was breeze.) Building is fine but the main challenge is to set the standard library(iostream) or non-standard library(bits/stdc++.h).

Is there a plan to update documentation? I am asking this because I did not have to worry about anything when I set this up with 20.04

System information

tempdragon commented 1 year ago

Similar things also happened to me. I also suffered from inability to find standard library headers after upgrade to Ubuntu 22.04 even if ccls is recompiled.

heeh commented 1 year ago

Ended up using clangd-12 + g++-12 with compile-commands.json. It appears that ubuntu 22.04 changed directory structure somehow. https://github.com/clangd/clangd/issues/1394#issuecomment-1328262744