getcursor / cursor

The AI Code Editor
https://cursor.com
25.2k stars 1.57k forks source link

Failed to connect to the remote extension host server (Error: ExtensionInstallFailed(ExtensionInstallFailed("Extension 'github.copilot' not found.\nMake sure you use the full extension ID, including the publisher, e.g.: ms-dotnettools.csharp\nExtension 'github.copilot-chat' not found. #1516

Open af4ro opened 4 months ago

af4ro commented 4 months ago

1) If you can, please include a screenshot of your problem

Screenshot 2024-06-27 at 4 41 51 PM Screenshot 2024-06-27 at 4 42 10 PM

2) Please include the name of your operating system MacOS: 14.5 with Cursor: 0.35.1

3) If you can, steps to reproduce are super helpful Trying to connect to server with Remote-SSH:

  1. Hit Cmd + Shft + P
  2. Enter "Remote-SSH: connect to host..." and then pick server to connect to This works on my VSCode but not on Cursor

Full error in dev tools: workbench.desktop.main.js:21870 Failed to connect to the remote extension host server (Error: ExtensionInstallFailed(ExtensionInstallFailed("Extension 'github.copilot' not found.\nMake sure you use the full extension ID, including the publisher, e.g.: ms-dotnettools.csharp\nExtension 'github.copilot-chat' not found.\nMake sure you use the full extension ID, including the publisher, e.g.: ms-dotnettools.csharp\nFailed Installing Extensions: github.copilot, github.copilot-chat\n")))

julianchr commented 4 months ago

+1 having the same issue, please let me know if you find a solution

patriksimurka commented 4 months ago

same, please look at this, it's extremely annoying it's flaky (sometimes it doesn't show up and i connect just fine) have had this happen for the past two releases of Cursor

patriksimurka commented 4 months ago

okay, i fixed it with this: https://github.com/getcursor/cursor/issues/847#issuecomment-1703637028

julianchr commented 4 months ago

amazing, this fixed it! thanks for the help!

edit: this gave me access to the server, but the issue would spring up again at next login. So for me, full fix required:

KyrieLii commented 2 months ago

amazing, this fixed it! thanks for the help!

edit: this gave me access to the server, but the issue would spring up again at next login. So for me, full fix required:

  • deleting ~/.cursor-server in SSH via Terminal
  • launching Cursor
  • removing the Github Copilot extensions from the Remote SSH download config (in settings)
  • connect to SSH via Cursor

Thanks, it works for me, key opertation is step 3.

ValentaTomas commented 2 months ago
Failed to connect to the remote extension host server (Error: ExtensionInstallFailed(ExtensionInstallFailed("Extension 'github.copilot' not found.\nMake sure you use the full extension ID, including the publisher, e.g.: ms-dotnettools.csharp\nFailed Installing Extensions: github.copilot\n")))

The same thing is happening to me — deleting ~/.cursor-server fixes this for one connection, but after that, it will happen again. I couldn't find any mentions of the GitHub Copilot extension anywhere in the cursor setting or in the repo .vscode directory, so I don't know why it is still happening.

EDIT: I only checked .vscode/extensions.json and not .vscode/setting.json and because my search ignores these files I couldn't find the copilot that was mentioned in the "remote.SSH.defaultExtensions" setting there. Thank you for the fix.