-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"No such namespace" for ns from foreign-libs libs when eval ns-form at repl #49
Comments
Same issue for me. Additional info: When |
I have the same problem. |
I switched to Neovim. :P |
We eventually figured this out. This problem occurs when To fix this you need to be on If you're using the right version you can pass the options into (require
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-cljs-repl :refer [cljs-repl] :as boot-cljs-repl]
'[clojure.edn]
,,,)
(defn read-edn-file
"Slurp and parse an EDN file"
[path]
(-> path slurp clojure.edn/read-string))
(defn start-repl
"Start a browser connected REPL (Weasel). Like boot-cljs-repl/start-repl but
passes on the compiler options from the given .cljs.edn file."
[]
(boot-cljs-repl/start-repl :cljs-repl-opts
(:compiler-options (read-edn-file "path/to/build.cljs.edn")))) |
Expected behavior
=> nil
Actual behavior
Steps to reproduce the problem
boot dev
cider-connect
to nrepl created by boot orboot repl -c
(start-repl)
Switch to source buffer, C-c-v-n to eval namespace declaration
or
pass namespace declaration to repl.
Project compiles fine with no errors. This issue appears confined to the repl.
The namespaces
pm
andchrono
come from two javascript libs included via the foreign-libs compiler option - please see relevant parts of build-boot. If I remove the foreign-libs namespaces everything works as expected.ns form looks as follows:
build.boot contains:
Environment & Version information
CIDER version information
Lein/Boot version
;; BOOT_VERSION=2.6.0
Emacs version
GNU Emacs 25.1.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-08-23
Operating system
Ubuntu 16.04
The text was updated successfully, but these errors were encountered: