Hacker News new | ask | show | jobs
by dilyevsky 1352 days ago
Not starlark files but code intel in a Go/C++/Java monorepo managed using Bazel. There’s an open ticket suggesting it’s not supported yet?

https://github.com/sourcegraph/sourcegraph/issues/2982

1 comments

Hmm, I think we might need to update that ticket.

Here's some docs on Bazel support for Java/Scala precise code nav: https://sourcegraph.github.io/scip-java/docs/getting-started.... Any languages you're looking for in particular?

Go (rules_go) and C++ primarily
For C++, we do support Bazel via compile_commands.json; we have customers who have used it successfully. Depending on the editor you're using, you probably need to get Bazel to generate a compile_commands.json anyways.

So core code navigation functionality ought to work. There are some issues with different language features (macros, newer C++17 and C++20 features), as well as robustness (crashes on indexing certain code) but we're looking into bringing C++ support up to par with other languages.