nixin72 / from-template

Raco tool for cloning templates from the racket-templates org
MIT License
8 stars 4 forks source link

From-template doesn't support directories with spaces in the path on Windows 10. #25

Open Thelas opened 2 years ago

Thelas commented 2 years ago

When attempting to use the Qi tutorial, I did raco new qi-tutorial in a subdirectory of my home folder. Unfortunately, my Windows username has a space in it. Accordingly, I get the message 'C:\Users\Byron' is not recognized as an internal or external command, operable program or batch file., probably because the path isn't quoted in whatever script is being run. I also tried raco new rosette in a different subfolder to make sure it wasn't an issue with the qi tutorial specifically, which also failed in the same way. Specifying the path explicitly (whether as . or the quoted full absolute path) also encounters the same error.

spdegabrielle commented 2 years ago

https://github.com/nixin72/from-template/blob/fb3c5520a491e55c763cfa883ad111df2677e7de/main.rkt#L60 should probably be system*

countvajhula commented 2 years ago

Can also use build-path instead of string-append to construct a platform-specific path. The example in the docs even includes a path with a space.