Fork me on GitHub
#clojurescript
<
2022-11-24
>
Dallas Surewood09:11:40

I can't seem to get any debug tools working with my Clojurescript setup. I've tried Portal and Flowstorm. I could use some help.

p-himik09:11:44

What exactly have you tried? Is there an MRE repo?

Quentin Le Guennec13:11:32

Hello, some keywords evaluate to null when I call name on them, anyone knows why?

p-himik13:11:59

Can you give an example?

ribelo20:11:57

Anyone using tailwindcss + cljs in a large project perhaps?

ribelo20:11:47

I don't know if I'm doing something wrong, but the compilation times are unacceptable, incremental compilation definitely doesn't work, and to top it off, postcss can get into a infinite loop and crash because it runs out of memory

mkvlr20:11:17

yeah we do

mkvlr20:11:28

also had issues with the watcher

mkvlr20:11:43

switched to using the play cdn in dev

ribelo20:11:25

I also had this idea, but how to transfer the configuration?

ribelo20:11:07

currently there is nothing there, so no problem, but in general it would be useful to be able to modify the theme

mkvlr20:11:44

you can inline it, we do this in clerk

ribelo20:11:35

hack, but what a pretty one!

ribelo20:11:31

thanks Martin, if you guys do that, we can do that too 🙂

mkvlr20:11:57

before that we used a patched version of postcss to fix the watcher

mkvlr20:11:10

still looking for the link…

mkvlr20:11:04

can’t seem to find it, maybe @U45J3R52L who did the work still knows what do search for?

mkvlr20:11:59

but fwiw we’re much happier with the play cdn in dev now, one process less to care about

mkvlr20:11:14

even with the debounce patch it was never 100% great

ribelo20:11:01

life of a clojure dev is simple but not easy...

😅 2
rgm22:11:22

I find more and more often I end up ditching internal file watchers and just leaning on a more general purpose shell thing like entr (http://eradman.com/entrproject/). so instead of npx tailwindcss ,,, --watch it's find target/cljs-out/**/*.js | entr npx tailwindcss ,,, (without the watch). Since tailwind went jit-by-default I don't find there's a lot of benefit to dev mode so I just run with minified production builds all the time. There's probably a way to pair it with a debouncing trick like https://github.com/MerkleBros/debounce.sh/blob/master/debounce.sh, so it only kicks in every 2-5s on the hot reload.

ribelo22:11:11

I ❤️ entr

Chase15:03:55

Not sure what the etiquette is of bringing back old threads from the dead but I've been encountering this same problem (tailwindcss watch workflow is buggy, slow, and occasionally crashing on an OOM error) and am wondering if you can elaborate more on your solutions. My tailwind setup basically follows this repo: https://github.com/jacekschae/shadow-cljs-tailwindcss but I am not sure how to go from there to the cdn solution in that view.clj file or this debouncing/entr method.

Chase15:03:55

Not sure what the etiquette is of bringing back old threads from the dead but I've been encountering this same problem (tailwindcss watch workflow is buggy, slow, and occasionally crashing on an OOM error) and am wondering if you can elaborate more on your solutions. My tailwind setup basically follows this repo: https://github.com/jacekschae/shadow-cljs-tailwindcss but I am not sure how to go from there to the cdn solution in that view.clj file or this debouncing/entr method.