Hacker News new | ask | show | jobs
by actf 2802 days ago
WSL is a great idea and I think Microsoft is onto something super cool with WSL, but after a week of serious use I found that it was not a viable replacement for cygwin. The major problem with WSL right now is that you can't effectively edit files in both Windows and WSL. For me this was very limiting because I could not interact with a git repo via WSL and then also open the files from that repo with a Windows IDE. In cygwin this would be no problem though.
2 comments

I don't know how long ago you used it but that's exactly what I'm doing right now. The files just have to be on the Windows file system. I edit with Visual Studio Code and use WSL (Ubuntu) to manage the repo.
I would be curious to know more about how you are doing this. Maybe Microsoft fixed this since I last used WSL, but if they didn't then you may be sitting on a ticking time bomb, see: https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-n...
> I would be curious to know more about how you are doing this. Maybe Microsoft fixed this since I last used WSL, but if they didn't then you may be sitting on a ticking time bomb, see: https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-n....

From linked post: Note: Your "Linux files" are any of the files and folders under %localappdata%\lxss - which is where the Linux filesystem - distro and your own files - are stored on your drive

It does say later on that storing files on windows filesystem and accessing it via /mnt/c is ok

I'm not the person you replied to, but I use WSL regularly on the Windows machines I interact with (and have been since it launched via the Insiders program). As others mentioned, the key is keeping all of your files in the Windows filesystem (/mnt/c in WSL).

When I set up a new machine, the first thing I do after installing WSL is to remove all directories from my home folder on the WSL filesystem, then symlink the directories in my home folder on the Windows filesystem. This way I can avoid accidetally saving files within the WSL filesystem, but don't have to prepend all paths with /mnt/c/Users/me (almost all my work occurs within my home directory).

There were a couple of very minor hiccups in its early days, but for the last year I haven't had any issues with it at all and it certainly makes developing on Windows a whole lot more convenient.

can you sync/cache the repository twice, once in windows and once in WSL?