Skip to content

Conversation

@ikappaki
Copy link
Contributor

Hi,

could you please review fix for a test recently introduced with #3275 that appears to have been broken with 4004862.

Traceback (most recent call last):
  cider-connect-sibling-cljs((:cljs-repl-type native-cljs) #<buffer *nrepl-server ~/project:localhost*<2>>)
  cider-nrepl-connect((:cljs-repl-type native-cljs :host "localhost" :port 37791 :project-dir "/root/project/" :server #<process nrepl-server> :server-command "\"emacs\" -Q --batch --eval \"(progn  (setf package-user-dir       \\\"/root/project/.eldev/26.3/packages\\\"       load-path              user-emacs-directory       \\\"/root/project/.eldev/26.3/emacs-dir/\\\"  ) (package-initialize))\" -l test/nrepl-server-mock.el -f nrepl-server-mock-start" :cider-repl-cljs-upgrade-pending nil :session-name nil :repl-type cljs))
  nrepl-start-client-process("localhost" 37791 #<process nrepl-server> #[257 "\301\300!\207" [(:cljs-repl-type native-cljs :host "localhost" :port 37791 :project-dir "/root/project/" :server #<process nrepl-server> :server-command "\"emacs\" -Q --batch --eval \"(progn  (setf package-user-dir       \\\"/root/project/.eldev/26.3/packages\\\"       load-path         (package-initialize))\" -l test/nrepl-server-mock.el -f nrepl-server-mock-start" :cider-repl-cljs-upgrade-pending nil :session-name nil :repl-type cljs))
  y-or-n-p("A dead REPL *cider-repl ~/project:localhost:45251(cljs)* exists.  Reuse? ")
  read-string("A dead REPL *cider-repl ~/project:localhost:45251(cljs)* exists.  Reuse? (y or n) ")
error: (error "Error reading from stdin")```

A temp repl buffer is used so that is closed automatically, and the tests have been reduced to those that use cider-register-cljs-repl-type, since the nbb and shadow are covered by the corresponding integration tests.

Thanks

Replace this placeholder text with a summary of the changes in your PR.
The more detailed you are, the better.


Before submitting the PR make sure the following things have been done (and denote this
by checking the relevant checkboxes):

  • The commits are consistent with our contribution guidelines
  • You've added tests (if possible) to cover your change(s)
  • All tests are passing (eldev test)
  • All code passes the linter (eldev lint) which is based on elisp-lint and includes
  • You've updated the changelog (if adding/changing user-visible functionality)
  • You've updated the user manual (if adding/changing user-visible functionality)

Thanks!

If you're just starting out to hack on CIDER you might find this section of its
manual
extremely useful.

It solves an issue with recycled buffers on master.

It also reduces tests to the `cider-register-repl-type` cases. The
shadow and nbb tests have been removed since they are covered by the
corresponding integration tests.
@bbatsov bbatsov merged commit 3c73886 into clojure-emacs:master Dec 20, 2022
@bbatsov
Copy link
Member

bbatsov commented Dec 20, 2022

I'm still puzzled how this test was working before, but I appreciate the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants