CopilotForXcode
CopilotForXcode copied to clipboard
Copilot Became "Extension is not enabled" State After Using Some Times
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
- Open Xcode
- Wait until the issue shows. Maybe the next day it will show.
Screenshots
Logs
Additional context
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.
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.
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
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.
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.