Skip to content

Warn the user if there's no way to eval a s-exp within cider-scratch buffer #3028

Open
@Ivanknmk

Description

@Ivanknmk

Disclaimer: I'm a noob and didn't know having a nREPL server running was a requirement to eval a sexp inside a cider scratchpad. Feel free to ignore if this isn't relevant or if it is emacs related.

Is your feature request related to a problem? Please describe.
I was trying to eval a sexp within a cider-scratch buffer but it didn't work. I checked the open buffers for erros, and saw nothing. Somehow, I discovered that I had to have a nREPL server running to be able to eval. This is probably a n00b fail but thought it wouldn't hurt to suggest a small tweak to it.

Describe the solution you'd like
Log a message, show a warning, warn the user somehow that a nREPL instance needs to be running as a requirement to be able to eval something inside a cider scratchpad.

Describe alternatives you've considered
None... I don't have enough knowledge to actually propose a concrete suggestion or fix.

Additional context
Nothing happens when SPC m e e is entered. Note: SPC m e e triggers cider-eval-last-sexp.

Screen Shot 2021-07-25 at 11 15 06

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