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

Support Language Server Protocol #24

Open
lscoughlin opened this issue Apr 24, 2019 · 6 comments
Open

Support Language Server Protocol #24

lscoughlin opened this issue Apr 24, 2019 · 6 comments

Comments

@lscoughlin
Copy link

Why not support the Language Server Protocol? It gets you a bunch of the boring but important stuff quickly.

@andydotxyz
Copy link
Collaborator

I cannot see a C implementation of the language server on their list. If you know of a library that we can plug in that would be great.

@lscoughlin
Copy link
Author

lscoughlin commented May 1, 2019

There are multiple:

These links come from the community site

@andydotxyz
Copy link
Collaborator

Hmm, they all look like C++.
Maybe we can access the APIs from our pure C code, I would have to investigate further.

@lscoughlin
Copy link
Author

Ah - I see what you mean. LSP breaks down into client and server implementations - so you actually run the server in a separate process and talk to it with jsonrpc, which is less inefficient then it sounds.

@andydotxyz
Copy link
Collaborator

I don't really want to package a C++ build into our C based IDE - hence why I think we need to find a C implementation of the server. Or is the server shipped separately in a system package manager and run in the background?

@lscoughlin
Copy link
Author

lscoughlin commented May 1, 2019

clangd is shipped separately and available on most distros, the cquery based solutions you might have to build and be thoughtful about but they provide greater speed a little more functionality.

And in either case, you would be running the lsp-server in the background and interacting with it as a client.

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

2 participants