ClojureScript

Require fail on ns/in-ns created namespaces

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.7.145
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Environment:
    3.13.0-65 x86_64 GNU/Linux

Description

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

(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.

Activity

David Nolen made changes -
Field Original Value New Value
Priority Major [ 3 ] Minor [ 4 ]
David Nolen made changes -
Description Just to report that the following does not work at the repl (in Clojure it does):

```
(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.
Just to report that the following does not work at the repl (in Clojure it does):

{code}
(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)
{code}

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

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated: