-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Piping into VS Code fails if data writes delayed #155341
Comments
I am not sure we ever supported this in remote. |
Sorry guys, I didn't mentioned - my case is on local machine. |
Let's keep this issue for running |
I'm running into this issue as well.
When the new tab opens up in my window, it's showing the path of |
I'm having the same issue (initially filed as #155129). My case is about remote connections (connecting to a VM on Google Cloud), but have the same condition as @roko99. It rarely happens for My case is about Windows connecting to Linux as well as @vec4f. Yes, the path showing up on the tab has backslashes instead of slashes. |
@bpasero could you please try a command with some delay before sending out EOF? E.g.
My case is using the code binary installed by the remote extension (it's saying $ code --version
1.68.1
30d9c6cd9483b2cc586687151bcbcd635f373630
x64
$ which code
/home/takeshi/.vscode-server/bin/30d9c6cd9483b2cc586687151bcbcd635f373630/bin/remote-cli/code |
This is likely a regression from my change in bf757ca then. |
To repro:
|
This bug has been fixed in the latest release of VS Code Insiders! @corydodt, you can help us out by commenting If things still don't seem right, please ensure you're on version 73fd3f1 of Insiders (today's or later - you can use Happy Coding! |
Not the original reporter, but I verified that it's fixed on the following insider version. Thank you so much!
|
Does this issue occur when all extensions are disabled?: Yes*
*This bug can only appear while using the Remote:SSH extension, as far as I can tell. I have reproduced it having ONLY that extension installed, and no others.
Steps to Reproduce:
Remote SSH: Connect current window to host...
Create new terminal
Shell Command: Install 'code' command in PATH
ls -l | code -
What happens
This opens a tab in the current editor window, but the tab stays empty, no output is sent there.
What I expected
The new opened tab contains the text of whatever was written to stdout by
ls -l
Additional troubleshooting
cmd | code -
works fine.code filename.txt
still works as expectedls
, any attempt to pipe stdout tocode -
with any command has the same behavior.The text was updated successfully, but these errors were encountered: