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

WSL symlinks can be seen by Windows file explorer, but cannot be seen/opened by VS Code / Notepad++ #2683

Closed
davecan opened this issue Nov 19, 2017 · 1 comment

Comments

@davecan
Copy link

davecan commented Nov 19, 2017

NOTE: After submitting this I found other issues regarding symlink visibility, namely #353 which was updated in the past few weeks. If this is being dealt with under it then please close this issue and I apologize for the spam. (I cannot delete this issue)

Ran into this odd situation while working through a JS dev environment tutorial from Pluralsight. I just installed WSL last night. This issue is unlike the red-text warning against modifying Linux files, as all of these files are in the /mnt/... path i.e. they are in the Windows filesystem shared with WSL.

Basically, running a package install command in node under WSL in the folder /mnt/f/Development/jsdevenv/bash resulted in the creation of some symlinks that are visible to WSL and to the Windows file explorer, but are invisible to and cannot be opened by VS Code and Notepad++ on the Windows side. VS Code's file browser shows the folder is empty, but selecting "Reveal in Explorer" opens a new file explorer window showing the files exist.

Windows build number: 10.0.14393 (Win10 Home)

To Reproduce:

  1. Installed WSL.
  2. Installed node and npm under WSL.
  3. Copied this package.json file into my new project root.
  4. Ran npm install in the project root under WSL.
  5. node_modules folder is created and populated with downloaded libraries from the package.json file, and the subfolders and files all appear to be visible/openable in VS Code/etc. with one exception.....

Expected Behavior: node_modules\.bin is populated by the npm install command, links in this folder are visible in Windows (e.g. in VS Code, file explorer, etc), and can be opened/edited/etc in Windows.

Actual Behavior: node_modules\.bin folder is empty in VS Code, but the link files appear correctly under WSL as a simple ls command verifies. Checking the folder in Windows file explorer shows the files are there, but attempting to open the files with VS Code or Notepad++ returns an error stating the files do not exist.

@davecan davecan changed the title Files can be seen by WSL and Windows file explorer, but cannot be seen/opened by VS Code / Notepad++ WSL symlinks can be seen by Windows file explorer, but cannot be seen/opened by VS Code / Notepad++ Nov 19, 2017
@therealkenc
Copy link
Collaborator

therealkenc commented Nov 20, 2017

Yeah this is #353, #559, and #1475. No worries.

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