Eval file in clojure nREPL on Windows isn't working.
UnderCooled opened this issue · comments
extract.file-path
returns a path like this on Windows: D:\foo\bar.clj
, then it's double-quoted in eval-file
, "D:\foo\bar.clj"
, those backslashes become escape like \f
, \b
.
opts.file-path
should be escaped on Windows platform: (nvim.fn.escape opts.file-path "\\")
or (opts.file-path:gsub "\\" "\\\\")
.
Ah no! Sorry, I'll get this fixed as soon as I can. Thanks you for reporting and sorry for the error, Windows paths always catch me out, we did a huge pass a year or so ago to escape everything and use the right slashes everywhere, I guess something slipped the net or was added later.
Pushed a fix for this to develop.
It works great!