github / github/copilot-cli

Sandboxes on WSL don't allow you to run VScode remote

Offen
#4,546 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

area:permissions
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

Describe the bug

When I try to run ! code . with the /sandbox enable I get:

Shell code . (sandboxed)  2 lines
/mnt/c/Users/user/AppData/Local/Programs/Microsoft VS Code/bin/code: 42: wslpath: not found
/mnt/c/Users/user/AppData/Local/Programs/Microsoft VS Code/bin/code: 62: /mnt/c/Users/user/AppData/Local/Programs/Microsoft VS Code/Code.exe: not found

I then added that path to the sandbox configuration via /sandbox config and it still fails.

If I run /sandbox disable it works.

Affected version

GitHub Copilot CLI 1.0.81-6

Steps to reproduce the behavior

/sandbox enable
! code .

Expected behavior

I should be able to run VScode after configuring additional filesystem code

Image
Additional context

No response

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, das Problem mit /sandbox enable gefolgt von ! code . in WSL zu reproduzieren, und vergleiche dann die Sandbox-Konfiguration aus /sandbox config mit den Fehlern des VS Code-code-Launchers für wslpath und Code.exe. Als erledigt gilt die Aufgabe, wenn ! code . VS Code erfolgreich startet, während die Sandbox nach der erforderlichen Dateisystemkonfiguration aktiviert bleibt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
shell, vscode
Bereich
cli, operating-systems
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Aktiv
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.