question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Terminal: Clear" not working as desired

See original GitHub issue

Steps to Reproduce:

  1. Run a python file using command palette >Python: Run file in terminal window
  2. Terminal shows the output. Now, clear the terminal using command palette >Terminal: Clear
  3. Terminal gets clear now. Run the file again in the terminal >Python: Run file in terminal window
  4. Here is where issue shows up - the terminal still shows all the previous outputs from before the last clear command. IMO, desired should be that terminal should not show any previously cleared outputs.
  5. Attached below is a gif of the screen reproducing & visualizing this issue

Screenshot PC - 072 - 2019_06_08_1016

Does this issue occur when all extensions are disabled?: Yes, the issue reoccurs. (Note: All except the “Python” extension were disabled. Python extension is needed to run the python file in terminal.

I had also posted in Super User forum thinking this was some issue with my system. And then I tried it on a clean build of VS code and it got repeated. Hence, I decided to post it as a bug.

Link to Super User forum question

VS Code version: Code - Insiders 1.36.0-insider (c089daa858f34631f5f827ff8a0313bf1e2ded6d, 2019-06-07T05:19:15.188Z) OS version: Windows_NT x64 10.0.18362

System Info
Item Value
CPUs Intel® Core™ i7-8700K CPU @ 3.70GHz (12 x 3696)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.68GB (7.71GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (1)
Extension Author (truncated) Version
python ms- 2019.5.18875

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:40
  • Comments:66 (14 by maintainers)

github_iconTop GitHub Comments

42reactions
vscodebot[bot]commented, Jun 17, 2019

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

12reactions
escape0707commented, Nov 16, 2019

It’ll be fixed by work on the ConPTY API that’ll be tracked by microsoft/terminal#1193.

@mrkarthi I suggest we don’t bump this issue anymore, because it’s already marked as an upstream problem.

But anyway, feel free to add your thumbs up to this and the upstream issue to add priority to them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code "Terminal : Clear" command not working as desired
Once the file runs in the terminal, I press the Ctrl + K keybinding for "Terminal : Clear". This clears the terminal window....
Read more >
How can I clear the terminal in Visual Studio Code?
To clear Terminal in VS Code simply press Ctrl + Shift + P key together this will open a command ...
Read more >
Cannot clear integrated terminal window
It is impossible to clear the integrated terminal window. ... If we haven't resolved this issue for you, please report a new problem....
Read more >
How to clear console in C language? - GeeksforGeeks
In real world problem , clear console method make system more readable and efficient to use.
Read more >
Introduction - Clear Screen and More - MathBits.com
If you are using a clear screen command (system ("CLS");) in the middle of a program and it does not appear to be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found