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

cljs.main: Sometimes print side effects don't properly occur prior to REPL

    Details

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

      {:deps {org.clojure/clojurescript {:mvn/version "1.10.138"}}}
      macOS
      Safari

      Description

      Using built 1.10.138:

      src/hello_world/core.cljs
      (ns hello-world.core)
      
      (println "Hello world!")
      

      Note that sometimes Hello world! is printed, and sometimes only a newline.

      $ clj -Srepro --main cljs.main --compile hello-world.core --repl
      Hello world!
      ClojureScript 1.10.138
      cljs.user=> :cljs/quit
      $ clj -Srepro --main cljs.main --compile hello-world.core --repl
      
      ClojureScript 1.10.138
      cljs.user=> :cljs/quit
      $ clj -Srepro --main cljs.main --compile hello-world.core --repl
      Hello world!
      ClojureScript 1.10.138
      cljs.user=> :cljs/quit
      $ clj -Srepro --main cljs.main --compile hello-world.core --repl
      Hello world!
      ClojureScript 1.10.138
      cljs.user=> :cljs/quit
      $ clj -Srepro --main cljs.main --compile hello-world.core --repl
      Hello world!
      ClojureScript 1.10.138
      cljs.user=> :cljs/quit
      $ clj -Srepro --main cljs.main --compile hello-world.core --repl
      
      ClojureScript 1.10.138
      cljs.user=> :cljs/quit
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: