<< Back to previous view

[CLJS-2576] cljs.main: Non terminate with -e on Windows Created: 26/Feb/18  Updated: 26/Feb/18

Status: Open
Project: ClojureScript
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Mike Fikes Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

On Windows, with build uberjar (*clojurescript-version* 1.10.62), -e doesn't terminate for browser environment (unless you close the browser).

The value of -e is printed, but then it hangs. Here is a transcript showing it occurring (after a successful run with the node environment). In that transcript the exception was displayed when closing the browser.

C:\Users\mfikes\Downloads>java -jar cljs.jar -re node -e 3
3

C:\Users\mfikes\Downloads>java -jar cljs.jar -e 3
Compiling client js ...
Serving HTTP on localhost port 9000
Listening for browser REPL connect ...
3
Exception in thread "Thread-123" java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
        at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
        at sun.nio.cs.StreamDecoder.read(Unknown Source)
        at java.io.InputStreamReader.read(Unknown Source)
        at java.io.BufferedReader.fill(Unknown Source)
        at java.io.BufferedReader.readLine(Unknown Source)
        at java.io.BufferedReader.readLine(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93)
        at clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:313)
        at cljs.repl.server$read_request.invokeStatic(server.clj:120)
        at cljs.repl.server$handle_connection.invokeStatic(server.clj:182)
        at cljs.repl.server$server_loop$fn__7614.invoke(server.clj:194)
        at clojure.core$binding_conveyor_fn$fn__5554.invoke(core.clj:2022)
        at clojure.lang.AFn.run(AFn.java:22)
        at java.lang.Thread.run(Unknown Source)

(Perhaps this shares a root cause with CLJS-2575.)


Generated at Tue Feb 19 17:57:46 CST 2019 using JIRA 4.4#649-r158309.