Clojure Spec definitions defined in CLJC files do not work with "Navigate to Declaration" or "Find Usages" in CLJ and CLJS files.
Steps to reproduce:
- Create
specs.cljc
(ns specs
(:require [clojure.spec.alpha :as s]))
(s/def ::name string?)
(def the-best-person
{::name "Jane"})
- Create
example.clj
(ns example
(:require [specs :as specs]))
(def people
[{::specs/name "John"}
{::specs/name "Jane"}])
- From
example.clj navigating to the ::specs/name declaration doesn't work. Viewing the usage only shows the two usages in the example namespace.

- From
specs.cljc file, navigating to the ::name declaration works, but finding usages only shows the usage in the CLJC file, not the two in example.clj.

-
Convert specs.cljc to CLJ.
-
"Navigate to Declaration" and "Find Usages" work properly.


Clojure Spec definitions defined in CLJC files do not work with "Navigate to Declaration" or "Find Usages" in CLJ and CLJS files.
Steps to reproduce:
specs.cljcexample.cljexample.cljnavigating to the::specs/namedeclaration doesn't work. Viewing the usage only shows the two usages in theexamplenamespace.specs.cljcfile, navigating to the::namedeclaration works, but finding usages only shows the usage in the CLJC file, not the two inexample.clj.Convert
specs.cljcto CLJ."Navigate to Declaration" and "Find Usages" work properly.