ns localhost 5555
To quit, type: :cljs/quit
cljs.user=> (require 'cli-repro.core)
clojure.lang.ExceptionInfo: No such namespace: left-pad, could not locate left_pad.cljs, left_pad.cljc, or JavaScript source providing "left-pad" in file /home/arichiardi/tmp/src/cli_repro/core.cljs {:tag :cljs/analysis-error}
at clojure.core$ex_info.invokeStatic(core.clj:4754)
at clojure.core$ex_info.invoke(core.clj:4754)
at cljs.analyzer$error.invokeStatic(analyzer.cljc:697)
at cljs.analyzer$error.invoke(analyzer.cljc:693)
at cljs.analyzer$error.invokeStatic(analyzer.cljc:695)
at cljs.analyzer$error.invoke(analyzer.cljc:693)
at cljs.analyzer$analyze_deps.invokeStatic(analyzer.cljc:2131)
at cljs.analyzer$analyze_deps.invoke(analyzer.cljc:2105)
at cljs.analyzer$ns_side_effects.invokeStatic(analyzer.cljc:3478)
at cljs.analyzer$ns_side_effects.invoke(analyzer.cljc:3473)
...
If you try at the first REPL prompt it requires it correctly so the problem manifests itself on in the socket REPL.
I found a problem with socket REPL - the repro is long but not complicated, I haven't had time to dig further.
$ mkdir -p src/cli_repro $ cat > src/cli_repro/core.cljs (ns cli-repro.core (:require left-pad)) (enable-console-print!) (println "Padded:" (left-pad 42 5 0)) $ cat > deps.edn {:deps {org.clojure/clojurescript {:git/url "https://github.com/clojure/clojurescript" :sha"0f7d2214bc16bf5868c11cddb8ea4f95d4a23fda"} org.clojure/clojure {:mvn/version "1.10.0-alpha4"}}} $ cat > cljsc_opts.edn {:main cli-repro.core :optimizations :none :target :nodejs :install-deps true :npm-deps {:left-pad "1.1.3"}} clojure -J-Dclojure.server.repl='{:port 5555 :accept cljs.server.node/repl}' -Srepro -m cljs.main -co "$(cat cljsc_opts.edn)" -re node -c cli-repro.core -rNow open another terminal and try:
ns localhost 5555 To quit, type: :cljs/quit cljs.user=> (require 'cli-repro.core) clojure.lang.ExceptionInfo: No such namespace: left-pad, could not locate left_pad.cljs, left_pad.cljc, or JavaScript source providing "left-pad" in file /home/arichiardi/tmp/src/cli_repro/core.cljs {:tag :cljs/analysis-error} at clojure.core$ex_info.invokeStatic(core.clj:4754) at clojure.core$ex_info.invoke(core.clj:4754) at cljs.analyzer$error.invokeStatic(analyzer.cljc:697) at cljs.analyzer$error.invoke(analyzer.cljc:693) at cljs.analyzer$error.invokeStatic(analyzer.cljc:695) at cljs.analyzer$error.invoke(analyzer.cljc:693) at cljs.analyzer$analyze_deps.invokeStatic(analyzer.cljc:2131) at cljs.analyzer$analyze_deps.invoke(analyzer.cljc:2105) at cljs.analyzer$ns_side_effects.invokeStatic(analyzer.cljc:3478) at cljs.analyzer$ns_side_effects.invoke(analyzer.cljc:3473) ...If you try at the first REPL prompt it requires it correctly so the problem manifests itself on in the socket REPL.