-
-
Notifications
You must be signed in to change notification settings - Fork 391
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
[Bug]: Clicking "Accept" doesn't apply the code #311
Comments
-- Update -- If the accept button/keybinding/tab doesn't work, it's very likely the Copilot menu in Xcode - Menu Bar - Editor is greyed out. It's an Xcode bug that usually happens right after you update the extension. So please remember to restart Xcode after updating the extension. Another possible cause is you have multiple versions of Copilot for Xcode.app on your Mac, and Xcode is confused by them. I am closing this issue. Please open a new one if needed. |
I'm having the same problem and I did all the things you said above, but whatever happened, it happened after the last update of copilot, I was not having such a problem before. |
@mavzerbay It's weird that the 3rd step isn't working for you. Since the whole extension works more like a hack, I can't guarantee that what works for me works for others. I can't fix it alone. I would suggest:
|
I had this problem until I deleted the "Copilot for Xcode.app" from my Downloads folder and restarted Xcode. I had previously copied it to /Applications, but I should have moved it instead. The giveaway was seeing two octopus tentacle icons (the icon for this app, Copilot for Xcode) in my menu bar. |
For me, quitting "Copilot for Xcode.app" fixed this issue. |
I hava the same problem, this happen to me when I open mulit Xcode project. When I turning on Always accept suggestions with Accessibility API in advanced settings, click accept will works, but the other projacts will appear to foregroud. Even the keybinding is setted, the keybinding is not working. So may the problem about solving the window focus. Xcode version 15.0.1 |
@Dark-Existed, if the keybinding is not working either, the Copilot menu in Xcode is probably grayed out. It's an issue with Xcode and can only be cured by restarting Xcode. It usually happens after you have updated Copilot for Xcode which may confuse Xcode. Always accept suggestions with Accessibility API is a fallback solution that inserts the suggestion to the editor with Accessibility API, I guess it has a side effect that brings everything of the app to the foreground. I am considering replacing it with a pasteboard-based solution, no ETA yet. |
@intitni thx, after restarting Xcode, it works for me. |
@intitni I did all you said but still the shortcut is not working only works when you implicitly press the accept button. Do you have any suggestions? |
@mehmetbaykar Please try #438. Post a screenshot of the Copilot menu to #438 if the issue persists. |
Before Reporting
What happened?
When clicking "Accept" nothing happens.
Restarting the Xcode or Mac doesn't resolve the issue.
How to reproduce the bug.
It just happens!
Relevant log output
macOS version
13.3.1
Xcode version
Version 14.3.1 (14E300c)
Copilot for Xcode version
0.20.1
Node version
v18.16.1
The text was updated successfully, but these errors were encountered: