Bazel Language Server : Depend on the Bazel Starlark source code
See original GitHub issueDescription of the problem / feature request:
Hello!
A few of my friends and I are working on developing a language server for bazel, built in java, for our university capstone project. We would like to use the java implementation of the starlark parser provided in this repo at the following location:
src/main/java/net/starlark/java/**/*.java
Our project is built using bazel, however we are unable to import these source files because many of them are marked as private. My question is, how would we best go about depending on these source files? Is this possible?
Thanks in advance for any help 😃
Feature requests: what underlying problem are you trying to solve with this feature?
Being able to depend on and use the bazel implementation of starlark so we can develop a language server that is consistent with the Bazel build system.
What operating system are you running Bazel on?
Linux
What’s the output of bazel info release
?
release 3.7.1
What’s the output of git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?
git@github.com:bazelbuild/bazel.git 3c685b6d2d34cd24450c11a902f1abfc3716d093 3c685b6d2d34cd24450c11a902f1abfc3716d093
Issue Analytics
- State:
- Created 3 years ago
- Comments:18 (10 by maintainers)
Of course. Good luck!
When we started this project, we weren’t very familiar with the Bazel ecosystem, language server protocol, or the different implementations of Starlark. We thought it best to use java for the language server for a few reasons.
We’re not needlessly trying to use Java. We picked it because, to the best of our knowledge, it would integrate well with Bazel. Given that you both don’t like the idea of a Java language server, I could speak with my team about switching to Go. Again, we want to build this to be used by the community, so we’re open to switching our design to what would work best. Switching would, of course, slow us down quite a bit because we would have to translate all of our existing code and infrastructure to Go.