jbangdev / jbang-idea

IntelliJ IDEA plugin for JBang
https://plugins.jetbrains.com/plugin/18257-jbang
MIT License
20 stars 9 forks source link

IDEA does not see jbang installed with scoop #85

Open flyasky opened 1 year ago

flyasky commented 1 year ago

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

maxandersen commented 1 year ago

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\

koppor commented 5 months ago

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