Whats your first thought as to why cider-jack-in-clj&cljs would result in "No namespace: cider.piggieback found"? (this worked yesterday on this same project, so i suspect i did something...) Mine was: isn't the jack in command supposed to include that? The answer seems to be "yes". > If cider-inject-dependencies-at-jack-in is enabled, which it is by default, then piggieback will be automatically added and configured for your project when doing cider-jack-in-cljs. ~ https://docs.cider.mx/cider/cljs/up_and_running.html I'm still investigating this, but it seems like work is calling, so i have to switch gears. When I figure it out i'll report back! Here is the longer error report and ... it didn't give me any further ideas.
{:clojure.main/message
"Execution error at nrepl.cmdline/require-and-resolve (cmdline.clj:221).\nNo namespace: cider.piggieback found\n",
:clojure.main/triage
{:clojure.error/class java.lang.Exception,
:clojure.error/line 221,
:clojure.error/cause "No namespace: cider.piggieback found",
:clojure.error/symbol nrepl.cmdline/require-and-resolve,
:clojure.error/source "cmdline.clj",
:clojure.error/phase :execution},
:clojure.main/trace
{:via
[{:type java.lang.Exception,
:message "No namespace: cider.piggieback found",
:at [clojure.core$the_ns invokeStatic "core.clj" 4163]}],
:trace
[[clojure.core$the_ns invokeStatic "core.clj" 4163]
[clojure.core$ns_resolve invokeStatic "core.clj" 4370]
[clojure.core$ns_resolve invokeStatic "core.clj" 4360]
[clojure.core$ns_resolve invoke "core.clj" 4360]
[nrepl.cmdline$require_and_resolve invokeStatic "cmdline.clj" 221]
[nrepl.cmdline$require_and_resolve invoke "cmdline.clj" 211]
[nrepl.cmdline$fn__249 invokeStatic "cmdline.clj" 225]
[nrepl.cmdline$fn__249 invoke "cmdline.clj" 225]
[clojure.core$map$fn__5931$fn__5932 invoke "core.clj" 2759]
[clojure.core$map$fn__5931$fn__5932 invoke "core.clj" 2759]
[clojure.lang.PersistentVector reduce "PersistentVector.java" 343]
[clojure.core$transduce invokeStatic "core.clj" 6946]
[clojure.core$into invokeStatic "core.clj" 6962]
[clojure.core$into invoke "core.clj" 6950]
[nrepl.cmdline$__GT_mw_list invokeStatic "cmdline.clj" 252]
[nrepl.cmdline$__GT_mw_list invoke "cmdline.clj" 250]
[nrepl.cmdline$build_handler invokeStatic "cmdline.clj" 261]
[nrepl.cmdline$build_handler invoke "cmdline.clj" 254]
[nrepl.cmdline$options__GT_handler invokeStatic "cmdline.clj" 330]
[nrepl.cmdline$options__GT_handler invoke "cmdline.clj" 321]
[nrepl.cmdline$server_opts invokeStatic "cmdline.clj" 380]
[nrepl.cmdline$server_opts invoke "cmdline.clj" 367]
[nrepl.cmdline$dispatch_commands invokeStatic "cmdline.clj" 480]
[nrepl.cmdline$dispatch_commands invoke "cmdline.clj" 473]
[nrepl.cmdline$_main invokeStatic "cmdline.clj" 496]
[nrepl.cmdline$_main doInvoke "cmdline.clj" 491]
[clojure.lang.RestFn applyTo "RestFn.java" 137]
[clojure.lang.Var applyTo "Var.java" 705]
[clojure.core$apply invokeStatic "core.clj" 667]
[clojure.main$main_opt invokeStatic "main.clj" 514]
[clojure.main$main_opt invoke "main.clj" 510]
[clojure.main$main invokeStatic "main.clj" 664]
[clojure.main$main doInvoke "main.clj" 616]
[clojure.lang.RestFn applyTo "RestFn.java" 137]
[clojure.lang.Var applyTo "Var.java" 705]
[clojure.main main "main.java" 40]],
:cause "No namespace: cider.piggieback found"}}
Here is the emacs message log:
[nREPL] Starting server via /usr/local/bin/clojure -Sdeps \{\:deps\ \{nrepl/nrepl\ \{\:mvn/version\ \"1.3.1\"\}\ cider/cider-nrepl\ \{\:mvn/version\ \"0.53.2\"\}\ cider/piggieback\ \{\:mvn/version\ \"0.5.3\"\}\}\ \:aliases\ \{\:cider/nrepl\ \{\:main-opts\ \[\"-m\"\ \"nrepl.cmdline\"\ \"--middleware\"\ \"\[com.billpiel.sayid.nrepl-middleware/wrap-sayid\,cider.nrepl/cider-middleware\,cider.piggieback/wrap-cljs-repl\]\"\]\}\}\} -M:figwheel-lib:cider/nrepl
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: Downloading: cider/cider-nrepl/0.53.2/cider-nrepl-0.53.2.pom from clojars
Downloading: cider/orchard/0.31.1/orchard-0.31.1.pom from clojars
Downloading: cider/cider-nrepl/0.53.2/cider-nrepl-0.53.2.jar from clojars
Downloading: cider/orchard/0.31.1/orchard-0.31.1.jar from clojars
Execution error at nrepl.cmdline/require-and-resolve (cmdline.clj:221).
No namespace: cider.piggieback found
it's strange to me that it's trying to download stuff that should already be on my computer.
Also, i should probably ditch some of those debug tools, i never use them 😢
(i was really hoping slack was going to truncate this message somehow...)I'm not sure why it's not on the classpath by default, but I have the alias
:cider/nrepl {:extra-deps {nrepl/nrepl {:mvn/version "1.0.0"}
cider/cider-nrepl {:mvn/version "0.50.1"}
cider/piggieback {:mvn/version "0.6.0"}}
:main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware,cider.piggieback/wrap-cljs-repl]"]}
in my ~/.clojure/deps.edn file, which might make the problem go away? But I tend to start the repl outside emacs and connect to it, rather than jack in.