intitni / CopilotForXcode

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

[Help Wanted]: it can't work fine #492

Closed koi646 closed 5 months ago

koi646 commented 5 months ago

Before Reporting

Describe your issue

I followed the installation steps, and it was working fine before. I restarted my computer in preparation for activating the Plus version that I purchased. Now, it's not working properly. there are no error messages.

image image image image image

Could there be an issue with my configuration? I am hesitant to use one of my activation opportunities

intitni commented 5 months ago

If you see the animation, that means the real-time suggestion is correctly triggered. It may be that the GitHub Copilot language server is not returning the suggestions for some reasons.

Please

  1. Go to the GitHub Copilot settings and turn on "Verbose Log".
  2. Open Console.app and click start streaming.
  3. Set the filter (the search bar at top-right corner) to category:GitHubCopilot.
  4. Try to trigger the real-time suggestion in Xcode.

If the suggestion request is sent, you should see logs that look like

Screenshot 2024-04-18 at 14 06 42

If there is an error, you should see logs that look like:

Screenshot 2024-04-18 at 14 02 12

If you don't see any log, try restarting the service app.

koi646 commented 5 months ago

I have followed your instructions and reboot my macbook, but just find that logs

image image
intitni commented 5 months ago

If you don't see any log after setting the filter to category:GitHubCopilot, you should quit the service app from the menu item. Quit and restart Copilot for Xcode.app to restart the service app.

Screenshot 2024-04-18 at 14 44 50

You can then click the refresh button in the GitHub Copilot settings and see if you can see the following logs:

featureFlagsNotification: {
  "rt" : false,
  "ssc" : false,
  "chat" : true
}

After verifying that you can see the logs, go back to Xcode and type something to trigger real-time suggestion.

koi646 commented 5 months ago

maybe is this error ?

image

I use clashX-pro, it's my vscode proxy set

image

I noticed that within the 'copilot-for-xcode' settings, there is no need to specify the protocol. Would it suffice to directly input "127.0.0.1 7890"?

intitni commented 5 months ago

Yes, this is the error. You don't need to setup the proxy in the GitHub Copilot settings but you can give it a try. ClashX-Pro may also provide an HTTP version of the url. You can give the values a try if you can't find it.

Use enhanced mode (增强模式) if possible.

intitni commented 5 months ago

Please also check that there is no settings about GitHub in the /etc/hosts file.

koi646 commented 5 months ago

thx your help, resolve this problem.it's my final setting

image image