Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
cursee165955y@ComputersAreBad
Not many WSL users here, I think. I have found this two articles.
https://daverupert.com/2018/04/...
https://nickjanetakis.com/blog/... -
C0D4669025yI don't WSL
But I do run a VM as a dev server.
So under same principles,
SSH + SFTP (or remote-ssh for vsCode with plugins installed per VM)
This Let's me code under windows, and run everything as if you were on the VM directly.
Simples. -
C0D4669025y@sbiewald it is, last time I tried it out it broke file permissions when edited outside of the WSL preventing the WSL to be even able to see the files.
I stopped using it as a serious contender after that.
WSL2 hopefully will be better but I still prefer to use a VM that's a 95% prod replica. -
@C0D4 WSL2 will be a VM, but with the localhost interface shared and the local file system mounted.
-
WSL shares the Windows filesystem. Just edit your files like normal then run them using WSL.
-
rant1ng44625y@AlgoRythm careful. They were not like this when wsl started. You couldn't edit unix files in windows.
My workflow lives exclusively in wsl, I use sublime ubuntu in wsl to avoid that problem -
@rant1ng So long as you have consistent line endings I don't see why that wouldn't work?
-
rant1ng44625y@AlgoRythm logically, they should have done it that way and it should work...realistically, and apparently, you can run into some problems...
https://blogs.msdn.microsoft.com/ws... -
C0D4669025y@AlgoRythm @rant1ng
From personal experience, yes you could edit the file from the windows side, no you couldn't access that file ever again from the WSL.
You had to delete the file from Windows then create it again in WSL.
Not the greatest experience.
As for WSL2 @sbiewald, if MS didn't learn from their mistakes of having a mounted directory only usable by the WSL then it's still a pita if something goes wrong. -
@C0D4 The same problem existed with Cygwin - the permissions of "Cygwin" and native Windows ACLs did not really coexist well.
I had to to manually delete one or two files in recovery mode (I have no idea how that could happen). -
cursee165955y@AlgoRythm @rant1ng @C0D4
I have tried both ways (editing WSL files on windows and edition Windows files in WSL) without prior research. And well, basically fucked up my WSL mainly the files permission. Can no longer edit or delete the files from neither OS.
I stupidly cloned a git repo inside WSL. Opened it directly in my windows sublime text and sublime merge, edited few lines, tried to change a branch via merge in windows.
Let's just say I got a situation worse than what C0D4 said.
😁 that's when I started reading about stuff and drop this question here. -
rant1ng44625y
Related Rants
-
gururaju56*Now that's what I call a Hacker* MOTHER OF ALL AUTOMATIONS This seems a long post. but you will definitely ...
-
linuxxx70This guy at my last internship. A windows fanboy to the fucking max! He was saying how he'd never use anythi...
-
creedasaurus62Another dev on my team just got a new machine. Before he came in today I made two separate USB installers and ...
Question for WSL users.
What's your workflow?
How do you edit the code from your IDE on Windows while the application is running in Linux?
question
windows
linux
wsl