microsoft / microsoft/vscode-cpptools

Unable to launch debugger with fish shell as default system shell.

Offen
#239 12 Kommentare 19 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

debugger Feature Request
Vorherrschende Sprache
TypeScript
Sterne
6.2k
Forks
1.7k
Ø Merge
14 Std. 46 Min.
Gemergte PRs (30 T.)
61

Beschreibung

I am working on OS X (10.10.5). I prefer to have my login shell set to fish (/usr/local/bin/fish). However, this appears to break the method currently being used by the extension to launch external console commands.

Specifically, the terminal window that pops up (not a big deal, but it would be "nice" if the extension used the internal debugger settings--I prefer iTerm.app to terminal.app) is pretty obviously expecting a bash shell. My default shell (fish) fails pretty miserably with the given commands, and VS Code quite nicely gives the following message:

Unable to start debugging. Failed to initialize debugger terminal.

Basically I am asking this: is there a method for forcing the external command to use a bash environment instead of the default system environment?

I'd prefer to not have to switch back and forth just to run the debugger (which works fantastically when I switch the system login shell to bash).

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, den Fehler im Debugger-Terminal unter OS X zu reproduzieren, wenn fish als Login-Shell konfiguriert ist, und untersuche anschließend den Startpfad des Befehls für die externe Konsole der Extension sowie, wie die Shell ausgewählt wird. Als erledigt gilt die Aufgabe, wenn der Debugger erfolgreich gestartet wird, ohne die Login-Shell des Systems zu ändern, und das bestehende bash-Verhalten erhalten bleibt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
bash, fish, typescript
Bereich
developer-experience, devtools
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

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