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
The program is supposed to print a lot of lines (all letter combinations from a to z).
Bug: The terminal output gets truncated randomly, about one time out of five.
4 times out of 5, there is no problem, I can see the last line, in this case the one with z z z.
Here is another screenshot.
I added this in tasks.json so it is normal not to have the Terminal will be reused by tasks, press any key to close it. at the end.
"presentation": {
"showReuseMessage": false
}
To prove it is a display or buffering problem, and not my task getting stopped, I have changed the code so that it writes text to a file at the very end of the program.
When I took the screenshot, the file tmp/vscode-bug-demo.txt existed and had the text inside it.
Here is the content of tasks.json:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558// for the documentation about the tasks.json format"version": "2.0.0",
"tasks": [
{
"label": "Bug demo",
"type": "shell",
"command": "python3 print-a-lot-of-lines.py",
"group": {
"kind": "build",
"isDefault": true
}
}
],
"presentation": {
"showReuseMessage": false
}
}
(btw your template is not a valid JSON file because of the comments)
Here is the Python 3 code if you want to try to reproduce:
#!/usr/bin/python3forxinrange(ord('a'), ord('z')+1):
foryinrange(ord('a'), ord('z')+1):
forzinrange(ord('a'), ord('z')+1):
print("Bad combination: "+chr(x) +' '+chr(y) +' '+chr(z))
# Prove that the task has not been interrupted withopen("/tmp/vscode-bug-demo.txt", "a") asmyfile:
myfile.write("Task has run until the end")
I have another program in Go, that does the same thing (printing all combinations of three letters from a to z). The terminal output is truncated most of the time which makes the terminal output, and consequently the task system, useless. I wrote the python example in order to reproduce the bug with a simple program.
Steps to Reproduce:
Have a program that prints a lot of lines (17576 in my case and if often stops near the end)
Have a task so that the program output goes in Terminal output
Play the build shortcut several times (wait until previous task is done before launching again)
Observe as the terminal output gets truncated
VS Code version: Code 1.35.0 (553cfb2, 2019-06-04T01:13:26.790Z)
OS version: Linux x64 4.15.0-51-generic
System Info
Item
Value
CPUs
Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz (8 x 3900)
Issue Type: Bug
Please have a look at this screenshot
![Screenshot from 2019-06-08 17-25-13](https://user-images.githubusercontent.com/15984272/59149282-df7c7c80-8a13-11e9-80d6-1d815f07ea6c.png)
The program is supposed to print a lot of lines (all letter combinations from
a
toz
).Bug: The terminal output gets truncated randomly, about one time out of five.
4 times out of 5, there is no problem, I can see the last line, in this case the one with
z z z
.Here is another screenshot.
I added this in
tasks.json
so it is normal not to have theTerminal will be reused by tasks, press any key to close it.
at the end.To prove it is a display or buffering problem, and not my task getting stopped, I have changed the code so that it writes text to a file at the very end of the program.
When I took the screenshot, the file
tmp/vscode-bug-demo.txt
existed and had the text inside it.Here is the content of
tasks.json
:(btw your template is not a valid JSON file because of the comments)
Here is the Python 3 code if you want to try to reproduce:
I have another program in Go, that does the same thing (printing all combinations of three letters from
a
toz
). The terminal output is truncated most of the time which makes the terminal output, and consequently the task system, useless. I wrote the python example in order to reproduce the bug with a simple program.Steps to Reproduce:
Terminal output
VS Code version: Code 1.35.0 (553cfb2, 2019-06-04T01:13:26.790Z)
OS version: Linux x64 4.15.0-51-generic
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
surface_synchronization: enabled_on
video_decode: unavailable_off
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: