Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copilot Became "Extension is not enabled" State After Using Some Times #24

Open
owenzhao opened this issue Nov 5, 2024 · 5 comments
Open

Comments

@owenzhao
Copy link

owenzhao commented Nov 5, 2024

Describe the bug

After using Copilot for some time, the icon of Copilot changes to an info icon style and prompts with "Extension is not enabled. Enable GitHub Copilot under Xcode and then restart Xcode". At this point, you don’t need to follow the prompt; simply closing and reopening Xcode should be enough. This is because the setting allowing Xcode extensions to use Copilot hasn’t changed.

I’m not sure exactly how to reproduce it, but I suspect it might also be a system-related issue such as the authorization expiring incorrectly after 24 hours upon opening Xcode.

Versions

  • Copilot for Xcode: [e.g. 0.27.93]
  • Xcode: [e.g. 16.2 beta 2 (16C5013f)]
  • macOS: [e.g. 15.2 Beta (24C5073e)]

Steps to reproduce

  1. Open Xcode
  2. Wait until the issue shows. Maybe the next day it will show.

Screenshots

Screenshot 2024-11-06 at 5 17 00 AM

Logs

github-copilot-for-xcode.log

Additional context

@devm33
Copy link
Collaborator

devm33 commented Nov 6, 2024

Hi @owenzhao, thanks for trying out Copilot for Xcode and providing feedback!

The warning status is important since without the extension active/enabled in Xcode, the app is forced to use a fallback that does not work as well.

I would be curious to know if you're able to figure out what might be causing the extension to get inactivated in Xcode. If anything changes with the app binary (e.g. an app update) that causes Xcode to deactivate the extension. That's the only case I'm aware of.

@owenzhao
Copy link
Author

After I disabled "Quit GitHub Copilot when Xcode App is closed" option, this issue no longer appears.

However, I have encountered another issue that the Menu Tray Icon turned into circle state and there was no suggestions for Xcode from Copilot. I quit Copilot and relaunch it, it works again.

@devm33
Copy link
Collaborator

devm33 commented Nov 15, 2024

Hi @owenzhao that's interesting that keeping the app open prevents Xcode from disabling it.

I have encountered another issue that the Menu Tray Icon turned into circle state

Does it get stuck in the loading state indefinitely until you restarted? The loading indicator should be improved on the latest version 0.29.0

@owenzhao
Copy link
Author

Hi @owenzhao that's interesting that keeping the app open prevents Xcode from disabling it.

I have encountered another issue that the Menu Tray Icon turned into circle state

Does it get stuck in the loading state indefinitely until you restarted? The loading indicator should be improved on the latest version 0.29.0

No. It only circled a few seconds and the pilot image showed. However, there was no suggestion in Xcode at that time. Now I am with version 0.29.0 and will keep this update if this happens again.

@devm33
Copy link
Collaborator

devm33 commented Nov 15, 2024

No. It only circled a few seconds and the pilot image showed. However, there was no suggestion in Xcode at that time. Now I am with version 0.29.0 and will keep this update if this happens again.

Got it. That's how it's meant to work. The loading indicator should be shown when suggestions are being requested. Suggestions are not always returned on every request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants