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

FastBuild Run cannot find Java Binary Path #6432

Open
dtaveras opened this issue May 15, 2024 · 0 comments
Open

FastBuild Run cannot find Java Binary Path #6432

dtaveras opened this issue May 15, 2024 · 0 comments
Assignees
Labels
awaiting-user-response Awaiting response from author on PRs lang: java Java rules integration product: IntelliJ IntelliJ plugin type: bug

Comments

@dtaveras
Copy link
Contributor

dtaveras commented May 15, 2024

Description of the bug:

Fast Build Run attempts to use "../local_jdk/bin/java" see

private static final File STANDARD_JAVA_BINARY = new File("../local_jdk/bin/java");
.

Exception in Intellij
Screenshot 2024-05-15 at 1 42 57 PM

The project I'm working on does not use the default toolchain instead we have a custom to toolchain, the java binary is not found by

.listFiles(fn -> fn.getName().matches("rules_java~.*~toolchains~local_jdk"))) {

In our case the java binary is under runfiles with the path jdk17_macos_arm64/Contents/Home/bin/java

Proposed fix here #6431

Which category does this issue belong to?

No response

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Have a custom toolchain that leads to a directory under **/*/Test.runfiles/jdk17_macos_arm64

Which Intellij IDE are you using? Please provide the specific version.

IntelliJ IDEA 2024.1.2 Preview

What programming languages and tools are you using? Please provide specific versions.

JDK 17

What Bazel plugin version are you using?

2024.04.23.0.1-api-version-241

Have you found anything relevant by searching the web?

No response

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

No response

@dtaveras dtaveras added awaiting-maintainer Awaiting review from Bazel team on issues type: bug labels May 15, 2024
@sgowroji sgowroji added product: IntelliJ IntelliJ plugin lang: java Java rules integration labels May 16, 2024
@sgowroji sgowroji assigned mai93 and unassigned sgowroji, iancha1992 and satyanandak May 16, 2024
@mai93 mai93 added awaiting-user-response Awaiting response from author on PRs and removed awaiting-maintainer Awaiting review from Bazel team on issues labels Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-user-response Awaiting response from author on PRs lang: java Java rules integration product: IntelliJ IntelliJ plugin type: bug
Projects
None yet
Development

No branches or pull requests

5 participants