Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Bug: sign-in issue Failed to send request signInInitiate. Error: Language server error: Server unavailable ...

未關閉
#724 2 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
48/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
冷清
技術堆疊
node.js, swift

研究方向

首先,使用回報的 Xcode 與 macOS 版本重現登入 Copilot for Xcode 0.46.0,然後在提供的日誌中追蹤 language-server 啟動與 signInInitiate 失敗的情況。確認如何選取已設定的 Node 路徑,以及伺服器是否仍保持可用;登入在沒有 language-server 錯誤的情況下完成即表示完成。

由索引模型根據 Issue 內容生成。

描述

reviewed

Describe the bug

After clicking the sign-in button, I get the following error.

Failed to send request signInInitiate. Error: Language server error: Server unavailable, please make sure that:
1. The path to node is correctly set.
2. The node is not a shim executable.
3. the node version is high enough.

Actually, Node is installed on my computer, and I believe it meets the required version. (node v24.13.0)
I even installed the node via brew and removed the existing one in case there was a change, but nothing changed.
I also tried it in xcode26.0 before, then deleted it and installed 26.2, but the result was the same in both.

Versions

  • Copilot for Xcode: 0.46.0
  • Xcode: 26.2
  • macOS: 26.3

Steps to reproduce

  1. Open Github Copilot for Xcode
  2. Click "Sign In" button

Screenshots

Image Image

Logs

[2026-01-25T16:49:17.795Z] [info] [CommunicationBridge] [7654] Accepted new connection.
[2026-01-25T16:49:17.795Z] [info] [CommunicationBridge] [7654] Launching extension service app.
[2026-01-25T16:49:17.817Z] [error] [Client] [15805] Failed to update feature flags: Waiting for service to connect to the communication bridge.
[2026-01-25T16:49:17.818Z] [info] [Client] [15805] Registering bridge launch agent
[2026-01-25T16:49:17.974Z] [info] [Service] [15806] Syncing Xcode theme: Default (Dark).xccolortheme
[2026-01-25T16:49:17.991Z] [info] [Service] [15806] XPC Service started.
[2026-01-25T16:49:17.991Z] [info] [CommunicationBridge] [7654] Accepted new connection.
[2026-01-25T16:49:18.342Z] [info] [CommunicationBridge] [7654] Service app found: 15806 Optional("com.github.CopilotForXcode.ExtensionService")
[2026-01-25T16:49:18.342Z] [info] [CommunicationBridge] [7654] Service app is still valid
[2026-01-25T16:49:19.356Z] [info] [GitHubCopilot] [15806] Setting env PATH: /Users/burakcokyildirim/.bun/bin:/Users/burakcokyildirim/.pyenv/shims:/Users/burakcokyildirim/.nvm/versions/node/v24.13.0/bin:/opt/homebrew/bin:/opt/homebrew/opt/openjdk@17/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/Library/Apple/usr/bin:/Users/burakcokyildirim/.gem/bin:/Applications/SonarScanner/bin:/Applications/SonarQube/bin:/usr/local/bin/infer:/Users/burakcokyildirim/.spicetify:/opt/gradle/gradle-8.5/bin
[2026-01-25T16:49:19.465Z] [info] [GitHubCopilot] [15806] Starting language server in file:///Users/burakcokyildirim/Library/Application%20Support/com.github.CopilotForXcode/GitHub%20Copilot/support/, ["HOME": "/Users/burakcokyildirim", "PATH": "/Users/burakcokyildirim/.bun/bin:/Users/burakcokyildirim/.pyenv/shims:/Users/burakcokyildirim/.nvm/versions/node/v24.13.0/bin:/opt/homebrew/bin:/opt/homebrew/opt/openjdk@17/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/Library/Apple/usr/bin:/Users/burakcokyildirim/.gem/bin:/Applications/SonarScanner/bin:/Applications/SonarQube/bin:/usr/local/bin/infer:/Users/burakcokyildirim/.spicetify:/opt/gradle/gradle-8.5/bin:/opt/homebrew/sbin"]
[2026-01-25T16:49:19.466Z] [info] [GitHubCopilot] [15806] Running on Xcode string("26.2"), extension version string("0.46.0")
[2026-01-25T16:49:20.023Z] [error] [GitHubCopilot] [15806] Failed to send request conversation/registerTools. Error: Language server error: An unknown error occurred: unknownError(JSONRPC.ProtocolTransportError.dataStreamClosed)
[2026-01-25T16:49:20.023Z] [error] [GitHubCopilot] [15806] Failed to send request checkStatus. Error: Language server error: An unknown error occurred: unknownError(JSONRPC.ProtocolTransportError.dataStreamClosed)
[2026-01-25T16:49:20.023Z] [error] [GitHubCopilot] [15806] Failed to send request checkStatus. Error: Language server error: An unknown error occurred: unknownError(JSONRPC.ProtocolTransportError.dataStreamClosed)
[2026-01-25T16:49:20.023Z] [info] [GitHubCopilot] [15806] No previously disabled tools need to be restored
[2026-01-25T16:49:20.023Z] [info] [Client] [15806] Notify about language model tools change: 0 enabled, 0 disabled.
[2026-01-25T16:49:20.023Z] [error] [Service] [15806] Failed to read auth status: languageServerError(GitHubCopilotService.ServerError.unknownError(JSONRPC.ProtocolTransportError.dataStreamClosed))
[2026-01-25T16:49:23.040Z] [info] [CommunicationBridge] [7654] Service app found: 15806 Optional("com.github.CopilotForXcode.ExtensionService")
[2026-01-25T16:49:23.040Z] [info] [CommunicationBridge] [7654] Service app is still valid
[2026-01-25T16:49:23.045Z] [error] [GitHubCopilot] [15806] Failed to send request checkStatus. Error: Language server error: Server unavailable, please make sure that:
1. The path to node is correctly set.
2. The node is not a shim executable.
3. the node version is high enough.
[2026-01-25T16:49:27.083Z] [error] [GitHubCopilot] [15806] Failed to send request signInInitiate. Error: Language server error: Server unavailable, please make sure that:
1. The path to node is correctly set.
2. The node is not a shim executable.
3. the node version is high enough.

Additional context

主要語言
Swift
星號
6.3k
分支
2k
平均合併
3 天 21 小時
30 天內合併 PR
2

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

github/CopilotForXcode 的其他 Issue

查看 github/CopilotForXcode 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。