microsoft / vscode

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

python interpreter not loading #143004

Closed HoustonKhanyile closed 1 year ago

HoustonKhanyile commented 2 years ago

Issue Type: Performance Issue

my python interpreter isn't loading. when I select my python interpreter from the virtual env that I set. The interpreter isn't loading. the path is shown but the interpreter isn't loading. this issue started last week. I reported it but I'm still experience the same problem. Even when clear workspace and external cache nothing is happening. Its the second week now I'm sick and tired of it.

VS Code version: Code 1.64.2 (f80445acd5a3dadef24aa209168452a3d97cc326, 2022-02-09T22:02:28.252Z) OS version: Windows_NT x64 10.0.22000 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Celeron(R) N4020 CPU @ 1.10GHz (2 x 1094)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: disabled_off
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|3.82GB (0.52GB free)| |Process Argv|--crash-reporter-id 42725f5e-d5c9-4161-8c46-1f44bdef245a| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 0 82 18872 code main 0 74 2832 issue-reporter 1 103 6604 gpu-process 0 107 10008 extensionHost 0 11 15372 C:\Users\houst\Downloads\VSCode-win32-x64-1.64.2\Code.exe --ms-enable-electron-run-as-node c:\Users\houst\.vscode\extensions\mtxr.sqltools-0.23.0\dist\languageserver.js --node-ipc --clientProcessId=10008 0 11 16020 C:\Users\houst\Downloads\VSCode-win32-x64-1.64.2\Code.exe --ms-enable-electron-run-as-node c:\Users\houst\Downloads\VSCode-win32-x64-1.64.2\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain --node-ipc --clientProcessId=10008 0 62 18820 C:\Users\houst\Downloads\VSCode-win32-x64-1.64.2\Code.exe --ms-enable-electron-run-as-node c:\Users\houst\.vscode\extensions\ms-python.vscode-pylance-2022.2.1\dist\server.bundle.js --cancellationReceive=file:b5aee4317c21698c9ec976e3352032ffbe6e57e050 --node-ipc --clientProcessId=10008 0 70 22124 C:\Users\houst\Downloads\VSCode-win32-x64-1.64.2\Code.exe --ms-enable-electron-run-as-node c:\Users\houst\.vscode\extensions\ms-python.vscode-pylance-2022.2.1\dist\server.bundle.js --cancellationReceive=file:eee8bc913d49490568efdd4800669190bcfbfef70f --node-ipc --clientProcessId=10008 0 109 14328 window (Instagram.py - TheMachine - Visual Studio Code) 0 6 15724 crashpad-handler 0 12 20476 utility-network-service 2 54 22992 shared-process 0 13 13368 fileWatcher 0 17 19472 ptyHost 0 17 11152 C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe 0 8 17492 "C:\Users\houst\CMS\TheMachine\Machine\Mach/Scripts\python.exe" manage.py runserver 0 36 24732 C:\Users\houst\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe manage.py runserver 0 8 21908 C:\Users\houst\CMS\TheMachine\Machine\Mach\Scripts\python.exe manage.py runserver 9 44 23812 C:\Users\houst\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe manage.py runserver 0 5 17260 console-window-host (Windows internal process) 0 47 24760 window (undefined) ```
Workspace Info ``` | Window (Instagram.py - TheMachine - Visual Studio Code) | Folder (TheMachine): 19423 files | File types: py(5095) pyc(4947) mo(1212) po(1212) dat(791) js(414) | html(297) pyi(107) txt(98) png(87) | Conf files: launch.json(1) settings.json(1) package.json(1) | Launch Configs: python; ```
Extensions (20) Extension|Author (truncated)|Version ---|---|--- mimeconvertor|ajo|0.2.0 vscode-html-css|ecm|1.11.0 live-html-previewer|hdg|0.3.0 vscode-docker|ms-|1.19.0 vscode-postgresql|ms-|0.3.0 python|ms-|2022.0.1814523869 vscode-pylance|ms-|2022.2.1 jupyter|ms-|2022.1.1201831736 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.6 remote-containers|ms-|0.217.4 vsliveshare-pack|ms-|0.4.0 debugger-for-chrome|msj|4.13.0 sqltools|mtx|0.23.0 sqltools-driver-pg|mtx|0.2.0 LiveServer|rit|5.7.4 html5-boilerplate|sid|1.1.1 intellicode-api-usage-examples|Vis|0.0.10 vscodeintellicode|Vis|1.2.17 jinja|who|0.0.8
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvspyl392:30425749 pythontb:30283811 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805:30301674 pythonvspyt200:30340761 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 vsc1dsc:30433058 pythonvs932:30410667 wslgetstarted:30433507 vsclayoutctrc:30437038 vsrem710:30416614 vsbas813:30436447 vscscmwlcmc:30436992 ```
DrakezulsMinimalism commented 2 years ago

@HoustonKhanyile we had something similar recently and simply had to recreate the python venv. Did you try that already? This was, I believe, not an error in VS Code, but VS Code should've at least shown an error that it cannot load the venv.

meganrogge commented 1 year ago

sorry for the delay in replying to this. are you still seeing the issue?

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!