We're updating the issue view to help you get more done. 

building fileUrl on windows in repl.cljc results with java.net.UnknownHostException

Description

I think that the following line might cause the problem on windows:
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).

Environment

Windows OS

Status

Assignee

Mike Fikes

Reporter

Vojimir Golem

Labels

None

Approval

Accepted

Patch

Code

Affects versions

1.9.671

Priority

Major