vscode-gradle icon indicating copy to clipboard operation
vscode-gradle copied to clipboard

Gradle-server doesnt start if /bin/sh doesnt exist

Open RandomModderJDK opened this issue 1 year ago • 1 comments

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)

  1. Delete /bin/sh
  2. Try using the extension
  3. 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.

RandomModderJDK avatar Jun 15 '23 14:06 RandomModderJDK

My temporary workaround was/is replacing the the "shell: true" in the index.js locally. This works nicely, so no other cause.

RandomModderJDK avatar Jun 15 '23 15:06 RandomModderJDK