2 ms·
I didn't completely understand why you want to run your project in WSL but keep necessary files on the Windows side of the filesystem? It mentions PHPStorm, but
by sp332 4y ago
I didn't completely understand why you want to run your project in WSL but keep necessary files on the Windows side of the filesystem? It mentions PHPStorm, but you can just run that in WSL instead of running it on the Windows side and losing the ability to watch files.
- PaulHoule 4y agoOne of the selling points of WSL was the close integration between Windows and Linux. I liked the original WSL because it delivered close integration in the filesystem (e.g. Linux applications used the Windows filesystem) but the filesystem interface in Windows is slow compared to the filesystem in Linux. For the work I did it was OK but the headline number for how long it takes to compile a kernel was awful with WSL 1 and Microsoft felt the need to rebuild WSL. So WSL 2 is just "run Linux in a VM and use a bunch of Microsoft-supplied hacks to couple Linux and Windows" and that is just death... Microsoft can't couple Linux to Windows effectively any more than Microsoft could make a Dropbox clone that worked 1/4 as well as Dropbox or make a Steam clone that works at all. (Ok, I have occasionally installed an app from the Windows store, it sorta works on a new machine from the store and just after you make a feature upgrade, but after a little bit of use the metadata database gets corrupted and I can't install anything anymore... And the idiots at Microsoft tell me I should nuke my whole account and spend hours reinstalling and reconfiguring all the applications I actually use just so I can install one crapplet from the Windows Store that I need for my printer.) If I want to run Linux in a VM I can just run Linux in a VM and configure it so it works correctly. For me WSL 2 is Kryptonite because it makes it very easy to make a broken Linux configuration but impossible to make a good one.
- naikrovek 4y agoI have had the exact opposite experience than what you describe, and I use WSL 2 and the Windows Store daily. the integration between WSL 2 and Windows is alive and well, I assure you. most times I hear of something like this at work, like very odd problems I've never seen before, I will sit with the person and observe what they do before problems come up. every single time it is because they have some custom thing they do or apply or install "to all [their] windows systems out of the box" which "makes things better" somehow, but in reality always seems to make things break. these people are always smart people who knew very well how Windows worked 20 years ago and are unaware of just how much has changed in those two decades. damn near everything has changed, FYI. the old ways no longer work in a lot of cases. those old tweaks mostly cause problems today. I'll show them what to do to stop windows from doing whatever it was that it did back then, in the rare event that windows still does the same things, and magically a lot of their issues simply stop being issues immediately. your mileage may vary, but if you have problems, I would look closely at any customizations you've made, if any. maybe you've made none, I don't know. I no longer make any, and I no longer have the problems I hear others having.
- nikau 4y agoAs a contractor WSL2 is a boon if you have to use a firm supplied laptop - just install WSL2 and windows terminal, both of which are from Microsoft so its all kosher from a security theatre point of view. You then have a standard terminal and Ubuntu environment wherever you go, and have some niceties like being able to call windows apps from Linux, and be able to run windows junk like netsh from bash and process its output.