We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version: 1.42.1 (user setup) Commit: c47d83b Date: 2020-02-11T14:45:59.656Z Electron: 6.1.6 Chrome: 76.0.3809.146 Node.js: 12.4.0 V8: 7.6.303.31-electron.0 OS: Windows_NT x64 10.0.18363
(also tested with Insider's build b0be067)
According to the tasks.json schema / completion details, tasks use "type": "shell" by default:
tasks.json
"type": "shell"
To me this means that there should be no difference between having an explicit "type": "shell" and not having "type" specified at all.
"type"
In practice, this does not seem to be the case. To reproduce, create a tasks.json that looks like this:
{ "version": "2.0.0", "tasks": [ { "label": "test", "command": "test" } ] }
Also add this test.cmd file to your workspace root:
test.cmd
echo hello
It may be necessary to have "terminal.integrated.shell.windows": "cmd.exe" in the settings as well.
"terminal.integrated.shell.windows": "cmd.exe"
Running the test task results in this error:
test
> Executing task: <workspace-path>\test < The terminal shell path "<workspace-path>\test" does not exist
Now add an explicit "type": "shell" to the task - it now works as expected:
> Executing task: test < <workspace-path>>echo hello hello
Conclusion: either the default value of "type" is not actually "shell", or something else is wrong.
"shell"
The text was updated successfully, but these errors were encountered:
(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
Sorry, something went wrong.
f25c38d
Verified that process is now the default value.
process
alexr00
No branches or pull requests
Version: 1.42.1 (user setup)
Commit: c47d83b
Date: 2020-02-11T14:45:59.656Z
Electron: 6.1.6
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.18363
(also tested with Insider's build b0be067)
According to the
tasks.json
schema / completion details, tasks use"type": "shell"
by default:To me this means that there should be no difference between having an explicit
"type": "shell"
and not having"type"
specified at all.In practice, this does not seem to be the case. To reproduce, create a
tasks.json
that looks like this:Also add this
test.cmd
file to your workspace root:echo hello
It may be necessary to have
"terminal.integrated.shell.windows": "cmd.exe"
in the settings as well.Running the
test
task results in this error:Now add an explicit
"type": "shell"
to the task - it now works as expected:Conclusion: either the default value of
"type"
is not actually"shell"
, or something else is wrong.The text was updated successfully, but these errors were encountered: