You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then print several lines with some emoji in a python file test.py:
print("😀")
print("🙄")
print("🎈")
print("🎨")
Finally run this file with F5, and check in internalConsole. The output only displays 1 line:
😀
In summary, the 1st emoji will block following outputs.
VS Code version: Code 1.67.1 (da15b6fd3ef856477bf6f4fb29ba1b7af717770d, 2022-05-06T12:37:03.389Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
System Info
Item
Value
CPUs
Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 x 3192)
I can repro this, but only on windows. It seems like vscode only gets one output event from the debug adapter for the first line, and the rest are never sent.
When capturing output, debugpy tees it back to stdout/err using whatever encoding Python uses for those by default - this would normally be the "locale for non-Unicode applications" codepage, unless you forced your console into UTF-8 mode. As those codepages are non-Unicode, they cannot handle symbols such as emoji.
In this case, though, it shouldn't matter because stdout/err is a null bucket - the Debug Console pane gets its output using a different mechanism. However, the output capture logic didn't properly handle the error, preventing further capture from working.
int19h
pushed a commit
to int19h/debugpy
that referenced
this issue
Jun 22, 2022
Issue Type: Bug
Steps
Change the "console" to "internalConsole" in
.vscode/launch.json
:Then print several lines with some emoji in a python file
test.py
:Finally run this file with
F5
, and check in internalConsole. The output only displays 1 line:In summary, the 1st emoji will block following outputs.
VS Code version: Code 1.67.1 (da15b6fd3ef856477bf6f4fb29ba1b7af717770d, 2022-05-06T12:37:03.389Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extensions (44)
(8 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: