Working directory not set correctly with WSL installation
See original GitHub issueRight now, :pwd
gives me /mnt/c/<user>/AppData/Local/Programs/Microsoft VSCode
in every document and workspace. I think the working directory should actually be the current workspace, to match the behavior of VSCode’s integrated terminal.
I’m using a Neovim installation on WSL. The working directory is the same regardless of whether I open a file in WSL or Windows.
Issue Analytics
- State:
- Created 3 years ago
- Comments:18 (7 by maintainers)
Top Results From Across the Web
Troubleshooting Windows Subsystem for Linux | Microsoft Learn
Open Control Panel -> Programs and Features -> Turn Windows Feature on or off -> Check Windows Subsystem for Linux or using the...
Read more >How to change default directory in Windows Subsystem for ...
Enter bash · Type the command sudo vim /etc/passwd · Find your account's line, which might look like: · Change the home directory,...
Read more >11 Ways to Fix "The System Cannot Find The Path Specified ...
Open the Settings app on your system by pressing and holding Windows + I keys. From Settings, go to Update & Security >...
Read more >WSL: No such file or directory when installing a setup.py for a ...
My Windows data on this shared PC lives at /mnt/c/Users/username , but there is nothing in the setup.py code relating to directory paths....
Read more >What is the home directory on Windows Subsystem for Linux?
Previously, as of 2018, The current path is related to which distribution you ... On my setup (WSL Ubuntu under the "Windows 10...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
To revert:
Possibly related, I get this error in VSCode Neovim output on launch:
E344 has been anonymized, basically it’s the working directory with no slashes.