microsoft / vscode

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

cannot import multiple libraries that are built in. #178884

Closed samaanjafari closed 1 year ago

samaanjafari commented 1 year ago

Type: Performance Issue

since i started coding python in vscode i had this issue that some libraries that are related to my code are not defined by vscode and i was always looking for anc replacement as an amatuer that just know the basics but now i don't have any substitution and vscode recognize the must common "date time" class as undefined!!!! i can't believe it and i stuck like 2days for just mistake of vscode and i think its time to look for replace the vscode

VS Code version: Code 1.77.0 (7f329fe6c66b0f86ae1574c2911b681ad5a45d63, 2023-03-29T10:02:16.981Z) OS version: Windows_NT x64 10.0.22000 Modes: Sandboxed: Yes

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)| |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
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|15.70GB (8.16GB free)| |Process Argv|--crash-reporter-id 5f332976-4ce7-47de-b2ef-a731b496b19f| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 1 116 7396 code main 0 76 2220 fileWatcher [1] 0 26 4484 crashpad-handler 0 174 8180 extensionHost [1] 0 79 1944 electron-nodejs ("C:\Users\ASUS\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:\Users\ASUS\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=8180) 0 91 11972 electron-nodejs ("C:\Users\ASUS\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\ASUS\.vscode\extensions\visualstudioexptteam.intellicode-api-usage-examples-0.2.7\dist\server\server.js --node-ipc --clientProcessId=8180) 0 311 13292 electron-nodejs ("C:\Users\ASUS\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\ASUS\.vscode\extensions\ms-python.vscode-pylance-2023.3.40\dist\server.bundle.js --cancellationReceive=file:653a5f5d901ea762acca2cab23f594a47b1d6ca5f4 --node-ipc --clientProcessId=8180) 0 34 13472 c:\Users\ASUS\AppData\Local\Programs\Python\Python311\python.exe c:\Users\ASUS\.vscode\extensions\ms-python.isort-2022.8.0\bundled\tool\server.py 0 11 5372 console-window-host (Windows internal process) 1 87 9068 window [2] (Issue Reporter) 0 302 9868 gpu-process 0 93 10552 shared-process 0 71 2504 ptyHost 0 183 11004 window [1] (● dd.py - Visual Studio Code) 0 40 12864 utility-network-service ```
Workspace Info ``` ; ```
Extensions (32) Extension|Author (truncated)|Version ---|---|--- vscode-django|bat|1.10.0 doxdocgen|csc|1.4.0 python-environment-manager|don|1.0.4 python-extension-pack|don|1.7.0 code-runner|for|0.12.0 c-cpp-runner|fra|5.2.1 gc-excelviewer|Gra|4.2.57 better-cpp-syntax|jef|1.17.2 vsc-python-indent|Kev|1.18.0 isort|ms-|2022.8.0 python|ms-|2023.6.0 vscode-pylance|ms-|2023.3.40 jupyter|ms-|2023.3.1000892223 jupyter-keymap|ms-|1.1.0 jupyter-renderers|ms-|1.0.15 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 remote-containers|ms-|0.288.0 remote-ssh|ms-|0.98.0 remote-ssh-edit|ms-|0.84.0 remote-wsl|ms-|0.77.0 cmake-tools|ms-|1.13.45 cpptools|ms-|1.15.1 cpptools-extension-pack|ms-|1.3.0 remote-explorer|ms-|0.2.0 autodocstring|njp|0.6.1 cmake|twx|0.0.17 vscode-lldb|vad|1.9.0 incredibly-in-your-face|Vir|1.0.2 intellicode-api-usage-examples|Vis|0.2.7 vscodeintellicode|Vis|1.2.30 jinja|who|0.0.8 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931:30280409 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 vscccc:30610679 nodejswelcome1cf:30587006 3biah626:30602489 pyind779:30671433 f6dab269:30613381 vscrp:30673768 pythonsymbol12:30671437 vsctsb:30677850 vscodeenable:30660116 pythonb192:30669360 azdwalk:30687957 pythonms35:30701012 ```
mjbvz commented 1 year ago

/extPython

VSCodeTriageBot commented 1 year ago

It looks like this is caused by the Python extension. Please file the issue to the Python extension repository. Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.

Happy Coding!