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

Add support for compile_commands.json #432

Open
rtbo opened this issue Nov 6, 2022 · 2 comments
Open

Add support for compile_commands.json #432

rtbo opened this issue Nov 6, 2022 · 2 comments

Comments

@rtbo
Copy link
Contributor

rtbo commented Nov 6, 2022

Now that compile_commands.json is (at least partially) supported in serve-d (CCDB component in workspace-d), is it possible to add support for it in code-d?

What would be the TODO list to have this compilation database supported by code-d?

@WebFreak001
Copy link
Member

what exactly do you need to have supported? / what's not working with the latest nightly / pre-release?

@rtbo
Copy link
Contributor Author

rtbo commented Nov 8, 2022

I have a project that has a build/compile_commands.json file and not using dub.
I'd like code-d to use that file for linting/imports etc. (path should be specified with an option as there can be multiple ones: build-dmd-release/compile_commands.json, build-ldc-debug/compile_commands.json ...)
If this is supposed to work I don't see it.
Code-d could even run the compile command when the corresponding file is open in order to scan for errors.

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