-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
cider-jack-in broken repl with latest from elpa #2092
Comments
Do you set your own cider middleware stack somewhere? |
No |
Most likely a consequence of concurrent namespace loading in clojure. More details in #2078. There is no imediate fix for that, sorry. |
Maybe revert #2078 while a fix is being made, since it renders Cider unusable? |
I have a clean .lein/profile.clj and just the clojure layer enabled in spacemacs I did an update this morning and I can't use cider now 😓 |
#2078 is not a culprit, it's an attempt to solve the problem. Try the following for time being: (defun cider--connected-handler ()
(let ((cider-enlighten-mode nil))
(cider-make-connection-default (current-buffer))
(cider-repl-init (current-buffer))
(cider--check-required-nrepl-version)
(cider--check-clojure-version-supported)
(cider--check-middleware-compatibility)
(cider--subscribe-repl-to-server-out)
(when cider-auto-mode
(cider-enable-on-existing-clojure-buffers))
(sleep-for 0.1) ;; <-- Increase timeout till it works
(cider--debug-init-connection)
(run-hooks 'cider-connected-hook))) Does the manual sleep-for before debug init solve the problem? If you comment |
Function as provided above: works
works |
Ok. Then let's add the temporary delay in the master till I figure out how to fix this properly. Just to check that nothing went wrong with your CIDER install, when removing (sleep-for 0.1), does it work? It would be the same code as in the current master. |
Both removing sleep and cider-debug-init-connection worked for me. |
That means something went wrong with your CIDER installation. Removing sleep-for from the above results in the current CIDER's code in the master. |
So, the thing is
breaks but
does not break. Sorry about not testing/being clear on this distinction. |
clojure-emacs/cider-nrepl#444 should be fixing this. I cannot reproduce the problem on my machine whatever I try, so I will have to rely on you to confirm that the "lock" fix has indeed worked. |
had the same yesterday. had to downgrade back to latest stable. is the fix on clojars? |
Not yet. |
Anyways, more people are welcome to take a look at the relevant PR and provide feedback before we merge it. |
Please test the proposed fix:
I cannot come with a small reproducible example to report it on JIRA, but I am fairly confident that it has something to do with the concurrent loading of transitive dependencies. |
tried but failed to test it due to a corporate firewall :/ |
@vspinu new cider-nrepl fixed my issue. |
This works with
|
That's likely a different issue. You need to update your plugin version on the server side ( |
Expected behavior
M-x cider-jack-in
and eval anything such as (+ 2 2) repl should output 4Actual behavior
Steps to reproduce the problem
lein new tstprjclj
open the generated
project.clj
eval
(+ 2 2)
in the replM-x cider-jack-in
This is extremely important! Providing us with a reliable way to reproduce
a problem will expedite its solution.
Environment & Version information
OSX
CIDER version information
Lein/Boot version
Leiningen 2.7.1 on Java 1.8.0_40 Java HotSpot(TM) 64-Bit Server VM
Emacs version
GNU Emacs 25.2.1 (x86_64-apple-darwin16.6.0, Carbon Version 157 AppKit 1504.83) of 2017-07-25
Operating system
OSX Sierra 10.12.6
The text was updated successfully, but these errors were encountered: