Open shotah opened 1 year ago
I had the same question. But I solved it just now.
Your script may have the #!/bin/bash
at the first line, which causes the bash interpreter to be fixed.
So, just remove this line. Then, your custom command can take effect instantly.
By the way, it is controlled by this code-runner option.
I just encountered the same problem and I removed "#!/bin/bash" then the code-runner will work like a charm. Thanks!
removed the line. still error below
(base) PS E:\code\open\ahks> bash "e:\code\open\ahks\publish.sh"
/bin/bash: e:codeopenahkspublish.sh: No such file or directory
and found code run config for bash is:
"shellscript": "bash ",
change to :
"shellscript": "bash $fileName",
it works
I had the same question. But I solved it just now. Your script may have the
#!/bin/bash
at the first line, which causes the bash interpreter to be fixed. So, just remove this line. Then, your custom command can take effect instantly.By the way, it is controlled by this code-runner option.
Thank you! It works!
Describe the bug Trying to change how shellscripts run to be able to quickly use code runner. I've tried setting different options in settings but nothing changes.
To Reproduce Steps to reproduce the behavior:
Actual behavior Always get the EXACT same message, not matter how I change shellscript
Expected behavior To be able to set variables and enable shellscripts to work with code runner.