Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lakshaysethi opened this issue Nov 6, 2024 · 6 comments
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@lakshaysethi
Copy link

lakshaysethi commented Nov 6, 2024

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.<anonymous> (/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

Copy link

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 lakshaysethi changed the title ms-python extention take too long to install, then debugger server is not ready ms-python extension takes too long to install, then debugger server is not ready Nov 6, 2024
@lakshaysethi lakshaysethi changed the title ms-python extension takes too long to install, then debugger server is not ready when attached to running container ms-python extension takes too long to install, then debugger server is not ready Nov 6, 2024
@lakshaysethi
Copy link
Author

Image

@roblourens roblourens assigned chrmarti and unassigned roblourens Nov 6, 2024
@chrmarti chrmarti transferred this issue from microsoft/vscode Nov 21, 2024
@chrmarti chrmarti removed their assignment Nov 21, 2024
@karthiknadig karthiknadig self-assigned this Nov 26, 2024
@karthiknadig karthiknadig added the bug Something isn't working label Nov 26, 2024
@karthiknadig
Copy link
Member

@chrmarti Any idea where this error is coming from, It doesn't look like python specific.

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.

@karthiknadig
Copy link
Member

@rchiodo @debonte Do you by chance know where the above error is coming from? @cwebster-99 ran into it too, I can't seem to find the source.

@rchiodo
Copy link
Contributor

rchiodo commented Nov 26, 2024

Pylance sends that when it detects it's not running in the Microsoft version of VS code.

@karthiknadig karthiknadig removed the bug Something isn't working label Nov 26, 2024
@karthiknadig karthiknadig removed their assignment Nov 26, 2024
@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Nov 26, 2024
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Nov 26, 2024
@impliedgg
Copy link

Somehow reproduced this, vanilla VS Code (commit/version below).

Version: 1.97.2 (system setup)
Commit: e54c774e0add60467559eb0d1e229c6452cf8447
Date: 2025-02-12T23:20:35.343Z
Electron: 32.2.7
ElectronBuildId: 10982180
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.26100

I did have an issue where I had to reinstall the Python extension due to the extension path somehow getting mangled (C:\users\username.vscode instead of C:\users\username\.vscode). After reinstalling Pylance, I had this issue crop up. Restarting fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

7 participants