Skip to content
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

cljr-refactor in Clojure layer breaks Cider ClojureScript REPL #6319

Closed
kthu opened this issue Jun 13, 2016 · 1 comment
Closed

cljr-refactor in Clojure layer breaks Cider ClojureScript REPL #6319

kthu opened this issue Jun 13, 2016 · 1 comment

Comments

@kthu
Copy link

kthu commented Jun 13, 2016

Description

If cljr-refactor is installed, Cider will get confused about the type of REPL it has spawned when doing [SPC m s I], causing it to connect to the Clojure REPL instead of the ClojureScript REPL.

This makes it impossible to eval stuff from the editor buffer. Evaling by typing directly into the ClojureScript REPL works fine, so the REPL itself is ok.

This problem has been showing up from time to time, and it seems to have been reintroduced with the latest Cider update (20160612.1230). The latest Cider contained a patch that was supposed to work around the problem: clojure-emacs/cider@e2f9ffd

Commenting out the clj-refactor related lines from layers/+lang/clojure/packages.el and deleting the clj-refactor package from the elpa directory fixes the problem. (Is there a cleaner way to do this?)

Reproduction guide

  • Start Emacs
  • Open a file from a cljs project
  • [SPC m s I]
  • Try to eval a form

Observed behaviour:
Cider complains:
The ClojureScript REPL seems to be is misbehaving. We have applied a workaround, but please also file a bug report with [cider-report-bug] Press any key to continue.

or

user-error: 'cider-eval-defun-at-point' needs a ClojureScript REPL. If you don't know what that means, you probably need to jack-in ('C-c M-j').

and the evaluation fails, trying to use the wrong REPL.

Expected behaviour:
Form should be evaluated

System Info

  • OS: gnu/linux
  • Emacs: 24.5.1
  • Spacemacs: 0.105.21
  • Spacemacs branch: master (rev. 0283f64)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(html auto-completion better-defaults emacs-lisp git markdown clojure javascript org syntax-checking version-control)
@kthu
Copy link
Author

kthu commented Jun 13, 2016

Fixed in cider-nrepl just now: clojure-emacs/cider#1611 (comment)

@kthu kthu closed this as completed Jun 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants