Skip to content

Eval'ing (keyword "\"|") gives "Search failed" error #1971

@brianfay

Description

@brianfay

Expected behavior

When evaluating (keyword "\"|"), the keyword :"| should be displayed in the minibuffer.

Actual behavior

When evaluating (keyword "\"|"), the minibuffer displays a regex error:

error in process filter: Search failed: "\\(\\s-\\|^\\|#\\|(\\|\\[\\|{\\)\\(\"\\)"

Steps to reproduce the problem

Evaluate

(keyword "\"|")

using cider-eval-last-sexp or a similar command.

Alternatively, evaluate

(def k (keyword "\"|"))

and try evaluating k.

Environment & Version information

Using the clojure configuration layer in spacemacs

CIDER version information

;; CIDER 0.15.0snapshot (package: 20170322.155), nREPL 0.2.12
;; Clojure 1.8.0, Java 1.8.0_101

Lein/Boot version

Lein 2.6.1

Emacs version

Gnu Emacs 24.5.1

Operating system

OS X Sierra

Other notes

xiongtx on Slack brought up a good point that " and | are technically not considered valid characters for clojure keywords and symbols, even though they generally work in practice.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions