github / CopilotForXcode

Xcode extension for GitHub Copilot
MIT License
1.94k stars 37 forks source link

After upgrading to 0.28.0 Unable to Reconnect to GitHub #26

Closed hyling closed 2 weeks ago

hyling commented 3 weeks ago

Describe the bug After upgrading from 0.27.93 to 0.28.0 GitHub Connection shows "Not Authorized" even after I logout then log back in.

Versions

Steps to reproduce

  1. Tap "Logout from GitHub
  2. Do Sign In
  3. Webpage shows Congratulations, you're all set! Your device is now connected.
  4. Return to GitHub Copilot for Xcode app.
  5. Tap "Refresh Connection"
  6. Still showing "GitHub Connection: Not Authorized"

Screenshots image

Logs github-copilot-for-xcode.log

manoloacademia commented 2 weeks ago

same problem

devm33 commented 2 weeks ago

Hi @hyling and @manoloacademia, sorry for the issue here.

To help identify the issue, if you downgrade to 0.27.* are you able to login?

hyling commented 2 weeks ago

Hi @hyling and @manoloacademia, sorry for the issue here.

No problem I'm just glad Xcode support for Copilot is being worked on.

To help identify the issue, if you downgrade to 0.27.* are you able to login?

Actually it looks like my Copilot subscription expired. Once I renewed it is working even with 0.28.0 The error message in 0.27.93 ask me to check my subscription. I don't remember if error message in 0.28.0 did the same.

Thanks for your help!

manoloacademia commented 1 week ago

Hi @devm33! I tried upgrading to 0.29 and same issue...

devm33 commented 1 week ago

Hi @manoloacademia, sorry for the difficulty here. Could you share the logs from ~/Library/Logs/GitHubCopilot/github-copilot-for-xcode.log?

manoloacademia commented 1 week ago

sure! please find the file in the attachments. thanks! github-copilot-for-xcode.log

devm33 commented 1 week ago

Hi @manoloacademia, thanks for sharing the logs! It looks like the issue is the permissions on your ~/.config/github-copilot directory:

Error: EACCES: permission denied, mkdir '\/Users\/manoloacademia\/.config\/github-copilot'

Can you try setting the access to 755:

chmod -R 755 ~/.config

Or

chmod -R 755 ~/.config/github-copilot

If the github-copilot directory already exists and is perhaps just misconfigured.

manoloacademia commented 1 week ago

Hi @devm33, unfortunately after giving permission and the creation of the folder still not sign in. Do you think this could be something? [Service] [25574] Extension Service is not updated, no need to quit. Thanks!

manoloacademia commented 1 week ago

Hi @devm33, do this folder needs to be pre-configured? .config/github-copilot/. It says something about the versions.json file which isn't there 😸

devm33 commented 1 week ago

@manoloacademia it doesn't need to be pre-configured. It should be created by the app (hence the error EACCES: permission denied, mkdir '\/Users\/manoloacademia\/.config\/github-copilot'). You could try deleting it to reset

rm -rf ~/.config/github-copilot/