-
Notifications
You must be signed in to change notification settings - Fork 861
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
Nodes symlink creates file instead of directory #2898
Comments
I tried your repro and it creates Windows junctions not files (regardless of third param, natch). This was on 17083 Simpler repro because you are going to find the
The junctions are by-design. You are probably wanting #1475. |
Strange. It looks like even
This comment (#1475 (comment)) says "Windows Insider Build 17046 contains some improvements for symlink compatibility". Maybe I need this update. 🤔 strace for ln -s
|
Okay cool, it changed. But we're still looking at by-design (before and after), or dupe #1475 if you prefer, right? |
Hi again. I tested this now on the computer of a colleague which has the Insiders 17074 installed. When we run I'd expect the command to behave like I don't know if this is a dupe of #1475, because I have to say that I don't really understand what #1475 is about. The title and description are quite hard to understand for me. Probably a mix of not being familiar with Windows, file systems and being a non-native speaker. Sorry. So I added the screenshots, which probably makes it a little bit easier to illustrate my problem. |
It looks like that for me in Explorer too. Ben or Sven will have to confirm, but I believe it is a Super Special™ WSL junction, which is just confusing Explorer. If you look at the file with One thing you might try is turning on Developer Mode in you colleague's 17074. From the release notes it will use ntfs symlinks and will show as type
That's pretty fair assessment and it isn't your English 🙂. It was an open question. |
Is the by design or will this be fixed in the future? How should other applications handle this? E.g. VS Code can't see some of my packages, because
We'll try that. (But I think it was already enabled 🤔.) Thank you for all the work and responses so far! |
I suppose you could call it by design (but not ideal) in 16299, but "better" since 17046, because creating NTFS symlinks (contrast WSL junctions) is now supported. Whether it will be "even better" in the future I can't tell you, except to say no one closed #1475.
If you have Developer Mode enabled, you are probably seeing |
It seems to work if you have a recent Insiders version and developer mode activated. Thank you. |
Same for me - updated to Windows 10 Insider Preview build 17074 (from 16299) - now it works. |
AFAIU, the developer mode is no longer required (since mid 2017). Or, is it still required if I don't use
Could anyone clarify what Windows build or WSL version do I need to get this 'symlinks situation' fixed? |
@therealkenc Got it. Thanks! I switched off the Developer Mode, because it fires services occupying port 22 what is quite unhelpful for Targeting the Windows Subsystem for Linux from Visual Studio :-) I'm going to switch the Developer Mode on and configure the WSL SSH to listen on different port. |
Yeah, there is also some pithy commentary on that here just for ref. Bonne chance. |
Oh my, I wish I stumbled upon that earlier! ;-) Back to serious, thanks a lot! |
Try running as sudo. Seemed to work for me (running without sudo did not) Windows 10 Enterprise built 16999 |
Unfortunately this has started happening to me again. It was fixed for me on a different computer with an older version of Insider preview. Now:
Running |
same here, I have two machines, problem is on both:
running |
Trying to create symlink under a different directory than pwd also not working. I'm in developer mode.
|
I'm running into this issue with npm link, developers mode enabled. Has anyone come up with a workaround? |
Update
This was previously reported as a Node-specific issue and an issue with directory names which contain a ".", but as it turned out it is more generic and can be reproduced by these steps:
Below is the original issue
This bug-tracker is monitored by developers and other technical types. We like detail! So please use this form and tell us, concisely but precisely, what's up. Please fill out ALL THE FIELDS!
If you have a feature request, please post to the UserVoice.
If this is a console issue (a problem with layout, rendering, colors, etc.), please post to the console issue tracker.
Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues. Instead, send dumps/traces to [email protected], referencing the GitHub bug number. Ideally, please configure your machine to capture minidumps, repro the issue, and send the minidump from "C:\Windows\minidump".
Your Windows build number: (Type
ver
at a Windows Command Prompt) Microsoft Windows [Version 10.0.16299.192]What you're doing and what's happening: (Copy&paste specific commands and their output, or include screen shots)
(Note: The third param is only for Windows and should not change Unbuntu behavior. This is true: It always creates a file, but it should create three directories instead.)
Wrong:
I have three files in
/mnt/c/Users/foo
all calledfoo
with the file extensionsbar
,bar2
andbar3
.What should happen:
I have three directories in
/mnt/c/Users/foo/path-to-some-file
calledfoo.bar
,foo.bar2
andfoo.bar3
.some_command
is failing, then runstrace -o some_command.strace -f some_command some_args
, and link the contents ofsome_command.strace
in a gist here)TODO for me.
See our contributing instructions for assistance.
First noticed while using
yarn
: yarnpkg/yarn#5302The text was updated successfully, but these errors were encountered: