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

IDEA does not see jbang installed with scoop

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

I got errors like:

Cannot run program "jbang" (in directory "C:\Users\User_Name\git\snippets"): CreateProcess error=2, The system cannot find the file specified

Could not execute [C:\Users\User_Name\.jbang\bin\jbang.cmd, template, list] with environment {NO_COLOR=true}. Error=2, The system cannot find the file specified.

Jbang on my system is located here: C:\Users\User_Name\scoop\apps\jbang\current\bin\jbang

flyasky avatar Mar 30 '23 16:03 flyasky

sorry for that - we really should get better detection using PATH.

For now you can make sure to set the following environment before you start Idea.

JBANG_HOME=C:\Users\User_Name\scoop\apps\jbang\current\

maxandersen avatar Mar 30 '23 17:03 maxandersen

Similar thing for installation via Chocolatey:

image

C:\Users\olive\no-defender>which jbang
/c/ProgramData/chocolatey/bin/jbang

JBANG_HOME=C:\ProgramData\chocolatey\lib\jbang\jbang-0.116.0

koppor avatar Jun 05 '24 14:06 koppor