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 for compile_commands.json #77

Open
lu-zero opened this issue May 27, 2024 · 4 comments
Open

Support for compile_commands.json #77

lu-zero opened this issue May 27, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@lu-zero
Copy link

lu-zero commented May 27, 2024

This way it is possible to extract the correct include paths. (ideally this should be a companion crate, to be shared across other language servers, I know)

@WillLillis
Copy link
Collaborator

Support for compile_commands.json is definitely something I'm interested in adding to the project. Could you clarify which part of the functionality you'd like to see moved to a companion crate?

@WillLillis WillLillis added the enhancement New feature or request label May 27, 2024
@lu-zero
Copy link
Author

lu-zero commented May 27, 2024

I mean, supporting compile_command.json works the same no matter the language:

  • you need to parse the json
  • figure out which of the lines apply to the current context
  • extract from the lines the needed information

I'm sure clangd already does that for C/C++, not sure if there is already an existing crate that can be leveraged though.

@WillLillis
Copy link
Collaborator

Oh I see, I misread your initial post. Sorry about that! I'll spend some time looking into existing solutions, but I imagine we can just implement this ourselves without too much trouble.

@lu-zero
Copy link
Author

lu-zero commented May 27, 2024

Thank you :)

This was referenced Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants