[CLJS-2625] cljs.main: Sometimes print side effects don't properly occur prior to REPL Created: 07/Mar/18  Updated: 07/Mar/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
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

Generated at Wed Feb 20 05:25:02 CST 2019 using JIRA 4.4#649-r158309.