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

Pressing tab doesn't accept suggestion, doesn't complete. #179

Open
SagarSDagdu opened this issue Feb 26, 2025 · 7 comments
Open

Pressing tab doesn't accept suggestion, doesn't complete. #179

SagarSDagdu opened this issue Feb 26, 2025 · 7 comments

Comments

@SagarSDagdu
Copy link

When I type in the initial part of the code, it gives relevant suggestions, but when I press the tab key to accept, it doesn't accept the suggestion and complete the code. I tried quitting and reopening, restarting Xcode as well restarting my Mac.

Versions

  • Copilot for Xcode: 0.31.0
  • Xcode: 16.2.0
  • macOS: 15.3.1 (24D70)

Logs

github-copilot-for-xcode.log

@testforstephen
Copy link

Can you check if Xcode menu Editor -> GitHub Copilot is greyed out? If so, you need to quit Xcode first and restart Xcode.

@SagarSDagdu
Copy link
Author

Hi @testforstephen, I do not see any such option here. Also, I have restarted my Xcode several times.

Image

@diederikh
Copy link

diederikh commented Feb 26, 2025

Same here. It is showing the suggestion in the editor in grey but tab just does a tab.

@mecid
Copy link

mecid commented Feb 26, 2025

@diederikh @SagarSDagdu it means you didn't give permission to Copilot Xcode Extension.

@SagarSDagdu
Copy link
Author

@mecid I had that permission set correctly in the General settings tab.
I downgraded the extension to an older version and it started working, so I guess this is a problem specifically with the latest version.

@mecid
Copy link

mecid commented Feb 26, 2025

@SagarSDagdu I had the similar issue and in the System Settings -> Extensions -> Xcode Source Editor -> Github Copilot was somehow deactivated.

@testforstephen
Copy link

https://github.com/github/CopilotForXcode/blob/main/TROUBLESHOOTING.md#extension-permission

See the troubleshooting guide here, you need ensure grant Xcode Source Editor extension permission to "GitHub Copilot for Xcode". With extension permission granted, restart Xcode and then you should see "GitHub Copilot" menu enabled in Xcode Editor menu.

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

4 participants