-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Bazel NPE when setting --java_classpath=bazel
#16635
Comments
There was some additional context/motivation in #16906
|
This makes --experimental_java_classpath=bazel work. This CL is similar to bazelbuild#16636 but applies the code review feedback. (Though, I put the context registration in BazelRulesModule rather than BazelStrategyModule as JavaCompileActionContext isn't really an strategy.) Fixes bazelbuild#16635.
This makes --experimental_java_classpath=bazel work. This CL is similar to bazelbuild#16636 but applies the code review feedback. (Though, I put the context registration in BazelRulesModule rather than BazelStrategyModule as JavaCompileActionContext isn't really a strategy.) Fixes bazelbuild#16635.
This makes --experimental_java_classpath=bazel work. This CL is similar to bazelbuild#16636 but applies the code review feedback. (Though, I put the context registration in BazelRulesModule rather than BazelStrategyModule as JavaCompileActionContext isn't really a strategy.) Fixes bazelbuild#16635.
Thanks @cushon yes that was the motivation for us as well since we wanted to do classpath reduction before execution to leverage compile avoidance. |
This makes --experimental_java_classpath=bazel work. This CL is similar to #16636 but applies the code review feedback. (Though, I put the context registration in BazelRulesModule rather than BazelStrategyModule as JavaCompileActionContext isn't really a strategy.) Fixes #16635. Closes #16921. PiperOrigin-RevId: 494950719 Change-Id: Ia32e2d0e67ddacaf18ba52591f7b67b3c6c7b792 Co-authored-by: Benjamin Peterson <benjamin@engflow.com>
@arunkumar9t2 could you share some docs on how does |
Description of the bug:
Setting
--java_classpath=bazel
on the command line and building a simple project crashes bazel with following stacktraceWhat's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Add a simple
java_library
and build it with --java_classpath=bazelWhich operating system are you running Bazel on?
MacOS Monterey 12.4
What is the output of
bazel info release
?development version
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.Branched off master and built with
bazelisk build //src:bazel
.What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?Have you found anything relevant by searching the web?
The error is caused to
JavaCompileActionContext
not being registered toActionContextRegistry
Any other information, logs, or outputs that you want to share?
N/A
The text was updated successfully, but these errors were encountered: