:cljs/quit in brepl doesn't work on Windows at times


  • Type: Defect Defect
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Environment:
    Windows 10


Build uberjar, and put it on Windows. Then java -jar cljs.jar and let the browser REPL start up automatically.

I'm running *clojurescript-version* 1.10.62

If you type :cljs/quit it will often hang (especially if this is the first form evaluated, it seems). If you close the browser, it will then exit with an exception:

C:\Users\mfikes\Downloads>java -jar cljs.jar
Compiling client js ...
Serving HTTP on localhost port 9000
Listening for browser REPL connect ...
To quit, type: :cljs/quit
cljs.user=> *clojurescript-version*
cljs.user=> :cljs/quit
Exception in thread "Thread-126" Connection reset
        at Source)
        at Source)
        at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
        at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
        at Source)
        at Source)
        at Source)
        at Source)
        at 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(
        at clojure.lang.Reflector.invokeNoArgInstanceMember(
        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 Source)

This doesn't seem to occur with the Node and Nashorn repl environments.


There are no comments yet on this issue.


Vote (0)
Watch (0)


  • Created: