-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
WSL: does not run through our CLI script #39892
Comments
@spboyer can you run |
@bpasero do you need the cli to pipe data to VS Code? The CLI is disabled in WSL https://github.com/Microsoft/vscode/blob/29aeb102dc0ea5ebdfda1b96acf26412b8c6cd03/resources/win32/bin/code.sh#L9 |
@Tyriar yes, we need our CLI and I would actually suggest to try hard to get our CLI to work also for WSL. There are many more things that will likely not work if we do not use CLI, for example |
microsoft/WSL#1494 (comment) this may work to move the environment over now, not sure about whether the streaming data would work across the wsl/batch boundary though? |
@Tyriar why exactly is CLI disabled in WSL? |
We need to run electron as node for the CLI. I think there are workarounds for that now though in the comment links. |
@Tyriar oh I see, that is odd. So this is only an issue because |
@bpasero the workarounds suggest a wrapping bat script which sets the env based on cli args: microsoft/WSL#1494 (comment)
|
@Tyriar how would that work though? That script seems to leverage |
@Tyriar actually is sounds like #13138 (comment) is exactly the solution to that problem with a |
I filed electron/electron#11455 to have an alternate way of forcing Electron to run as node. |
Yes, we only support launching the Windows executable via WSL. It is possible to run the Linux version by installing an server but it can be hard to get working and is flaky/weird. AFAIK the console team doesn't recommend launching GUI apps via WSL generally.
Yeah that's to convert the paths, I didn't move on that because wslpath looked so large (and was python), we'd probably want to roll our own converter in the CLI JS. |
Isn't this fixed? |
Was merged in May, not the right issue annotation on the PR though #44945 |
https://github.com/Microsoft/vscode-docs/blob/vnext/release-notes/v1_19.md#pipe-output-directly-into-vs-code
Version 1.19.0-insider
Commit 3656454
Date 2017-12-07T05:15:37.456Z
Shell 1.7.9
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64
Using WSL as Terminal.
Steps to Reproduce:
ps aux | grep code | code-insiders
Does nothing, just line return. Commands without the
|
return the expected data in terminal window as expected.The text was updated successfully, but these errors were encountered: