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

CPPLite: Improve configuration of clangd/CCLS #7758

Merged
merged 2 commits into from
Oct 12, 2024

Conversation

matthiasblaesing
Copy link
Contributor

Check if language server is executable, not only if path is configured before execution

If both ccls and clangd had a path configured, but only the clangd one pointed to a usable binary, the clangd one was not used. To improve this, now not only the existence of the ccls path is checked, but also whether it points to an executable file.

Make it possible to select language server

If both CCLS and clangd are installed, switching from CCLS to clangd requires users to input an invalid path to use clangd, else CCLS is always preferred.

This change allows the user to override the preferred order.

In the GUI:

image

…configured before execution

If both ccls and clangd had a path configured, but only the clangd one
pointed to a usable binary, the clangd one was not used. To improve
this, now not only the existence of the ccls path is checked, but also
whether it points to an executable file.
If both CCLS and clangd are installed, switching from CCLS to clangd
requires users to input an invalid path to use clangd, else CCLS is
always preferred.

This change allows the user to override the preferred order.
@matthiasblaesing matthiasblaesing added LSP [ci] enable Language Server Protocol tests C/C++ ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels Sep 16, 2024
@matthiasblaesing matthiasblaesing added this to the NB24 milestone Sep 16, 2024
@matthiasblaesing
Copy link
Contributor Author

I intent to merge this next weekend. If anyone wants to object, now would be a good time.

@matthiasblaesing matthiasblaesing merged commit fa83e20 into apache:master Oct 12, 2024
31 checks passed
@matthiasblaesing matthiasblaesing deleted the lsp_cpplite branch October 18, 2024 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C/C++ ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) LSP [ci] enable Language Server Protocol tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant