Hacker News new | ask | show | jobs
by matthewmorgan 1142 days ago
Could they keep the files in WSL and run their IDEs in Windows?
2 comments

IIRC, they were cloning in WSL, but AIUI at the time, WSL is still subject to the requirements Windows imposes on filenames.

(I'm not a WSL expert, so I could be wrong here.)

I believe colons being forbidden in filenames is an NTFS limitation and not Windows itself, but the specific whole filenames you can't use are probably part of Windows.

This colon thing has come up for me in the past when giving people access to a GNU/Linux file server with movies stored with colons in the names. I think using SMB or NFS on Windows, the files just didn't show. I refused to rename the directories for this one guy and instead copied the files to a second spot for him to grab. I really appreciate and enjoy putting colons in filenames and would not easily give it up.

WSL2 resolves these issues by creating a virtual disk instead of sharing the ntfs partition with Windows. Frankly though the fact that I had to type that sentence out is ridiculous.
Inside the filesystem shim, WSL will replace forbidden characters with unicode private use characters by adding 0xF000.
not sure about other IDEs, but VSCode has very good WSL integration for doing this iirc
You can type code inside a WSL shell and get a VSCode configured to work inside it.