Uploaded image for project: 'ClojureScript'
  1. CLJS-2575

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: None
    • Fix versions: None
    • Labels:
      None
    • Environment:

      Windows 10

      Description

      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*
      "1.10.62"
      cljs.user=> :cljs/quit
      Exception in thread "Thread-126" 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)
      

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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mfikes Mike Fikes
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: