Closed bogdhy closed 1 year ago
hi @bogdhy . this is an interesting one. when you run java -version
from the IDE terminal it finds it on the path?
hi @bogdhy . this is an interesting one. when you run
java -version
from the IDE terminal it finds it on the path?
Hello, I just found out the issue, while testing what you said above, I started to look at the IDE terminal settings and saw that the $PATH env is different in the IDE than the one I have in the terminal.
After adding the JDK path to the $PATH manually in the IDE it worked:
Thank you for your help!
The issue is with the IDE and not the the google cloud plugin.
glad it worked! thanks for the update
glad it worked! thanks for the update
Hello, quick update, with the latest IDE update (2023.2), the fix did not work anymore.
The new solution was to override the "PATH" env at the run configuration level like this:
Hope this would save some headaches :smile:
thanks for providing the workaround. Unclear what the change was that affected this yet. @ivanporty do you know by any chance?
We might be changing PATH to include some of the tools needed for skaffold, but that should not affect the original PATH. We will double check this.
When I run the configurations
Develop on Kubernetes
generated by the plugin, I receive the following error: Skipping Jib: no JVM: [java -version] failed: exec: "java": executable file not found in $PATHBut if I run the same skaffold command manually from the terminal everything works as expected.
Expected Behavior
To be able to run the helm charts using the JIB compiler with any issues, running the command from the terminal manually:
Actual Behavior
Running from the IDE
Additional Information