-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
Broken: cider-eval-defun-at-point needs a Clojure REPL #1611
Comments
What is the value of |
Steps, hopefully right: open |
@Malabarba By eye bisecting, and then trying, I found that the culprit is 9672dfa |
Just to be sure. You did choose the ClojureScript repl, right?
Then this is the bug, and it's probably on the Clojure side. The commit you found helped exposed the bug, but didn't cause it. You should have a couple of |
I had chosen the wrong one, I now checked and it is a Here is
|
Same issue for me. |
How many times can we break this? :-) |
The evidence that's been presented so far seems to indicate there's a problem in Does anyone have simple steps for this? |
|
Oh. Could be something in your setup. Try with If it turns out to be from your setup, this kind of thing is a little annoying to debug. The best I can think of would be to look through the |
Yes, it's a bug in my setup. Pretty sure it is also the case for @arichiardi . |
What was the bug in your setup? |
It can be, I am using emacs live and they might be behind in initializing variables. What did you do @alexander-yakushev? |
I had custom mode-alist in my |
That's probably the same in emacs live, i guess |
Thanks @Malabarba, while I am going to fix this now, I will check that your warning works 👯 |
I confirm the warning works like a charm, I see it in the Messages buffer. I am now going to fix this. |
OK, so I guess we can close this. Teamwork for the win! :-) |
Yes I confirm this works and I patched my emacs-live in order to remove this. |
I know this issue is closed, but I'll just put the following up here for future reference; For me this problem consistently shows up in the latest version of Cider (20160612.1230) if clj-refactor is installed. It worked fine in the previous version (I guess before the workaround in e2f9ffd), but I have struggled with this problem in earlier versions. I am using Spacemacs where clj-refactor is part of the Clojure layer, but I was able to reproduce the problem starting with an empty .emacs.d after installing Cider and clj-refactor only. Deleting clj-refactor from the elpa/ directory fixes the problem. This is using Emacs 24.5.1 on Ubuntu 16.04 |
I've deployed a possible fix for this. Let me know if it works for you (make sure lein fetches today's snapshot). |
Yes. That fixed it! Thank you. |
Expected behavior
It should evaluate forms from
cljs
files to cljs repl withcider-eval-defun-at-point
Actual behavior
The form is not evaluated with message:
Steps to reproduce the problem
In
replumb
, I can provide a branch,lein repl
then connect or jack-in then start a Cljs repl with either:Same thing with
cider-jack-in-clojurescript
, of course targeting the cljs repl.Environment & Version information
CIDER version information
Emacs version
24.5
Operating system
Ubuntu Linux
Maybe related: clojure-emacs/cider-nrepl#301
The text was updated successfully, but these errors were encountered: