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

Hope bazel can generate compile_commands.json for LSP(clangd/intelliSense) #22442

Open
imdouyu opened this issue May 18, 2024 · 1 comment
Open
Labels
P4 This is either out of scope or we don't have bandwidth to review a PR. (No assignee) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website team-Rules-CPP Issues for C++ rules type: feature request

Comments

@imdouyu
Copy link

imdouyu commented May 18, 2024

Description of the feature request:

CMake can do this easily, but bazel need another project called hedronvision/bazel-compile-commands-extractor to do it, whether this feature is better integrated in bazel itself in the long run.

No response

Which category does this issue belong to?

No response

What underlying problem are you trying to solve with this feature?

No response

Which operating system are you running Bazel on?

No response

What is the output of bazel info release?

No response

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse HEAD ?

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

@imdouyu imdouyu changed the title bazel Hope bazel can generate compile_commands.json for LSP(clangd/intelliSense) May 18, 2024
@sgowroji sgowroji added team-Rules-CPP Issues for C++ rules team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website labels May 20, 2024
@comius comius added P4 This is either out of scope or we don't have bandwidth to review a PR. (No assignee) and removed untriaged labels May 23, 2024
@comius
Copy link
Contributor

comius commented May 23, 2024

Bazel tries to provide general ways to integrate with IDEs. We're moving away from putting specifics like C++ or a specific IDE into Bazel. On the long run we'd like to make Bazel smaller and more general.

I can see how CMake which is specific for C++ has such support.

cc @mai93 @kotlaja

The link might give some inspiration on how to integrate C++ with IDEs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P4 This is either out of scope or we don't have bandwidth to review a PR. (No assignee) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website team-Rules-CPP Issues for C++ rules type: feature request
Projects
None yet
Development

No branches or pull requests

5 participants