question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Working directory not set correctly with WSL installation

See original GitHub issue

Right 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:open
  • Created 3 years ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
wenfangducommented, Jun 12, 2022

To revert:

image

5reactions
jrpearcommented, Jan 18, 2021

Possibly related, I get this error in VSCode Neovim output on launch:

E344: Can't find directory "home<user><workingdirectory>" in cdpath
E484: Can't open file $MYVIMRC

E344 has been anonymized, basically it’s the working directory with no slashes.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found