Pylance client: couldn't create connection to server.
Type: Bug
Pylance client: couldn't create connection to server.
Extension version: 2024.6.1 VS Code version: Code 1.90.1 (611f9bfce64f25108829dd295f54a6894e87339d, 2024-06-11T21:01:24.262Z) OS version: Windows_NT x64 10.0.22631 Modes: Remote OS version: Linux x64 5.15.90.1-microsoft-standard-WSL2
System Info
| Item | Value |
|---|---|
| CPUs | 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz (16 x 2496) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on 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_graphite: disabled_off video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled |
| Load (avg) | undefined |
| Memory (System) | 31.48GB (8.29GB free) |
| Process Argv | --crash-reporter-id 2cfcdb77-4b64-440c-bb82-e269637bf0f5 |
| Screen Reader | no |
| VM | 0% |
| Item | Value |
|---|---|
| Remote | WSL: Ubuntu |
| OS | Linux x64 5.15.90.1-microsoft-standard-WSL2 |
| CPUs | 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz (16 x 0) |
| Memory (System) | 15.37GB (13.85GB free) |
| VM | 0% |
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
chatpanelc:31048052
dsvsc021:30996838
bdiig495:31013172
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
pythonprt:31056678
dwnewjupytercf:31046870
Could you provide some loggings as described in the troubleshooting guide?
This issue has been closed automatically because it needs more information and has not had recent activity. If the issue still persists, please reopen with the information requested. Thanks.
@github-action Here is more of the error code
2024-08-16 12:12:51.153 [error] [
'Failed to start language server, Class name = p, completed in 3388ms, has a falsy return value, Arg 1: <Uri:/home/green/Templates/playground>, Arg 2: {"id":"/usr/bin/python","sysPrefix":"/usr","envType":"Global","envName":"","envPath":"","path":"/usr/bin/python","architecture":3,"sysVersion":"3.12.4 (main, Jun 7 2024, 06:33:07) [GCC 14.1.1 20240522]","version":{"raw":"3.12.4","major":3,"minor":12,"patch":4,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.12.4 64-bit","detailedDisplayName":"Python 3.12.4 64-bit"}, Return Value: undefined',
[s [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 (/home/green/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1968174)
at oe (/home/green/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1966134)
at Immediate.<anonymous> (/home/green/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1962428)
at process.processImmediate (node:internal/timers:478:21)] {
code: -32603,
data: undefined
}
]
2024-08-16 12:16:08.546 [info] Python interpreter path: /usr/bin/python
[s [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.
@x17-Green, you're hitting a different issue. Pylance can only be used in official builds of VS Code.