CopilotForXcode icon indicating copy to clipboard operation
CopilotForXcode copied to clipboard

Copilot code completion don't work. How can I check the usage details?

Open CoderLineChan opened this issue 10 months ago • 5 comments
trafficstars

Describe the bug

Versions

  • Copilot for Xcode: [e.g. 1.245.0]
  • Xcode: [e.g. 15.3]
  • macOS: [e.g. 14.3]

Steps to reproduce

  1. Copilot code completion don't work,

Screenshots

Logs

[2025-01-12T03:43:33.700Z] [info] [GitHubCopilot] [93069] window/logMessage: { "message" : "[lsp] GitHub Copilot Language Server 1.245.0 initialized", "type" : 3 } [2025-01-12T03:43:33.859Z] [info] [GitHubCopilot] [93069] window/logMessage: { "message" : "[certificates] Removed 17 expired certificates", "type" : 3 } [2025-01-12T03:43:34.630Z] [info] [GitHubCopilot] [93069] check status response: Response(status: OK, user: Optional("CoderLineChan")) [2025-01-12T03:43:34.632Z] [info] [GitHubCopilot] [93069] window/logMessage: { "type" : 1, "message" : "[auth] copilotToken.notification: ResponseError: The operation couldn’t be completed. (LanguageServerProtocol.ServerError error 0.)\n at handleResponse (/snapshot/copilot-client/node_modules/vscode-jsonrpc/lib/common/connection.js:565:48)\n at handleMessage (/snapshot/copilot-client/node_modules/vscode-jsonrpc/lib/common/connection.js:345:13)\n at processMessageQueue (/snapshot/copilot-client/node_modules/vscode-jsonrpc/lib/common/connection.js:362:17)\n at Immediate. (/snapshot/copilot-client/node_modules/vscode-jsonrpc/lib/common/connection.js:334:13)\n at processImmediate (node:internal/timers:471:21) {\n code: 32603,\n data: undefined\n}" } [2025-01-12T03:43:35.322Z] [info] [CommunicationBridge] [93064] Service app found: 93069 Optional("com.github.CopilotForXcode.ExtensionService") [2025-01-12T03:43:35.322Z] [info] [CommunicationBridge] [93064] Service app is still valid [2025-01-12T03:44:05.756Z] [info] [Service] [93069] Extension Service is not updated, no need to quit. [2025-01-12T03:44:05.779Z] [info] [GitHubCopilot] [93103] check status response: Response(status: OK, user: Optional("CoderLineChan"))

Additional context

CoderLineChan avatar Jan 12 '25 04:01 CoderLineChan

https://github.com/github/CopilotForXcode/issues/108#issue-2782273633

jayesh8293 avatar Jan 16 '25 10:01 jayesh8293

f3258ae8a3b74cfe545a35fc3c95e535

Oba421 avatar Feb 04 '25 17:02 Oba421

same, after upgraded to 0.31.0, tab key not working anymore.

before it worked fine.

dymx101 avatar Feb 15 '25 04:02 dymx101

I found the workaround.

Set Xcode > Settings > Key Bindings > GitHub Copilot Accept Suggestion to Tab.

giginet avatar Feb 15 '25 06:02 giginet

same, after upgraded to 0.31.0, tab key not working anymore.

before it worked fine.

@dymx101 The cause is the menu GitHub Copilot under the Xcode Editor menu is greyed out after using the update checker to upgrade to a new copilot version. You can fix it by restarting Xcode.

testforstephen avatar Feb 17 '25 06:02 testforstephen