Fork me on GitHub
#shadow-cljs
<
2024-04-20
>
danielneal13:04:37

Do you ever need grid-col-span, grid-col-start, gap, gap-x and gap-y from tailwind in shadow-css? I can add them in my custom, but might you be interested in me making a PR to add those?

thheller14:04:36

a PR is fine too

thheller14:04:12

for certain stuff I find maps a lot easier. basically if I have to look up an alias I just use a map. 😛

danielneal14:04:27

ahaha makes sense

danielneal14:04:40

I'll see how I go

cjohansen20:04:01

I have a cljc file that imports another namespace (also defined in a cljc file) with :as and then uses some macros from the alias. Shadow is complaining about the macros not being defined. Am I doing things the wrong way? The namespace in question is this: https://github.com/cjohansen/replicant/blob/main/src/replicant/core.cljc One of the errors is this: > Use of undeclared Var replicant.asserts/assert-no-class-name Although it is defined here: https://github.com/cjohansen/replicant/blob/main/src/replicant/asserts.cljc#L7 (and this namespace uses :require-macros on itself for the cljs compiler).

thheller20:04:50

hmm should be fine. did you maybe work on this file while it had an error? sometimes the CLJ code ends up in a dead state where a reload messed something up

thheller21:04:02

everything looks correct as far as I can tell

thheller21:04:54

anyway I can reproduce this? happy to take alook

cjohansen21:04:50

It was reported to me by @U9A1RLFNV, he got this after using the clojars prerelease version I think

thheller21:04:50

only guess I have that the namespace failed to load properly. sometimes the CLJ parts get lost if there is an error

cjohansen21:04:22

Right, that was my suspicion as well, so at the very least I checked that the asserts file was part of the jar file 😅

cjohansen21:04:04

Thanks, I'll check if the problem is related to the specific jar

thheller21:04:35

also possible that there maybe is a asserts.cljs file present that didn't load macros?

cjohansen21:04:34

that could have very well been, but there's not one in the jar

thheller21:04:12

doesn't matter if its on the classpath elsewher e:P

😅 1
cjohansen21:04:13

I just tried it myself, and I'm gonna assume your initial suspicion was right. It spews warnings on 0.2024.03.25, but if I use the latest git sha, there are no warnings.

cjohansen21:04:37

So the jar likely has something weird in it

cjohansen21:04:28

It's not a release intended for general consumption, so I'll leave it at that. Sorry for the noise and thanks for your help 😊