jbang-idea icon indicating copy to clipboard operation
jbang-idea copied to clipboard

Sync 'JBang DEPS to Module' fails with 'Could not execute [/Users/cer/.jbang/bin/jbang'

Open cer opened this issue 2 years ago • 2 comments
trafficstars

  1. Installed jbang with sdk install jbang
  2. Launched IDEA 2022.3.1 with idea .
  3. 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

cer avatar Jan 10 '23 17:01 cer

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.

maxandersen avatar Jan 10 '23 22:01 maxandersen

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.

maxandersen avatar Jan 12 '23 07:01 maxandersen