atom-ide-cpp icon indicating copy to clipboard operation
atom-ide-cpp copied to clipboard

Use cquery language server for C++?

Open cdsousa opened this issue 6 years ago • 12 comments

Hi, I just want to ping you about this apparently fully fledged language server for C++: https://github.com/jacobdufault/cquery It may be, for now, a better alternative to the rather incomplete Clangd server.

cdsousa avatar Nov 18 '17 14:11 cdsousa

Thanks for the suggestion! A few Atom maintainers actually discussed this on Friday, and I did some preliminary testing. During my testing I ran into numerous issues mostly due to the documentation being somewhat lacking, thus leading to various crashes etc., but this is definitely something I plan on pursuing further.

thomasjo avatar Nov 20 '17 11:11 thomasjo

https://github.com/jacobdufault/cquery/issues/63

bhack avatar Nov 22 '17 11:11 bhack

Will be awesome if you could give another try and provide feedbacks in the Gitter channel https://gitter.im/cquery-project/Lobby

The latest commit works on FreeBSD

MaskRay avatar Dec 20 '17 04:12 MaskRay

Take a look at https://github.com/rianneogi/ide-cquery

bhack avatar Jan 13 '18 16:01 bhack

Will try to find some time over the weekend to revisit cquery integration. I will not abandon clangd, but it might make sense to support both.

thomasjo avatar Mar 16 '18 14:03 thomasjo

Ok there is already another ide plugin covering cquery

bhack avatar Mar 16 '18 17:03 bhack

it might make sense to support both.

since there is another atom-ide package which covers cquery, i guess this issue can be closed and perhaps community efforts should be focused in one place, if needed.

davydden avatar Mar 17 '18 11:03 davydden

Mostly agree with @davydden that community efforts should be focused. But there are still two possibilities which seem viable:

  • having an ide- package that supports both, clangd and cquery
  • having separate ide- packages for the two language server implementations

First option would require collaboration with the aforementioned repository, while the second option is more like the current situation. But even in the latter case, it would be great to see if @jbree is out for collaboration, since he owns two further ide- packages claiming clangd support.

(Personally, I favor joining forces in open source communities. Cluttering package ecosystems also tangles the users.)

exploide avatar Mar 22 '18 09:03 exploide

it would be great to see if @jbree is out for collaboration, since he owns two further ide- packages claiming clangd support.

👍 💯

davydden avatar Mar 22 '18 09:03 davydden

Happy to collaborate! @exploide, I personally don't think putting cquery and clangd into one ide plugin is the route to go.

My thought is that cquery is seems to be more complete at the moment, but clangd eventually may become the better general case solution, as it is actually a part of the clang tools.

My next move for ide-cpp was going to be to add automatic download if clangd is not found. @thomasjo, are you open to pull requests if I start with your baseline work here instead?

jbree avatar Mar 27 '18 05:03 jbree

@jbree Definitely open to pull requests. My workload is ridiculous right now, so any and all help is greatly appreciated 🙇

thomasjo avatar Mar 28 '18 19:03 thomasjo

I think this issue should be closed. cquery is no longer maintained, and it suggests the usage of its alternatives. Instead, ccls should be planned. Plus, I think clangd is rather complete and stable.

machitgarha avatar Dec 23 '20 19:12 machitgarha