Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home directory is expanded incorrectly in different programs #3700

Closed
FallenGameR opened this issue Dec 5, 2018 · 1 comment
Closed

Home directory is expanded incorrectly in different programs #3700

FallenGameR opened this issue Dec 5, 2018 · 1 comment

Comments

@FallenGameR
Copy link

  • Your Windows build number: (Type ver at a Windows Command Prompt)

Microsoft Windows [Version 10.0.17763.134]

  • What you're doing and what's happening: (Copy&paste specific commands and their output, or include screen shots)

Trying to edit a config file in the home directory. But it turns out that VS code opens a different file.
Here is how I invoke the command in the console:
alexko@alexko-ds /m/e/C/a/p/d/A/N/SymmetricKeys> cat ~/.tmux.conf
alexko@alexko-ds /m/e/C/a/p/d/A/N/SymmetricKeys> code ~/.tmux.conf

And here are the paths that are actually being touched:
image

  • What's wrong / what should be happening instead:

Both paths should resolve in the same place, not edit two different unrelated files.
Right now I don't know how to use VS code to edit config files...

@therealkenc
Copy link
Collaborator

I assume you're talking about Windows code.exe via interop. Windows (win32) programs cannot access stuff in LxFS. #1524. If you want to edit with code.exe you need to be in /mnt/c/Users/you/somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants