This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-05
Channels
- # all-the-channels (1)
- # announcements (3)
- # asami (13)
- # beginners (227)
- # calva (2)
- # chlorine-clover (8)
- # cider (7)
- # clj-kondo (4)
- # cljs-dev (21)
- # cljsrn (8)
- # clojure (64)
- # clojure-europe (39)
- # clojure-france (2)
- # clojure-italy (3)
- # clojure-losangeles (1)
- # clojure-nl (20)
- # clojure-uk (8)
- # clojurescript (24)
- # conjure (12)
- # datalog (9)
- # datomic (24)
- # emacs (8)
- # figwheel-main (1)
- # fulcro (15)
- # jobs-discuss (1)
- # malli (5)
- # meander (3)
- # off-topic (26)
- # re-frame (15)
- # reagent (10)
- # reitit (1)
- # reveal (1)
- # sci (15)
- # shadow-cljs (25)
- # spacemacs (7)
- # sql (3)
- # xtdb (1)
hi! quick question, is there a way to make go-to-definition
work in emacs for clojure specs?
[I use spacemacs] it used to work for me with cider-find-keyword
for things like ::specs/non-empty-string
but it doesn't work anymore.
I can still do press g d
(go-to-definition) and get a quick list of occurences of given symbol and usually quickly identity the place where it's defined
@andrzej.fricze using fully qualified spec names, e.g. :practicalli.banking/account-id
rather than ::account-id and with the REPL running, then cider-browse-spec
works well as well as the clj-find-var
function in Spacemacs Clojure layer (a wrapper function around cider-find-var). With the cursor on an auto-qualified spec form, ::account-id
these functions do not seem to work. If the repl is not running, the clj-find-var
function used dump-jump-go which doesn't seem to work for specs
https://github.com/syl20bnr/spacemacs/blob/develop/layers/%2Blang/clojure/funcs.el#L187-L195