-
Notifications
You must be signed in to change notification settings - Fork 40
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
[FEAT] Support Bazel #68
Comments
Sorry, I don't have any experience with Bazel, looks like jdt.js should support that at first. |
I checked the jdt.ls github page and they do have an issue open, however, it looks like the Bazel core team has been able to create plugins for eclipse and intellij that also leverage the jdt.ls. I have to imagine we could do the same with this lovely extension 😉 I opened a request against vim-classpath to do something similar which coc-java could leverage or piggyback on. Normally I would just give up and just do all my Java coding (...ew) in IntelliJ but I actually have time to try and do something about this for the coc community. Let me know what I can do. |
I think the likely path forwards would be to have a coc-bazel that wraps the WIP Bazel language server: https://github.com/bazelbuild/vscode-bazel |
I think salesforce did most of the leg work here |
So with incredible hacking I might have something that is starting to work
There is still a lot that is broken but a bunch of things started working for me |
Hi all, Wanted to being this back up since support for Bazel has been built into eclipse.jdt.ls eclipse-jdtls/eclipse.jdt.ls#543 Is this something that can be done now? |
My team uses bazel too and this would be super helpful for me. Thanks! |
Hey @adarsh-murthy …and friends 🙂 Bazel is now supported. I have confirmed this from OpenJDK 17 (minimum) to the current OpenJDK 20. You can test this out as well with the project at bazelbuild/java-tutorial. Bazel is highly configurable. So if you're using Bazel in an enterprise setting, there are most likely configurations which shift Bazel away from its vanilla setup. Nothing to worry though, you just have to learn how your company sets up Bazel and configure your setup to account for those. One recent example I solved is using p.s: even if your company lags behind on the version of Java used for their products — which most enterprise companies do, by design — it's possible to have your Java version be closer to the bleeding edge for your LSP |
Thanks for the timely response.
|
I couldn't find |
In polyglot monorepos it is a royal pain that I cannot have plugins like coc-java correctly set the classpath for the java language server since there is not a pom.xml or a gradle.build at the root of the project.
My team uses Bazel and there are a number of us that strictly use vim since there is so much context switching between languages. If possible, it would be fantastic to get first class support for Bazel.
Happy to contribute if you can provide some bootstrap pointers 😄
The text was updated successfully, but these errors were encountered: