jbang-idea
jbang-idea copied to clipboard
Sync 'JBang DEPS to Module' fails with 'Could not execute [/Users/cer/.jbang/bin/jbang'
- Installed jbang with
sdk install jbang - Launched IDEA 2022.3.1 with
idea . - Ran
JBang DEPS to Module
Got
Failed to resolve dependencies from CopyPosts.java, please check your //DEPS in your code. Stacktrace: Could not execute [/Users/cer/.jbang/bin/jbang, info, classpath, --quiet, --fresh, /Users/cer/src/microservices/_scripts/CopyPosts.java]. Error=2, No such file or directory
See https://twitter.com/crichardson/status/1612845822424788993
can you check jbang is in the path from the terminal where you launch idea from ? (intellij shouldn't be launched before)
in any case we should make it handle this issue better.
until fixed you can use manual install (i.e. curl -Ls https://sh.jbang.dev | bash -s - app setup) and it should make idea work.
i just tested this and as long jbang is actually on the path I run idea . it works.
Thus I assume when idea . is run jbang is not (yet) on the path.
that said the error message/handling could be much better and probably good if it could offer to point to jbang install or even offer to install it.