microsoft / vscode

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

when attached to running container ms-python extension takes too long to install, then debugger server is not ready #233144

Open lakshaysethi opened 2 hours ago

lakshaysethi commented 2 hours ago

Type: Bug

  1. attach to running container
  2. install ms-python extention
  3. wait
  4. try to use debugger, can not , need to close vs code window and open again

VS Code version: Code 1.94.2 (384ff7382de624fb94dbaf6da11977bba1ecd427, 2024-10-09T16:08:44.566Z) OS version: Windows_NT x64 10.0.19045 Modes: Remote OS version: Linux x64 6.11.3-arch1-1

``` 024-11-06 01:13:53.659 [info] Extension host with pid 332 started 2024-11-06 01:13:53.681 [info] Lock '/root/.vscode-server/data/User/workspaceStorage/5df3128bc7bf93d9b69b63132792ef36/vscode.lock': Lock acquired. 2024-11-06 01:13:53.718 [info] ExtensionService#_doActivateExtension vscode.tunnel-forwarding, startup: false, activationEvent: 'onTunnel' 2024-11-06 01:13:53.720 [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onLanguage' 2024-11-06 01:13:53.721 [info] ExtensionService#_doActivateExtension vscode.git-base, startup: false, activationEvent: '*', root cause: vscode.git 2024-11-06 01:13:53.848 [info] ExtensionService#_doActivateExtension vscode.git, startup: false, activationEvent: '*' 2024-11-06 01:13:53.848 [info] ExtensionService#_doActivateExtension vscode.github, startup: false, activationEvent: '*' 2024-11-06 01:13:54.097 [info] Eager extensions activated 2024-11-06 01:13:54.097 [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch, startup: false, activationEvent: 'onStartupFinished' 2024-11-06 01:13:54.098 [info] ExtensionService#_doActivateExtension vscode.merge-conflict, startup: false, activationEvent: 'onStartupFinished' 2024-11-06 01:29:59.259 [info] ExtensionService#_doActivateExtension ms-python.python, startup: false, activationEvent: 'onLanguage:python' 2024-11-06 01:30:02.028 [error] Error: Client is not running and can't be stopped. It's current state is: starting at P.shutdown (/root/.vscode-server/extensions/ms-python.python-2024.18.0/out/client/extension.js:2:2112952) at P.shutdown (/root/.vscode-server/extensions/ms-python.python-2024.18.0/out/client/extension.js:2:2316009) at P.stop (/root/.vscode-server/extensions/ms-python.python-2024.18.0/out/client/extension.js:2:2112524) at P.doInitialize (/root/.vscode-server/extensions/ms-python.python-2024.18.0/out/client/extension.js:2:2112343) at async P.start (/root/.vscode-server/extensions/ms-python.python-2024.18.0/out/client/extension.js:2:2108907) at async h.start (/root/.vscode-server/extensions/ms-python.python-2024.18.0/out/client/extension.js:2:40028) 2024-11-06 01:30:02.030 [error] Error: Request initialize failed with message: You may install and use any number of copies of the software only with Microsoft Visual Studio, Visual Studio for Mac, Visual Studio Code, Azure DevOps, Team Foundation Server, and successor Microsoft products and services (collectively, the “Visual Studio Products and Services”) to develop and test your applications. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. You may not: work around any technical limitations in the software that only allow you to use it in certain ways; reverse engineer, decompile or disassemble the software, or otherwise attempt to derive the source code for the software, except and to the extent required by third party licensing terms governing use of certain open source components that may be included in the software; remove, minimize, block, or modify any notices of Microsoft or its suppliers in the software; use the software in any way that is against the law or to create or propagate malware; or share, publish, distribute, or lease the software (except for any distributable code, subject to the terms above), provide the software as a stand-alone offering for others to use, or transfer the software or this agreement to any third party. at ae (/root/.vscode-server/extensions/ms-python.python-2024.18.0/out/client/extension.js:2:2049671) at oe (/root/.vscode-server/extensions/ms-python.python-2024.18.0/out/client/extension.js:2:2047631) at Immediate. (/root/.vscode-server/extensions/ms-python.python-2024.18.0/out/client/extension.js:2:2043925) at process.processImmediate (node:internal/timers:483:21) ```
System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 5 5625U with Radeon Graphics (12 x 2296)| |GPU Status|2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software
webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|31.31GB (22.65GB free)| |Process Argv|--crash-reporter-id 2280e022-e023-4bce-8060-d5ef2ae0c0b6| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|Container db-products-to-json-app (db-products-to-json-app-1) @ 10.1.8.222| |OS|Linux x64 6.11.3-arch1-1| |CPUs|AMD EPYC 7543 32-Core Processor (128 x 0)| |Memory (System)|67.11GB (62.14GB free)| |VM|0%|
Extensions (9) Extension|Author (truncated)|Version ---|---|--- remote-containers|ms-|0.388.0 remote-ssh|ms-|0.115.0 remote-ssh-edit|ms-|0.87.0 remote-wsl|ms-|0.88.5 vscode-remote-extensionpack|ms-|0.26.0 remote-explorer|ms-|0.4.3 debugpy|ms-|2024.12.0 python|ms-|2024.18.0 vscode-pylance|ms-|2024.11.1
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 da93g388:31013173 dvdeprecation:31068756 dwnewjupytercf:31046870 impr_priority:31102340 nativerepl2:31139839 refactort:31108082 pythonrstrctxt:31112756 cf971741:31144450 iacca1:31171482 notype1:31157159 5fd0e150:31155592 dwcopilot:31170013 ```
vs-code-engineering[bot] commented 2 hours ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.95.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

lakshaysethi commented 2 hours ago

Image