CopilotForXcode icon indicating copy to clipboard operation
CopilotForXcode copied to clipboard

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

Open PhillipLoackerAlturos opened this issue 2 years ago • 6 comments

Before Reporting

  • [X] I have checked FAQ, and there is no solution to my issue
  • [X] I have searched the existing issues, and there is no existing issue for my issue

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

PhillipLoackerAlturos avatar Aug 16 '23 06:08 PhillipLoackerAlturos

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.

intitni avatar Aug 16 '23 06:08 intitni

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

Screenshot 2023-08-17 at 2 36 48 PM

pradipaub36 avatar Aug 17 '23 09:08 pradipaub36

@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.

intitni avatar Aug 17 '23 09:08 intitni

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

pradipaub36 avatar Aug 18 '23 08:08 pradipaub36

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.

Tieto-Starz avatar Sep 17 '23 06:09 Tieto-Starz

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

krisnaw avatar Dec 06 '23 05:12 krisnaw