-
Notifications
You must be signed in to change notification settings - Fork 177
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
Having issues with cider-nrepl 0.11.0-snapshot + boot + cljs-repl #301
Comments
Is that on a Clojure, ClojureScript, or ClojureC file? |
C-x C-e is on a cljs file. I am free to work all of cider's magic before calling |
Also, I seem to again have the same errors with cider-nrepl 10.2.0 . I know I had it working for a few hours (I have been working in cljs for the last few), but somehow it has stopped working again upon reboot... 😞 |
@samedhi When you run The issue here seems to be that you get this message in I'll check if there's anything wrong with the logic. But the message you're getting wasn't even implemented in version |
Sorry, yes, I put it back to 0.11.0-snapshot, as that seemed to be a false start.
|
Just to start things off, here is the task I am trying to run (deftask development
"Launch Immediate Feedback Development Environment"
[]
(comp
(serve :reload true)
(reload)
(watch)
(cljs-repl)
(cljs)
(target :dir #{"target"}))) here is my profile.boot (require 'boot.repl)
(swap! boot.repl/*default-dependencies*
concat '[[refactor-nrepl "2.2.0-SNAPSHOT"]
[cider/cider-nrepl "0.11.0-SNAPSHOT"]
[org.clojure/tools.nrepl "0.2.12" :scope "test"]])
(swap! boot.repl/*default-middleware*
concat
'[[cider.nrepl/cider-middleware]
[refactor-nrepl.middleware/wrap-refactor]]) |
Don't you need clojurescript as a dependency somewhere? |
Full build.boot (set-env!
:source-paths #{"src"}
:resource-paths #{"html"}
:dependencies '[[adzerk/boot-cljs "1.7.228-1"]
[adzerk/boot-reload "0.4.5"]
[adzerk/boot-test "1.1.0"]
[adzerk/boot-cljs-repl "0.3.0"]
[binaryage/devtools "0.5.2"]
[cljsjs/media-stream-recorder "1.2.6-0"]
[compojure "1.4.0"]
[com.cemerick/piggieback "0.2.1"]
[datascript "0.15.0"]
[hiccup "1.0.5"]
[http-kit "2.1.18"]
[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.7.228"]
[org.clojure/core.async "0.2.374"]
[org.clojure/test.check "0.9.0"]
[org.clojure/tools.nrepl "0.2.12"]
[org.omcljs/om "1.0.0-alpha23"]
[pandeiro/boot-http "0.7.2"]
[ring "1.4.0-RC2"]
[weasel "0.7.0"]])
(require '[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-cljs-repl :refer [cljs-repl start-repl]]
'[adzerk.boot-reload :refer [reload]]
'[adzerk.boot-test :refer [test]]
'[pandeiro.boot-http :refer [serve]])
(task-options!
serve {:handler 'vidioting.server/handler
:httpkit true
:port 8080
:resource-root "target"})
(deftask autotest
"Runs test automatically on file change"
[]
(comp
(test)
(speak)
(watch)))
(deftask development
"Launch Immediate Feedback Development Environment"
[]
(comp
(serve :reload true)
(reload)
(watch)
(cljs-repl)
(cljs)
(target :dir #{"target"})))
(deftask build
"Builds cljs and code for production"
[]
(comp
(cljs :optimizations :advanced)
(target :dir #{"target"})))
(deftask production
"Runs server in production mode"
[]
(comp
(serve :reload false)
(wait))) |
Hi there. I'm trying to reproduce the problem, but I can't get a repl going (even without CIDER). Do you know what I might be doing wrong?
|
Shoot, yeah, I had I don't think that is the issue though. |
Yeah, I still have the issue. Maybe weasel hassome external dependency? |
https://github.com/samedhi/cljsreplerror This is a project where the error occurs for me. |
I confirm that the error occurs for me in |
Oh I forgot to say that I am using either |
When playing with re-natal, I can't use C-x C-e to send latest sexp to figwheel, cider will show something like: user-error: `cider-eval-last-sexp' needs a Clojure REPL. If you don't know what that means, you probably need to jack-in (`C-c M-j’). After comment out my mode-alist setting in .emacs, this issue gone. version: CIDER 0.12.0snapshot (package: 20160306.1636) [cider/cider-nrepl "0.12.0-SNAPSHOT"] related issue: overtone/emacs-live#228 clojure-emacs/cider-nrepl#301 Signed-off-by: Yen-Chin Lee <[email protected]>
I also encounter this issue when playing I think this issue is related to overtone/emacs-live#228 , after comment out my auto-mode-alist setting for clj/cljs, this issue has gone. Here's my quick fix: coldnew/coldnew-emacs@d490a26 Currently my .emacs setting doesn't has this issue after comment out auto-mode-alist setting. Version info : |
@coldnew you are right, EDIT: sorry I see you have already solved it ;) |
I rebuilt after reading this. The following workflow is fine now BASH: boot development ;; starts boot development task THAAAANK YOU! I will let anyone else close it, but it has been resolved for me. |
Since clojure-mode already setup auto-mode-alist, we should set it on-our-own, also note that setting this will cause cider connect nrepl failed on cljs file. see: clojure-emacs/cider-nrepl#301 Signed-off-by: Yen-Chin Lee <[email protected]>
I am using boot, I can correctly
cider-connect
to my boot repl. I can also start up a cljs repl by typing(start-repl)
within cider-repl. I can confirm that this does work because I can see the results of the following:However, I can’t do any actual cider commands.
C-x C-e
for instance returnsTherefore I have downgraded cider-nrepl from
[cider/cider-nrepl “0.11.0-snapshot”]
to[cider/cider-nrepl "0.10.2”]
. The cljs repl now seem to work again, though naturally I am now gettingCIDER's version (0.11.0-snapshot) does not match cider-nrepl's version (0.10.2). Things will break!
The text was updated successfully, but these errors were encountered: