Skip to content

cider-repl-clear-buffer stops working #1252

@dagda1

Description

@dagda1

My projects.clj looks like this:

{:user {
        :dependencies [[com.cemerick/piggieback "0.2.1"]
                       [org.clojure/tools.nrepl "0.2.10"]]
        :plugins [[cider/cider-nrepl "0.10.0-SNAPSHOT"]]
        }}

I'm pretty new to clojure and cider but when I have the code in one window and cider-repl running in the other, it is nice to be able to clear the repl buffer with C-c M-o but C-c M-o stops working after I have executed it once and the buffer has been cleared.

If I select cider-repl-clear-buffer from M-x I can see the error message:

Wrong type argument: integer-or-marker-p nil

The following stack trace in the *Messages* buffer

Loading /Users/paulcowan/projects/scratch/src/scratch/core.clj...
=> nil
Loading /Users/paulcowan/projects/scratch/src/scratch/core.clj...
=> nil
Quit
call-interactively: Wrong type argument: integer-or-marker-p, nil
user-error: Minibuffer window is not active
call-interactively: Wrong type argument: integer-or-marker-p, nil
Auto-saving...done
call-interactively: Wrong type argument: integer-or-marker-p, nilInvalid face attribute :foreground nil
Invalid face attribute :foreground nil [117 times]

So all I do is

  1. cider-jack-in
  2. Write some code and C-c C-k to execute it.
  3. C-c M-o and the buffer clears
  4. Write some code and C-c C-k to execute it.
  5. hit C-c M-o again and cider-repl-clear-buffer no longer works.

If nobody else is experiencing this error, I wonder if my workflow of using C-c C-k is normal?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions