lein-create-template icon indicating copy to clipboard operation
lein-create-template copied to clipboard

generates absolute paths with unescaped backslashes on Windows

Open gilch opened this issue 9 years ago • 1 comments

The strings generated in the (->files data [... part are incorrect in Windows. I get errors about unsupported escape characters. If I manually substitute \ with / in the paths, then when I try to use the template, I get a java.lang.IllegalArgumentException that displays the path in the first string (e.g. C:\Users\ME\Code\Clojure\foo\src\data_readers.clj) which it says is not a relative path, so lein isn't expecting what create-template is producing here.

gilch avatar Mar 19 '16 22:03 gilch

Have not tested on a Windows OS, but have changed to support native path and line separator i 0.2.0.

tcw avatar Apr 12 '16 21:04 tcw