github / github/copilot-cli

Copilot cannot launch from WSL after upgrading to `1.0.64` from PowerShell

Ouverte
#3,901 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
area:installation area:platform-windows
Langage dominant
Shell
Étoiles
11.2k
Forks
1.9k
Merge moyen
14 h 16 min
PR mergées (30 j)
6

Description

### 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_

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par reproduire `copilot` dans WSL avec la version `1.0.64` et examinez le fichier mis en cache `linux-x64/1.0.64-1/index.js` référencé dans l’erreur. Comparez le comportement de WSL avec l’installation PowerShell fonctionnelle ; c’est terminé lorsque `copilot` se lance dans WSL et que `copilot --version` fonctionne.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
node.js, powershell, shell
Domaine
cli, operating-systems
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
Calme
Clarté
À clarifier
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.