CopilotForXcode icon indicating copy to clipboard operation
CopilotForXcode copied to clipboard

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

Open SagarSDagdu opened this issue 8 months ago • 9 comments
trafficstars

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

SagarSDagdu avatar Feb 26 '25 06:02 SagarSDagdu

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

testforstephen avatar Feb 26 '25 07:02 testforstephen

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

Image

SagarSDagdu avatar Feb 26 '25 10:02 SagarSDagdu

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

diederikh avatar Feb 26 '25 11:02 diederikh

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

mecid avatar Feb 26 '25 12:02 mecid

@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.

SagarSDagdu avatar Feb 26 '25 12:02 SagarSDagdu

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

mecid avatar Feb 26 '25 12:02 mecid

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.

testforstephen avatar Feb 27 '25 05:02 testforstephen

I had this issue even though the extension was enabled. Restarting Xcode or even my Mac failed.

But here's what worked:

  • toggle the extension off and then back on
  • restart Xcode

aronbudinszky avatar Mar 06 '25 17:03 aronbudinszky

I'm having the same issue, tapping on tab doesn't autocomplete, but I can apply the suggestion from Editor -> Github Copilot menu

Image

Permission looks fine on the Copilot Settings Image

Versions

Copilot for Xcode: 0.32.0 Xcode: 15.4.0 macOS: 15.0 (24A335)

jcenturion18 avatar Mar 24 '25 19:03 jcenturion18

I'm having the same issue, tapping on tab doesn't autocomplete, but I can apply the suggestion from Editor -> Github Copilot menu

Image

Permission looks fine on the Copilot Settings Image

Versions

Copilot for Xcode: 0.32.0 Xcode: 15.4.0 macOS: 15.0 (24A335)

I have the same issue.

MisterZhouZhou avatar Jun 29 '25 06:06 MisterZhouZhou