-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
Python multithreading print error with the integrated terminal #40199
Comments
@ivankravets looks like this is the same as platformio/platformio-vscode-ide#61? |
@Tyriar Yes, the same. In our case, the problem is linked with This is a very specific issue. I can't reproduce it on my Windows VMs :( |
@ivankravets I've tested it in windows7 and the issue can't be reproduced. It seems to be related to the OS version. And the problem may happened after I update to Windows 10 1703. |
@Meano does Python's from urllib2 import urlopen
url = "http://dl.platformio.org/packages/toolchain-xtensa-windows-1.40802.0.tar.gz"
r = urlopen(url)
i = 0
for chunk in r.read(1024):
i += 1
print i It fails for me between 10-30 iterations. |
Cool! Let's wait when @Tyriar will fix it. I don't know why Python users don't report this issue. Maybe, they don't use built-in terminal :) |
@rprichard any idea what could be happening here? Interestingly it doesn't seen to happen with @ivankravets's pty.js fork which is still on winpty@0.2 (their Atom extension uses that one). More info: platformio/platformio-vscode-ide#61 |
using python 2.7, integrated terminal is unusable now |
@Tyriar: @segevfiner filed an upstream winpty issue (rprichard/winpty#134). I looked into it, and it looks like a Windows bug, which I filed here: microsoft/terminal#40. I doubt winpty can work around this problem. FWIW, the legacy console shouldn't be affected by this issue. It looks like Python 3 is also unaffected. Maybe it uses |
Thanks, this is indeed a console issue that we've addressed, it's the same issue as #36630. |
Thanks all! I'll close it out in favor of #36630 then. |
Steps to Reproduce:
Reproduces without extensions: Yes
The text was updated successfully, but these errors were encountered: