This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-23
Channels
- # adventofcode (92)
- # beginners (12)
- # boot (3)
- # boot-dev (38)
- # cider (9)
- # clara (26)
- # cljs-dev (26)
- # cljsrn (3)
- # clojars (3)
- # clojure (48)
- # clojure-france (6)
- # clojure-greece (2)
- # clojure-spec (3)
- # clojurescript (7)
- # datomic (3)
- # fulcro (6)
- # hoplon (19)
- # jobs-discuss (1)
- # leiningen (4)
- # lumo (9)
- # off-topic (8)
- # onyx (43)
- # planck (10)
- # powderkeg (4)
- # precept (44)
- # re-frame (4)
- # shadow-cljs (4)
- # sql (13)
- # uncomplicate (1)
- # unrepl (3)
first i tried in a toy project of mine...but i run into problems with the session macro when reloading with figwheel ... it looks like it doesn't keep the fully qualified var names for my schemas... instead using locally qualified names
Ok. Do you have a snippet of the code that seems to be the problem or a description of the error?
No I spoke too soon 🙂
see this code is in ss.precept.rules ns, and i get errors saying that ss.precept.rules/db-schema doesn't exist
but there i see you are cheating ! there is no reloading due to ns ^:figwheel-no-load todomvc.app
Thanks haha. Hopefully if I’m thinking of the same warnings you’re seeing they’re coming from Clara
anyways i've been looking at clara issues, and it seems they have a fix about this kind of namespaced var issues in their macros, maybe that's related
Did you start your project using the template or something else?
Hm ok. Have you tried restarting figwheel or refreshing the browser? I’m not sure the session recompiles when it receives new arguments or not
Ok. Thanks. I’m only aware that they added hot reloading for CLJS, not sure about namespace related issues
i've been playing with it for half a day =) refreshing and restarting all vm aswell as figwheel itself
Ok. That should be fine
Is this a public repo where I could take a look?
Totally up to you. I’m looking through the source right now and trying to think and not ask a lot of silly questions…there’s a lot of trickyness to macros, especially in CLJS. But I’m working on a project that uses a db-schema and client schema right now and not getting any errors
Np. Sorry you’ve burned half a day on this
In what I’m working on I’ve required the schemas at the top
Glad to hear it. It’s just been me working on it and I haven’t had much time due to work recently so I’m sorry for the brittleness
I don’t think so…
Have you tried requiring the schemas at the top? I’m not using fully qualified in what I have working and sometimes even with fully qualified if they’re not required things don’t work
[precept-visualizer.schema :refer [db-schema client-schema]]
(session visualizer-session
'precept-visualizer.rules 'precept-visualizer.other-rules
:db-schema db-schema
:client-schema client-schema
:reload true)
That’d be my best guess. I’m also using a .cljc file for the schemas but it should work with cljs too
Ok cool. I’ll try to think of something else but I think that might be it…seems like I’ve run into it before even with other clojure things
No problem at all. Really glad it worked
It’s counterintuitive to me...like what’s the point of a fully qualified ns