-
-
Notifications
You must be signed in to change notification settings - Fork 394
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]: Can't accept suggestions #491
Comments
Did you restart Xcode after updating the extension? |
Yes I did. Several times. |
Also to clarify, when I type TAB to accept the suggestion the page does just jump and does not return to where I was typinp. |
Please check that the menu Editor > Copilot in Xcode menubar exists and is not greyed out. If it doesn't exist, you can try re-enabling the Xcode source editor extension. Please also make sure that there is no another copy of Copilot for Xcode exist on you mac. |
There is no other copy on my mac and the Copilot menubar item is not greyed out. |
What about turning off “trigger command with accessibility api” from the advanced settings? |
If I turn that off, accepting suggestions do not work at all. However I will try it again now. Because I know how bugs can be intermittent. |
Nope, with trigger command with accessibility api toggled off, it does not accept suggestions at all. |
Can you accept suggestion by clicking the accept suggestion menu item in Editor > Copilot or triggering it with a key binding? |
Neither works. |
I think the source editor extension fails to communicate with the service app. Please
|
For step 2, I get the error: "The operation couldn't be completed. Operation not permitted." I'll restart my mac for good measure. |
Please try setting up the launch agent manually following this FAQ section |
Ok. I will give it a shot tomorrow. It's late where I am. Thank you so much for your help tho. I will update here what happens. |
I have a similar issue, I can accept suggestions with the buttons but not with tab. Seems to be a new issue since the latest update (as far as I have noticed). I have followed the suggestions above with the same issues. Can't get it working again without re-enabling the "allow in background" setting in login items (I tried setting up manually). |
@nrbrook Sorry I can't get my head around your statement. Is it working again or still not working? The button and tab basically do the same thing. Could you please check if the Plus license is still activated in the Plus tab? I have heard some users losing their license after an update but I honestly don't know why. |
Nevermind, it works after a reboot |
@nrbrook You are having a different issue. Please open Console.app, click start streaming and set the filter to category:Service Let me know if you see the following logs when you activate an Xcode window: |
Will do if it happens again |
@nrbrook Great. It's probably a macOS bug. @hedgemanNate I did some experiments and found that to reinstall the launch agent, you need to:
|
@intitni It happened again when I updated to the latest version. It seems like updating breaks it and requires a restart to fix. |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Before Reporting
What happened?
Slight variation on a known issue.
Copilot stopped allowing me to accept its suggestions. Nothing would type when I clicked "Accept" or when I pressed tab. However, I would have to click back on to Xcode to continue typing.
This began after the last update.
After reading similar issues, I tried suggested solutions. I also tried the solutions in the FAQ. None worked for me.
What endup up simi-working was turning on the 'Always accept suggestion with Accessibility API' toggle. I can accept suggestion now, however now when I do, the page scrolls to the top and then jumps back down to where I was typing. Which is fine, but I know that is not the intended function and it used to work as expected and without that toggle being on.
How to reproduce the bug.
Just use xcode with copilot on as normal, and wait for a suggestion.
Relevant log output
No response
macOS version
14.3
Xcode version
15.3
Copilot for Xcode version
0.32.0
The text was updated successfully, but these errors were encountered: