Skip to content

cider-current-ns can get confused by namespace metadata with newline #2100

Closed
@vemv

Description

@vemv

Given this Clojure ns declaration:

(ns ^{:doc "An awesome namespace"}
    my-ns
   ...)

When one places the cursor exactly in the my-ns line, (cider-current-ns) will return "^{:doc".

Both conditions must happen: newline after metadata, and cursor being in the my-ns line.

It works well in all other cases.

I'm using CIDER latest. This looks environment-independent and easy to reproduce, so kindly allow me to skip the issue template.

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