CopilotForXcode icon indicating copy to clipboard operation
CopilotForXcode copied to clipboard

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

Open owenzhao opened this issue 1 year ago • 5 comments

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

owenzhao avatar Nov 05 '24 21:11 owenzhao

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.

devm33 avatar Nov 06 '24 03:11 devm33

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.

owenzhao avatar Nov 15 '24 10:11 owenzhao

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

devm33 avatar Nov 15 '24 16:11 devm33

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.

owenzhao avatar Nov 15 '24 21:11 owenzhao

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.

devm33 avatar Nov 15 '24 21:11 devm33