We're updating the issue view to help you get more done. 

Require fail on ns/in-ns created namespaces

Description

Just to report that the following does not work at the repl (in Clojure it does):

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 (ns first.namespace) (def a 4) (ns second.es) (require 'first.namespace) ;; with :reload is the same java.lang.IllegalArgumentException: Namespace first.namespace does not exist at cljs.closure$source_for_namespace.invoke(closure.clj:605) at cljs.repl$load_namespace.invoke(repl.cljc:182) at cljs.repl$load_dependencies.invoke(repl.cljc:206) at cljs.repl$evaluate_form.invoke(repl.cljc:474) at cljs.repl$fn__4470$self__4482.invoke(repl.cljc:673) at clojure.lang.AFn.applyToHelper(AFn.java:165) at clojure.lang.AFn.applyTo(AFn.java:144) at clojure.core$apply.invoke(core.clj:630) at cljs.repl$wrap_self$g__4450.invoke(repl.cljc:630) at cljs.repl$repl_STAR_$read_eval_print__4536.invoke(repl.cljc:854) at cljs.repl$repl_STAR_$fn__4542$fn__4551.invoke(repl.cljc:895) at cljs.repl$repl_STAR_$fn__4542.invoke(repl.cljc:894) at cljs.compiler$with_core_cljs.invoke(compiler.cljc:1146) at cljs.repl$repl_STAR_.invoke(repl.cljc:858) at cljs.repl$repl.doInvoke(repl.cljc:976) at clojure.lang.RestFn.invoke(RestFn.java:410) at cljsbuild.repl.rhino$run_repl_rhino.invoke(rhino.clj:8) at user$eval4946.invoke(form-init5490341798700416710.clj:1) at clojure.lang.Compiler.eval(Compiler.java:6782) at clojure.lang.Compiler.eval(Compiler.java:6772) at clojure.lang.Compiler.load(Compiler.java:7227) at clojure.lang.Compiler.loadFile(Compiler.java:7165) at clojure.main$load_script.invoke(main.clj:275) at clojure.main$init_opt.invoke(main.clj:280) at clojure.main$initialize.invoke(main.clj:308) at clojure.main$null_opt.invoke(main.clj:343) at clojure.main$main.doInvoke(main.clj:421) at clojure.lang.RestFn.invoke(RestFn.java:421) at clojure.lang.Var.invoke(Var.java:383) at clojure.lang.AFn.applyToHelper(AFn.java:156) at clojure.lang.Var.applyTo(Var.java:700) at clojure.main.main(main.java:37)

I am available for investigating more and/or taking charge of the issue.

Environment

3.13.0-65 x86_64 GNU/Linux

Status

Assignee

Unassigned

Reporter

Andrea Richiardi

Labels

None

Approval

None

Patch

None

Affects versions

1.7.145

Priority

Minor