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

Bash(as Linux Subsystem) does not works within VSCode. Error: 0x80070057 #10000

Closed
apastuhov opened this Issue Jul 31, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@apastuhov

apastuhov commented Jul 31, 2016

  • VSCode Version: 1.3.1
  • OS Version: Windows 10
  • OS Build: 14393.5

Steps to Reproduce:

  1. Enable bash(as Linux Subsystem) in Windows 10
  2. Open User Settings
  3. Add next lines
{
    "terminal.external.windowsExec": "C:\\Windows\\System32\\bash.exe",
    "terminal.integrated.shell.windows": "C:\\Windows\\System32\\bash.exe"
}
  1. If you will try to open bash via Ctrl+Shift+C you will get next error:
    image
  2. If you will try to open bash as internal terminal, it will close and open immediately.
    terminalInstance.ts:55 Integrated terminal exited with code 1

Note
Open windows cmd and write bash - it works as expected and open bash in current directory. If create simple Node-app which run command via child-process.exec - it fails with:

{ 
  message: [Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "bash"],
  killed: false,
  code: 4294967295,
  signal: null,
  cmd: 'C:\\WINDOWS\\system32\\cmd.exe /s /c "bash"' 
}

Error: 0x80070057

It looks like it is the problem with Node itself. Microsoft/WSL#2

@mrmlnc

This comment has been minimized.

Show comment
Hide comment
@mrmlnc

mrmlnc Jul 31, 2016

Contributor

Try this: "terminal.integrated.shell.windows": "\\WINDOWS\\sysnative\\bash.exe"
Or this: https://code.visualstudio.com/docs/editor/integrated-terminal#_configuration

Contributor

mrmlnc commented Jul 31, 2016

Try this: "terminal.integrated.shell.windows": "\\WINDOWS\\sysnative\\bash.exe"
Or this: https://code.visualstudio.com/docs/editor/integrated-terminal#_configuration

@apastuhov

This comment has been minimized.

Show comment
Hide comment
@apastuhov

apastuhov Aug 1, 2016

Yep.. it worked. Sorry, I didn't noticed that it is already described in docs.

apastuhov commented Aug 1, 2016

Yep.. it worked. Sorry, I didn't noticed that it is already described in docs.

@apastuhov apastuhov closed this Aug 1, 2016

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.