Fork me on GitHub
#fulcro
<
2019-01-25
>
tony.kay03:01:40

current route should end up an ident

tony.kay03:01:15

normalization failed for some reason…what else are you doing? @thosmos

tony.kay03:01:23

oh, you missed a join in your query

tony.kay03:01:42

[{:router (prim/get-query RootRouter)}]

thosmos03:01:09

oh of course!

thosmos03:01:29

that explains it

tony.kay03:01:34

normalization fails = ident or query problem..they are the only things involved unless you did a load

thosmos03:01:53

nice thing about when things don't work the way I expect is it gets me to look at the code. I'm beginning to "get" macros and have been enjoying reading your macro code

tony.kay03:01:10

yeah, that defsc is a doosy

tony.kay03:01:22

I want to add more syntax checking to it…that error is easy to catch

tony.kay03:01:32

and even turn into a compile error

thosmos03:01:15

hmm, wonder if I might be able to tackle that ... I tried adding my local git checkout to my deps.edn but got an error: Manifest type not detected when finding deps for fulcrologic/fulcro in coordinate {:local/root "../../cljs/fulcro/fulcro/"} haven't seen that before

thosmos03:01:11

oh it's confused as to whether its deps or lein I think

thosmos03:01:09

yeah :deps/manifest :deps fixed it

tony.kay04:01:53

tackle what? Oh adding a compile error?

tony.kay04:01:12

that’d be fine with me 🙂 But you’re typically not going to check it if it is in a lambda like you wrote it

tony.kay04:01:22

only if it is the shorthand :query [...]

tony.kay04:01:51

since the lambda can have arbitrary expressions….and then syntax checking is easily fooled

hmaurer13:01:29

@tony.kay https://github.com/fulcro-legacy/fulcro-template/blob/develop/src/main/fulcro_template/ui/html5_routing.cljc#L80 . Wouldn’t this break the ability to open the page in another tab (Cmd+Click, etc), if href isn’t used?

Bravi15:01:54

hi. how can I start a freshly installed fulcro app? running npx shadow-cljs server gives me

IllegalArgumentException XNIO001001: No XNIO provider found
error

tony.kay16:01:15

@bravilogy version of Java? Java 8 is known to work…other versions sometimes require JVM args I think.

Bravi16:01:13

I actually had to install org.jboss.xnio/xnio-nio {:mvn/version "3.4.6.Final"}

tony.kay16:01:19

I would not have expected that…ask on the #shadow-cljs channel. I’ve never had to do that, but nothing in Fulcro uses xnio

thheller16:01:28

@bravilogy you are probably using deps.edn with an older version which didn't handle maven scopes properly. update the clj script

Bravi16:01:18

I literally did lein new fulcro app. should I update leiningen?

thheller16:01:09

try updating :plugins [[lein-tools-deps "0.4.1"]] to :plugins [[lein-tools-deps "0.4.3"]]

thheller16:01:18

hmm no wait. it is definitely your clojure install

hmaurer18:01:37

http://book.fulcrologic.com/#BasicRouter => why do you have a fixed :db/id on pages?

Bravi22:01:32

except for http://book.fulcrologic.com/ are there any good resources to learn fulcro from? I saw a few video tutorials on youtube but I guess they’re out of date now

currentoor23:01:19

@bravilogy that is probably the best source