Closed templateK closed 8 years ago
It looks like this is either a problem with Piggieback or Figwheel. I'll investigate as much as I can, but I don't have a development environment on Windows.
I had some digging. It turns out that the bug exists in closurescript. there's nothing can be done in this project for this bug. feel free to close.
Thanks for investigating this.
I think that problem is in the following line: https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/repl.cljc#L713
For file param e.g. "src\duct3\client.cljs"
(str "file://" (.getAbsolutePath file))
evaluates on windows as: "file://C:\Projects\Playground\duct3\src\duct3\client.cljs"
which is not legal file Url (https://en.wikipedia.org/wiki/File_URI_scheme#Windows)
and final result is java.net.UnknownHostException
(java treat that URL as FTP address).
P.S. I have tried to post this in https://groups.google.com/forum/#!forum/clojurescript but it seems that my post is not visible (yet).
Filed an issue as suggested in google group: https://dev.clojure.org/jira/browse/CLJS-2155
Posted patch that solves this problem: https://dev.clojure.org/jira/secure/attachment/18574/CLJS-2155.patch
On windows, when lein repl on project created with command
lein new duct +example +cljs
throws
java.net.UnknownHostException: E
the 'E' is drive letter of project path
On linux this project works just fine.
stack trace
os: Windows10, runtime: JDK 8, clojure 1.8