This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-02
Channels
- # beginners (118)
- # boot (73)
- # cider (2)
- # cljs-dev (65)
- # cljsrn (18)
- # clojure (49)
- # clojure-argentina (4)
- # clojure-italy (19)
- # clojure-portugal (1)
- # clojure-russia (1)
- # clojure-spec (34)
- # clojure-uk (102)
- # clojurescript (202)
- # code-reviews (3)
- # core-async (5)
- # cursive (11)
- # datomic (25)
- # emacs (1)
- # graphql (22)
- # hoplon (6)
- # keechma (59)
- # leiningen (10)
- # luminus (31)
- # lumo (78)
- # off-topic (141)
- # om (32)
- # om-next (2)
- # onyx (6)
- # parinfer (55)
- # pedestal (3)
- # protorepl (3)
- # re-frame (8)
- # reagent (8)
- # ring-swagger (1)
- # rum (20)
- # specter (1)
- # sql (5)
- # test-check (11)
- # vim (13)
- # yada (7)
@cfleming I'm trying to find a way to automatically have (s/instrument)
to run when I change my files, so in dev time I have the functions always instrumented, ideas?
@wilkerlucio: To have all functions always instrumented during development see: https://stackoverflow.com/questions/45501284/how-to-turn-on-cljs-spec/45503246#45503246
@U0D5RN0S1 thanks, that's a cool trick 🙂 what I have done is change my "Load current file on REPL..." keymap, now instead I'm using a REPL command that runs (s/instrument)
and load the current file, so now every time I reload a file I get the instrumentation 🙂
@wilkerlucio Hmm, I can’t think of a better way to do that than an explicit REPL command.
@cfleming I'm wondering if there is something I can hook up at REPL level, do you know if there is any trigger for file loaded there that I could hook on?
@wilkerlucio The thing is, you’ll have to run an action of some sort anyway to load your code in the REPL, right?
humm, I guess you right, the only issue is see here is that my need for (s/instrument)
is project dependent, so can be a bit annoying to keep changing the keymap,
but maybe I can just make the command safe to run when spec is not available, I'll give a shot, thanks for the suggestion 🙂