Skip to content
New issue

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

Error: Failed to create terminal for task caused by bad value for terminal.integrated.shellArgs.windows #75946

Closed
Ben-Voris opened this issue Jun 22, 2019 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug tasks Task system issues verified Verification succeeded
Milestone

Comments

@Ben-Voris
Copy link

Issue Type: Bug

Error: Failed to create terminal for task all

When settings.json contains
"terminal.integrated.shell.windows": "C:\\cygwin64\\bin\\bash.exe" and
"terminal.integrated.shellArgs.windows" is " " instead of
[" "], this appears in the "Output" > "Log (Window)":

[2019-06-20 13:49:07.299] [renderer1] [error] m.some is not a function: TypeError: m.some is not a function
    at f.forEach.e (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3158:681)
    at Array.forEach (<anonymous>)
    at D.createShellLaunchConfig (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3158:667)
    at D.createTerminal (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3160:726)
    at e.configurationProperties.isBackground.Promise (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3154:442)
    at new Promise (<anonymous>)
    at D.executeInTerminal (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3154:406)
    at resolveVariablesFromSet.then.i (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3150:852)
    at process._tickCallback (internal/process/next_tick.js:68:7)
[2019-06-20 13:49:07.299] [renderer1] [error] Failed to create terminal for task all: Error: Failed to create terminal for task all
    at D.executeInTerminal (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3156:214)
    at resolveVariablesFromSet.then.i (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3150:852)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Adding documentation on this error, suggesting that one look carefully
at the value of "terminal.integrated.shellArgs.windows" would be helpful.

At least for me, the relationship between a "task" terminals and a terminal
started by Create New Integrated Terminal is unclear. Even with the
above error in settings.json, Create New Integrated Terminal works. Only a
build fails.

VS Code version: Code 1.35.1 (c7d83e5, 2019-06-12T14:30:02.622Z)
OS version: Windows_NT x64 10.0.16299

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz (8 x 2712)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.88GB (7.96GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (9)
Extension Author (truncated) Version
spellright ban 3.0.38
remote-containers ms- 0.59.0
remote-ssh ms- 0.42.2
remote-ssh-edit ms- 0.42.2
remote-ssh-explorer ms- 0.42.2
remote-wsl ms- 0.38.0
vscode-remote-extensionpack ms- 0.15.0
cpptools ms- 0.24.0-insiders
rewrap stk 1.9.1
@vscodebot vscodebot bot added the terminal Integrated terminal issues label Jun 22, 2019
@nerdo
Copy link

nerdo commented Jun 25, 2019

This may be related to #75717

@Tyriar Tyriar assigned alexr00 and unassigned Tyriar Jun 27, 2019
@Tyriar Tyriar added tasks Task system issues and removed terminal Integrated terminal issues labels Jun 27, 2019
@Tyriar
Copy link
Member

Tyriar commented Jun 27, 2019

@alexr00 tasks should work when shellArgs = " ", I think it should treat this the same as ""

@alexr00
Copy link
Member

alexr00 commented Jun 27, 2019

Agreed.

@alexr00 alexr00 added the bug Issue identified by VS Code Team member as probable bug label Jun 27, 2019
@alexr00 alexr00 added this to the June 2019 milestone Jun 27, 2019
@lramos15 lramos15 added the verified Verification succeeded label Jun 27, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Aug 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug tasks Task system issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants