microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.33k stars 28.59k forks source link

I runned a python file, but the terminal is getting lag #185852

Closed ZakisCodes closed 1 year ago

ZakisCodes commented 1 year ago

Type: Performance Issue

It happened after i run the python file

VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:57:04.379Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz (4 x 2400)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|3.86GB (0.26GB free)| |Process Argv|--crash-reporter-id f37cbf6d-e330-43c4-918c-595314958a45| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 2 99 11960 code main 3 62 984 window [2] (Issue Reporter) 0 17 3292 crashpad-handler 0 54 5828 shared-process 0 44 7396 ptyHost 0 6 1540 console-window-host (Windows internal process) 0 22 10404 utility-network-service 0 135 11808 extensionHost [1] 0 3 6804 d:\Work\Python\Encrypt_Decrypt\.venv\Scripts\python.exe c:\Users\EC\.vscode\extensions\ms-python.isort-2022.8.0\bundled\tool\server.py 0 32 3164 "d:\User\App data\programs\python\python.exe" c:\Users\EC\.vscode\extensions\ms-python.isort-2022.8.0\bundled\tool\server.py 0 11 14728 console-window-host (Windows internal process) 0 170 12252 electron-nodejs ("D:\User\App data\Microsoft VS Code\_\Code.exe" --ms-enable-electron-run-as-node c:\Users\EC\.vscode\extensions\ms-python.vscode-pylance-2023.6.30\dist\server.bundle.js --cancellationReceive=file:286802287fd9804717dcf126ef4faf08c5160e5d31 --node-ipc --clientProcessId=11808) 0 196 12028 window [1] (main-app-test.py - Encrypt_Decrypt - Visual Studio Code) 2 135 12756 gpu-process 0 42 13900 ptyHost 0 37 16668 fileWatcher [1] ```
Workspace Info ``` | Window (main-app-test.py - Encrypt_Decrypt - Visual Studio Code) | Folder (Encrypt_Decrypt): 5673 files | File types: gif(1647) png(1179) py(1121) pyc(1120) tcl(44) txt(26) | exe(21) pyd(14) dll(11) md(11) | Conf files: settings.json(1); ```
Extensions (27) Extension|Author (truncated)|Version ---|---|--- github-markdown-preview|bie|0.3.0 markdown-checkbox|bie|0.4.0 markdown-emoji|bie|0.3.0 markdown-footnotes|bie|0.1.1 markdown-mermaid|bie|1.19.0 markdown-yaml-preamble|bie|0.1.0 ccs-flutter-color|cir|1.0.2 python-live-coding|Cod|1.1.6 markdown-table-prettify|dar|3.6.0 dart-code|Dar|3.66.0 flutter|Dar|3.66.0 prettier-vscode|esb|9.15.0 remotehub|Git|0.59.2023062001 vscode-flutter-files|gor|4.7.1 gc-excelviewer|Gra|4.2.57 isort|ms-|2022.8.0 python|ms-|2023.10.1 vscode-pylance|ms-|2023.6.30 jupyter|ms-|2023.5.1101742258 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.15 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 azure-repos|ms-|0.34.0 powershell|ms-|2023.6.0 remote-repositories|ms-|0.36.0 errorlens|use|3.11.1
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263:30773603 vsclangdc:30486549 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 2e4cg342:30602488 pyind779:30671433 89544117:30613380 pythonsymbol12:30671437 showlangstatbar:30737416 vsctsb:30748421 pythonms35:30701012 03d35959:30757346 pythonfmttext:30731395 pythoncmv:30756943 fixshowwlkth:30771522 pythongtdpath:30769146 bgfeh915:30769767 dh2dc718:30770000 pythonidxpt:30772539 pythondjangotscf:30772537 ```
nikhilweee commented 1 year ago

I had the same issue. I did a clean uninstall and things seem to be better now.

meganrogge commented 1 year ago

Please see https://github.com/Microsoft/vscode/wiki/Performance-Issues for creating actionable performance problem issues. /label info-needed terminal

VSCodeTriageBot commented 1 year ago

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!