microsoft / pylance-release

Documentation and issues for Pylance
Creative Commons Attribution 4.0 International
1.72k stars 766 forks source link

Pylance client: couldn't create connection to server. #6394

Open adrianrymill opened 1 month ago

adrianrymill commented 1 month ago

Environment data

2024-09-16 18:32:40.085 [info] (Client) Pylance async client (2024.9.1) started with python extension (2024.14.1)
2024-09-16 18:32:40.115 [info] [Error - 6:32:40 PM] Pylance client: couldn't create connection to server.
2024-09-16 18:32:40.115 [info] Launching server using command editor.hover.enabled failed. Error: spawn editor.hover.enabled ENOENT
2024-09-16 18:37:21.205 [info] (Client) Pylance async client (2024.9.1) started with python extension (2024.15.2024091301)
2024-09-16 18:37:21.222 [info] [Error - 6:37:21 PM] Pylance client: couldn't create connection to server.
2024-09-16 18:37:21.223 [info] Launching server using command editor.hover.enabled failed. Error: spawn editor.hover.enabled ENOENT
2024-09-16 18:46:20.321 [info] (Client) Pylance async client (2024.9.100) started with python extension (2024.15.2024091301)
2024-09-16 18:46:20.339 [info] [Error - 6:46:20 PM] Pylance client: couldn't create connection to server.
2024-09-16 18:46:20.339 [info] Launching server using command editor.hover.enabled failed. Error: spawn editor.hover.enabled ENOENT
2024-09-16 18:46:36.873 [info] (Client) Pylance async client (2024.9.100) started with python extension (2024.15.2024091301)
2024-09-16 18:46:36.888 [info] [Error - 6:46:36 PM] Pylance client: couldn't create connection to server.
2024-09-16 18:46:36.888 [info] Launching server using command editor.hover.enabled failed. Error: spawn editor.hover.enabled ENOENT
2024-09-16 18:47:47.298 [info] (Client) Pylance async client (2024.9.100) started with python extension (2024.14.1)
2024-09-16 18:47:47.314 [info] [Error - 6:47:47 PM] Pylance client: couldn't create connection to server.
2024-09-16 18:47:47.314 [info] Launching server using command editor.hover.enabled failed. Error: spawn editor.hover.enabled ENOENT

Repro Steps

  1. XXX

I'm expeciting Pylance to work.

XXX

Instead if does not work and gives the error message :Pylance client: couldn't create connection to server.

Logs

XXX
adrianrymill commented 1 month ago

I've tried using Copilot to fix the issue. I've tried all the below and no success so far.

  1. Reload Visual Studio Code
  2. Check Pylance is installed and up to date.
  3. Check VS Code is up to date.
  4. Restart VS Code.
  5. Re-installed VS Code.
  6. {} settings.json only contains the below { "python.REPL.enableREPLSmartSend": false }
  7. Run VS Code as an admin
  8. Deleted the pylance files in C:\Users\user_name.vscode\extensions .. and then re-installed Pylance
adrianrymill commented 1 month ago

Output lists the below: 2024-09-16 18:32:40.085 [info] (Client) Pylance async client (2024.9.1) started with python extension (2024.14.1) 2024-09-16 18:32:40.115 [info] [Error - 6:32:40 PM] Pylance client: couldn't create connection to server. 2024-09-16 18:32:40.115 [info] Launching server using command editor.hover.enabled failed. Error: spawn editor.hover.enabled ENOENT 2024-09-16 18:37:21.205 [info] (Client) Pylance async client (2024.9.1) started with python extension (2024.15.2024091301) 2024-09-16 18:37:21.222 [info] [Error - 6:37:21 PM] Pylance client: couldn't create connection to server. 2024-09-16 18:37:21.223 [info] Launching server using command editor.hover.enabled failed. Error: spawn editor.hover.enabled ENOENT 2024-09-16 18:46:20.321 [info] (Client) Pylance async client (2024.9.100) started with python extension (2024.15.2024091301) 2024-09-16 18:46:20.339 [info] [Error - 6:46:20 PM] Pylance client: couldn't create connection to server. 2024-09-16 18:46:20.339 [info] Launching server using command editor.hover.enabled failed. Error: spawn editor.hover.enabled ENOENT 2024-09-16 18:46:36.873 [info] (Client) Pylance async client (2024.9.100) started with python extension (2024.15.2024091301) 2024-09-16 18:46:36.888 [info] [Error - 6:46:36 PM] Pylance client: couldn't create connection to server. 2024-09-16 18:46:36.888 [info] Launching server using command editor.hover.enabled failed. Error: spawn editor.hover.enabled ENOENT 2024-09-16 18:47:47.298 [info] (Client) Pylance async client (2024.9.100) started with python extension (2024.14.1) 2024-09-16 18:47:47.314 [info] [Error - 6:47:47 PM] Pylance client: couldn't create connection to server. 2024-09-16 18:47:47.314 [info] Launching server using command editor.hover.enabled failed. Error: spawn editor.hover.enabled ENOENT 2024-09-16 18:52:23.057 [info] (Client) Pylance async client (2024.9.100) started with python extension (2024.14.1) 2024-09-16 18:52:23.078 [info] [Error - 6:52:23 PM] Pylance client: couldn't create connection to server. 2024-09-16 18:52:23.078 [info] Launching server using command editor.hover.enabled failed. Error: spawn editor.hover.enabled ENOENT

debonte commented 1 month ago

@adrianrymill, how are you running VS Code? Is the server remote? In a container?

adrianrymill commented 1 month ago

Hello, I am running it on my PC at home. HP Slim Desktop S01-pF0xxx Processor Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz 2.90 GHz Installed RAM 8.00 GB (7.89 GB usable) System type 64-bit operating system, x64-based processor