Skip to content

Cannot re-connect after repl quits unexpectedly #1482

@pesterhazy

Description

@pesterhazy

Thanks for the awesome project! In recent versions of CIDER, I have to restart Emacs to connect to an nrepl after the previous lein process died.

STR

  1. lein repl
  2. cider-connect
  3. In the repl terminal window, ^D
    nREPL: Connection closed unexpectedly (connection broken by remote peer)
  4. re-start the repl
  5. cider-connect
  6. Re-use zombie REPL buffers? Yes

Expected result

I can re-evaluate the buffer

Actual result

I see a beach ball (on OSX) and Emacs becomes unresponsive. Evaluating the buffer doesn't work.

*Messages* shows nrepl-send-sync-request: Sync nREPL request timed out (op clone id 2)

System

; CIDER 0.11.0snapshot (package: 20151220.156) (Java 1.8.0_51, Clojure 1.5.1, nREPL 0.2.10)

In this test I'm using leiningen with an ancient version of Clojure, but the same problem exists with boot and Clojure 1.7.

Not that I'm not using cider-nrepl-middleware because it slows down startup of a largish projects by many seconds.

In tests the problem doesn't occur if I cider-quit before exiting the external lein repl (but you sometimes don't have that luxury).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions