Skip to content

cider-format-buffer can delete whole buffer's contents on invalid Clojure syntax #2102

@vemv

Description

@vemv

Given the following clojure buffer with a dangling parens (doesn't matter if it has a ns form):

"Precious content"

(

if I run (cider-format-buffer), the whole buffer's contents will disappear.

Issue is easy to cleanly reproduce; GH template seems excessive in this case.

Using:

cider-20171001.112
clj-refactor-20170720.712
clojure-mode-20170819.2159
paredit-20170405.1149

Cheers - Victor

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