Skip to content

Find definition doesn't work on cljs macros that definition comes from clj/cljc files #980

@ericdallo

Description

@ericdallo

https://clojurians.slack.com/archives/CPABC1H61/p1652531342831589

Repro : Try to find definition of reagent/with-let here

It seems related with clj-kondo not returning a var-definition for that macro on the reagent.core cljs ns which probably makes sense since the macro exists only on JVM side.

We could:

  • make clj-kondo return any info that would say that macro is defined on other ns
  • make clojure-lsp try to find the definition on JVM file (the reagent.core clj ns)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingeditorRelated to clojure-lsp on a text editor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions