Vscode: Integrated terminal unable to determine cwd on launch

Created on 12 Feb 2019  路  9Comments  路  Source: microsoft/vscode


  • VSCode Version: 1.32.0-insider
  • OS Version: 10.14.3

Steps to Reproduce:

  1. Was using fisher v2, update to fisher v3 via curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish
  2. Restart VSCode

I'm not sure how reproducible this error is because it seems like a rather narrow use-case. On load, the terminal's working directory defaults to /, however, ls lists the default cwd for VSCode, which is ~/Sites. I am though, unable to navigate within my ~/Sites because the pwd is indeed /.


Does this issue occur when all extensions are disabled?: Yes

integrated-terminal

Most helpful comment

All 9 comments

I tried clean uninstalling vscode and reinstalling but that did not fix the problem.

Does this issue occur if you remove/uninstall your prompt and use something else or the fish shell default prompt?

Happening to me as well. The combo of fish + omf + vscode seems to not be working. Only broken with the vscode terminal though, works fine in Terminal and Hyper.

No issue if I revert to bash. However, after I encountered the issue, even removing fisher and just using fish shell alone did not fix the problem.

I'm seeing the same issue but this occurred when I updated fish from 3.0.0 to 3.0.1. I was already using fisher 3. Now every time I open the terminal the cwd is /.

Workaround that I'm using for now:

{
    "terminal.integrated.shell.linux": "/bin/bash",
    "terminal.integrated.shellArgs.linux": ["-c", "exec fish"]
}

fish 3.0.2 with the fix is released (https://github.com/fish-shell/fish-shell/issues/5671) and available in Homebrew. It works for me.

I can also verify 3.0.2 resolves the problem. I will close this issue now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrkiley picture mrkiley  路  3Comments

sijad picture sijad  路  3Comments

philipgiuliani picture philipgiuliani  路  3Comments

chrisdias picture chrisdias  路  3Comments

vsccarl picture vsccarl  路  3Comments