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

Ensure clangd finds headers without manual trigger of compile_commands.json generation #138

Open
jacg opened this issue Sep 20, 2023 · 1 comment

Comments

@jacg
Copy link
Owner

jacg commented Sep 20, 2023

Currently, LSP doesn't work properly out of the box, because clangd can't find headers until compile_commands.json is generated. This happens when the project is built, but it is remove again when the project is just cleaned.

We should

  1. add something to the shell hooks that ensures the required clangd-helper data are automatically present
  2. ensure that just clean does not remove them

This looks relevant: https://discourse.nixos.org/t/get-clangd-to-find-standard-headers-in-nix-shell/11268/13

@jacg jacg added this to nain4 Sep 20, 2023
@jacg jacg moved this to Eventually in nain4 Sep 20, 2023
@jacg
Copy link
Owner Author

jacg commented Sep 20, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Eventually
Development

No branches or pull requests

1 participant