-
Notifications
You must be signed in to change notification settings - Fork 8
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
cannot create jbang script in intellij idea #73
Comments
Are you really seeing "~/.jbang/bin/jbang" in the error? Asking as ~ should not be in there. |
Same here, jbang installed by sdkman, working fine. |
@ledinscak @AdityaPadhy I added sdkman auto detection. Could you install attachment and have a test? |
Got the pr/branch so can build it myself rather than running arbitrary zips? And shouldn't need custom sdkman detection should we ? Should just search the PATH and it shouldn't matter what installed it ? |
After installing the zip i have this error: java.lang.NullPointerException |
@AdityaPadhy Failed to execute |
@linux-china can you push the proposed changes to a Pull request ? I think we really should simplify the jbang lookup to purely be in JBANG_HOME, PATH and ~/.jbang in that order and nothing else. |
should not be there a setting just like maven home in intellij preferences, it should be easy to override as per need. |
Yes. That too. My point is that we should make it pick up "safe jbang" locations so it will just work for most cases but shouldn't be trying to guess which if possible multiple jbang sdkman installations user wants to use. |
Now the plugin supports JBANG_HOME env variable, and you can set up JBang install directory. Please refer #66 |
I installed jbang with sdk man, by default it is installed in
~/.sdkman/candidates/jbang/current
Than i installed jbang intellij idea plugin. I tried both community v2022.2.2 and ultimate v2022.2.1
Whenever i try to do file -> new -> jbang script, i get this error:
Could not execute [~/.jbang/bin/jbang, template, list] with environment {NO_COLOR=true}. Error=2, No such file or directory
Note: my jbang installation is working fine, i can run jbang files from command line.
in vscode there an option to set as jbang home, probably that kind of setting would be required. Could you please check.
The text was updated successfully, but these errors were encountered: