Windows 10 1809 Buffer issues with VSCode (windows ver) #494

Closed
opened 2026-01-30 21:53:40 +00:00 by claunia · 3 comments
Owner

Originally created by @weikinhuang on GitHub (Dec 28, 2018).

After upgrading to W10 1809, I'm having issues running VSCode (the windows version) from the WSL terminal via code commands.

I reported the issue here: https://github.com/Microsoft/vscode/issues/63539

However after some additional testing, I've discovered it might be a issue with WSL instead of vscode.

  • Your Windows build number: (Type ver at a Windows Command Prompt)
Microsoft Windows [Version 10.0.18305.1003]

Copying from the other issue

Seems there might be some weird issue with the shell or something with the stdout buffer in the current version of wsl or ELECTRON_RUN_AS_NODE.

Note: I run this under a fresh install of Windows 10 1809 in a VM and a fresh install of WSL Ubuntu, and the VSCode x64 User Installer.

I ran vscode --version in the Ubuntu app shell and got this output with weird spacing:

$ code --version
1.30.1
      dea8705087adb1b5e5ae1d9123278e178656186a
                                              x64

Then I tried again with a cat to buffer the output, and it printed out fine:

$ code --version | cat
1.30.1
dea8705087adb1b5e5ae1d9123278e178656186a
x64

In the case where I opened the issue, I was running the shell via SSH and using a local ssh terminal emulator (SecureCrt):

$ code --version
--- NO OUTPUT ---

However if I use cat as I did above, it works just fine:

code --version | cat -           
1.30.1
dea8705087adb1b5e5ae1d9123278e178656186a
x64

This also solves the issue where I don't regain control of the terminal when I run code ., if I pipe it through code . | cat -, it works perfectly like it used to.

Originally created by @weikinhuang on GitHub (Dec 28, 2018). After upgrading to W10 1809, I'm having issues running VSCode (the windows version) from the WSL terminal via `code` commands. I reported the issue here: https://github.com/Microsoft/vscode/issues/63539 However after some additional testing, I've discovered it might be a issue with WSL instead of vscode. * Your Windows build number: (Type `ver` at a Windows Command Prompt) ``` Microsoft Windows [Version 10.0.18305.1003] ``` **Copying from the other issue** Seems there might be some weird issue with the shell or something with the stdout buffer in the current version of wsl or ELECTRON_RUN_AS_NODE. Note: I run this under a fresh install of Windows 10 1809 in a VM and a fresh install of WSL Ubuntu, and the VSCode x64 User Installer. I ran `vscode --version` in the `Ubuntu` app shell and got this output with weird spacing: ```bash $ code --version 1.30.1 dea8705087adb1b5e5ae1d9123278e178656186a x64 ``` Then I tried again with a cat to buffer the output, and it printed out fine: ```bash $ code --version | cat 1.30.1 dea8705087adb1b5e5ae1d9123278e178656186a x64 ``` In the case where I opened the issue, I was running the shell via SSH and using a local ssh terminal emulator (`SecureCrt`): ```bash $ code --version --- NO OUTPUT --- ``` However if I use `cat` as I did above, it works just fine: ```bash code --version | cat - 1.30.1 dea8705087adb1b5e5ae1d9123278e178656186a x64 ``` This also solves the issue where I don't regain control of the terminal when I run `code .`, if I pipe it through `code . | cat -`, it works perfectly like it used to.
Author
Owner

@DHowett-MSFT commented on GitHub (Dec 28, 2018):

@bitcrazed Is there a chance you can transfer this to Microsoft/WSL? It looks like an interop issue, not a Console issue.

@DHowett-MSFT commented on GitHub (Dec 28, 2018): @bitcrazed Is there a chance you can transfer this to Microsoft/WSL? It looks like an interop issue, not a Console issue.
Author
Owner

@weikinhuang commented on GitHub (Dec 28, 2018):

I'll close this and open it there @DHowett-MSFT

@weikinhuang commented on GitHub (Dec 28, 2018): I'll close this and open it there @DHowett-MSFT
Author
Owner

@DHowett-MSFT commented on GitHub (Dec 28, 2018):

@weikinhuang thank you!

@DHowett-MSFT commented on GitHub (Dec 28, 2018): @weikinhuang thank you!
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#494