vscode-gradle
vscode-gradle copied to clipboard
Gradle-server doesnt start if /bin/sh doesnt exist
Extension Name: vscode-gradle Extension Version: v3.6.1 OS Version: Linux mint 22.04 VSCode version: v1.78
Describe the bug If you do not have access to /bin/sh, because you have some other shell installed, it does not work.
To Reproduce (You probably should not do this on debian or so)
- Delete /bin/sh
- Try using the extension
- See that /bin/sh is not found
Expected behavior Enviroments with no sh shell installed, should be able to change the shell.
Output from "Gradle for Java"
[info] [gradle-server] /bin/sh: /home/xxx/.vscode/extensions/richardwillis.vscode-gradle-3.6.1-universal/lib/gradle-server: No such file or directory
[warn] [gradle-server] Gradle server stopped
Does the bug still exist if you disable all other extensions? Yes
Additional context My solution I thought of, is to just make the option described here more accessible to users. This may be specified in the settings.
My temporary workaround was/is replacing the the "shell: true" in the index.js locally. This works nicely, so no other cause.