intitni / CopilotForXcode

The missing GitHub Copilot, Codeium and ChatGPT Xcode Source Editor Extension
https://copilotforxcode.intii.com
MIT License
7.42k stars 349 forks source link

[Bug]: The operation couldn't be completed. (LanguageServerProtocol. ServerError error 10.) #338

Open PhillipLoackerAlturos opened 11 months ago

PhillipLoackerAlturos commented 11 months ago

Before Reporting

What happened?

After installing on my new device, this error showed up after installing, therefore I can't use copilot.

Untitled

How to reproduce the bug.

After installation

image

Relevant log output

No response

macOS version

No response

Xcode version

No response

Copilot for Xcode version

No response

Node version

No response

intitni commented 11 months ago

Please read the GitHub Copilot section in the FAQ to see if there is a solution. If not, show me the logs with verbose log enabled.

pradipaub36 commented 11 months ago

I'm encountering the same error after installing the application on a new device.

Screenshot 2023-08-17 at 2 36 48 PM
intitni commented 11 months ago

@pradipaub36 Please read the GitHub Copilot section in the FAQ to see if there is a solution. If not, show me the node version and the logs with verbose log enabled.

pradipaub36 commented 11 months ago

I managed to solve the problem by installing the most recent version of Node.js using the link provided. https://nodejs.org/en

I appreciate your quick reply! @intitni

Tieto-Starz commented 10 months ago

In General, this problem arises from a multitude of issues. The following Steps should help in resolving the issue. Please try them out:

  1. Node.js is not symlinked -> Fix by writing full path to node application into CoPilot For Xcode Application Screenshot 2023-09-17 at 08 47 39
  2. Node.js not installed -> open terminal and install it (e.g. by using Homebrew) - or any other preferred way of installing it brew install node
  3. Install Copilot.Vim Screenshot 2023-09-17 at 08 51 57
  4. After the above changes have been made - Completely Close Copilot for Xcode (Command + Q) and Restart Application -> Press Refresh Button Language Server Screenshot 2023-09-17 at 08 48 39
  5. On Status "OK" Try to connect to your Github account with Copilot license.
krisnaw commented 7 months ago

Solution if you using nvm on your mac

use this command to located node nvm which current

Then paste the path on the Path to node