This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-25
Channels
- # aleph (6)
- # beginners (6)
- # boot (94)
- # cider (34)
- # cljs-dev (36)
- # cljsrn (12)
- # clojure (124)
- # clojure-dev (41)
- # clojure-dusseldorf (6)
- # clojure-italy (3)
- # clojure-norway (1)
- # clojure-russia (161)
- # clojure-sg (7)
- # clojure-spec (71)
- # clojure-uk (95)
- # clojurescript (38)
- # core-async (16)
- # cursive (14)
- # data-science (1)
- # datascript (12)
- # datomic (15)
- # emacs (22)
- # funcool (2)
- # hoplon (15)
- # jobs-rus (2)
- # juxt (9)
- # liberator (7)
- # lumo (1)
- # off-topic (136)
- # onyx (24)
- # pedestal (39)
- # perun (2)
- # planck (20)
- # re-frame (23)
- # spacemacs (31)
- # unrepl (5)
- # untangled (1)
- # vim (1)
- # yada (29)
Hi! I'm having trouble with vase — I want to retract attribute's value in entity, and can't find a way to do it: vase/transact
either retracts entity fully, or asserts new facts about entity. How can I retract only one attribute/value?
@vlaaad check out https://github.com/cognitect-labs/vase/blob/master/docs/action_literals.md#vasetransact
@ddeaguiar yeah, been there, with no results
hrm. It may require the creation of an interceptor. Unfortunately I can’t dig into this atm 😞
I spent hours trying to figure out why my pedestal router can't pickup newly modified "master-routes" when running in the repl 😞 I pass this to pedestal.service/service ... ::http/routes #(deref #'routes/master-routes)
when I (run-dev) in repl it starts jetty server and everything works, when I modify master-routes to let's say add a route it never works until I kill cider and restart run-dev even too my master-routes def has changed
I don't get it. when I (deref #'routes/master-routes) I can see my changes, why is it pedestal router can't pick them up ?
If you’re working on an app created from the pedestal-service
lein template, you need to reload the service
namespace
It doesn't seem to be doing anything since the (run-dev) fn is already called and my router is setup to deref the master-routes var each lookup so I really don't get it 😞
yes it does work, I see cider re-eval the buffer and I did that for service, server and routes namespaces
All this time I wonder what was wrong, I tried a few time before trying out cider refresh but I must've been doing something wrong...
Ok thanks for the hint, I wanted to avoid it too if I could but I figure I'd give it a try when I failed to reload code without it not sure why, I guess I just need more cider/repl practice 🙂
not sure what it’s doing different under the covers but I prefer invoking clojure.tools.namespace.repl
refresh
and refresh-all
directly in a repl
last I looked into this I couldn’t spot the difference but I definitely observed different behavior
I also don’t refresh as much as I used to. I focus on reloading the namespace I’m in
Yeah its probably something to do with it reloading lots of namespace at once, I just tried re-enabling cider-refresh and doing the cider-refresh in emacs and I confirm that it doesn't work...