This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-03-05
Channels
- # aleph (90)
- # announcements (4)
- # aws (2)
- # beginners (61)
- # calva (2)
- # cljs-dev (8)
- # cljsrn (12)
- # clojars (4)
- # clojure (42)
- # clojure-europe (1)
- # clojure-finland (1)
- # clojure-greece (2)
- # clojure-houston (1)
- # clojure-italy (3)
- # clojure-nl (30)
- # clojure-spec (41)
- # clojure-uk (87)
- # clojurescript (44)
- # cursive (12)
- # data-science (11)
- # datomic (24)
- # defnpodcast (1)
- # fulcro (18)
- # hyperfiddle (1)
- # jobs (2)
- # juxt (11)
- # kaocha (3)
- # london-clojurians (5)
- # mount (2)
- # nrepl (2)
- # off-topic (9)
- # onyx (25)
- # other-languages (1)
- # parinfer (3)
- # pathom (5)
- # pedestal (3)
- # portkey (1)
- # re-frame (21)
- # reagent (24)
- # remote-jobs (7)
- # schema (2)
- # shadow-cljs (59)
- # spacemacs (5)
- # specter (7)
- # sql (9)
- # tools-deps (13)
Hi, I'm using Edge and would like to add spec instrumentation into my (go)
function, where can I hook in? Any pointers much appreciated
This function is defined in lib.app.dev/src/dev_extras.clj
. You can probably just alter it directly, or require your own namespace instead of dev
and create your own version of go
that calls the original one.
@conan not everyone will call (go)
so I would guess that's the wrong place to do that. cider users & vim users will pretty much only call (reset)
, or these days suspend
and resume
.
It may be perceived as if reset
is deprecated. But among all these functions, only reset
actually calls repl/refresh
.
@U2FRKM4TW correct. But in emacs and vim (probably calva too) cider refresh can be used directly with suspend and resume. As of a week ago, projects are automatically configured that way in edge, so the cider-refresh binding is the easiest way for emacs users now. That is, vim, emacs and maybe vscode users never call repl/refresh.
on top of that, you want to make sure this is only run once (go is idempotent and can be called multiple times). Don't have a good answer for you, but I think that's because that's how spec is supposed to work (based on Halloway's talks where he shared his flow).