This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-30
Channels
- # adventofcode (95)
- # announcements (17)
- # babashka (28)
- # beginners (107)
- # calva (34)
- # clj-kondo (7)
- # cljs-dev (20)
- # cljsrn (1)
- # clojure (95)
- # clojure-europe (41)
- # clojure-italy (3)
- # clojure-nl (5)
- # clojure-spec (7)
- # clojure-uk (4)
- # clojurescript (77)
- # cursive (7)
- # data-science (1)
- # datalog (4)
- # datomic (12)
- # events (3)
- # fulcro (32)
- # graalvm (2)
- # hugsql (19)
- # introduce-yourself (4)
- # jobs (2)
- # lsp (20)
- # membrane-term (19)
- # numerical-computing (1)
- # off-topic (8)
- # pathom (3)
- # polylith (17)
- # portal (42)
- # re-frame (7)
- # reagent (32)
- # remote-jobs (1)
- # shadow-cljs (86)
- # spacemacs (3)
- # tools-deps (52)
- # uncomplicate (1)
- # xtdb (23)
Is there a way to find the "last reference" for a var? That would be amazing im so tired of looking through repackaging code.
even so, https://github.com/clojure-lsp/clojure-lsp/blob/master/src/clojure_lsp/queries.clj#L108
I mean, i want to see where a var finaly bottoms out
(defn zoo [x] x**)
(defn bar [x] (zoo x)
(defn foo [x*] (bar x)
With my cursor on '**'*
*`i want to go to "*" or see a list of those places.`
it got formatted
(defn zoo [x] x)
(defn bar [x] (zoo x))
(defn foo [x|] (bar x))
on |
, that x
is not related with the x
on zoo
right?foo just passes the var to zoo
is not easy though, we would need to check every reference to x
that is passed to a function
Yea. I haven't given this any thought 🙂 . I'm just tired of walking a tree of code just to find out where it ends up being realized.
usually as part of a side effect
showing on the dom, being sent to another API, etc...
The best way to solve this is to not keep pulling vars out of maps and repackaging them. and have unique keys for information.