Copilot cannot launch from WSL after upgrading to `1.0.64` from PowerShell
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
描述
### Describe the bug
I use GitHub Copilot in both Windows (from PowerShell) and WSL.
This morning I updated the Windows installation to `1.0.64`. The Windows version is working fine after the update.
However, the WSL installation cannot launch. The error message is
```bash
$ copilot
Failed to load package index: /home/shengjiema/.cache/copilot/pkg/linux-x64/1.0.64-1/index.js SyntaxError: Invalid or unexpected token
at compileSourceTextModule (node:internal/modules/esm/utils:318:16)
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:90:18)
at #translate (node:internal/modules/esm/loader:435:20)
at afterLoad (node:internal/modules/esm/loader:491:29)
at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:496:12)
at #getOrCreateModuleJobAfterResolve (node:internal/modules/esm/loader:549:36)
at afterResolve (node:internal/modules/esm/loader:597:52)
at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:603:12)
at node:internal/modules/esm/loader:622:32
at TracingChannel.tracePromise (node:diagnostics_channel:362:14)
```
### Affected version
`copilot --version` does not work in WSL, but the Windows installation says `GitHub Copilot CLI 1.0.64.`
### Steps to reproduce the behavior
_No response_
### Expected behavior
_No response_
### Additional context
_No response_
貢獻指南
研究方向
首先,在 WSL 中使用版本 `1.0.64` 重現 `copilot`,並檢查錯誤中參照的快取檔案 `linux-x64/1.0.64-1/index.js`。將 WSL 的行為與正常運作的 PowerShell 安裝進行比較;完成標準是 `copilot` 能在 WSL 中啟動,且 `copilot --version` 能正常運作。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- node.js, powershell, shell
- 領域
- cli, operating-systems
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 冷清
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100