Fork me on GitHub
#shadow-cljs
<
2020-04-09
>
Mikko Harju05:04:23

Any ideas what I might be doing wrong? When I connect to Shadow-CLJS repl with Fireplace.vim and evaluate a form, the hot reload starts to fail with The required namespace "cljs.user" is not available. Evaluating more code with Fireplace still works...

Mikko Harju05:04:30

This has just started happening, I'm not sure if this relates to updates in shadow-cljs or fireplace...

thheller07:04:39

@mikko this has been reported before but I haven't been able to reproduce https://github.com/thheller/shadow-cljs/issues/667

Mikko Harju12:04:45

A-ha! 😄 this explains it. I've previously removed the preload-clause from my fireplace, but I just pulled a new version of Fireplace from GH, effectively removing that change from my repo. I knew this was something that has to do with Fireplace being updated. Thanks for this, I'll have a few tricks up my sleeve in how to get this working.

Brad Kurtz19:04:08

I'm having this issue as well, so I stepped through recent releases of shadow-cljs and it seems that 2.8.91 is the most recent release where this problem does NOT occur, seemingly indicating that it was something introduced by 2.8.92+

Brad Kurtz19:04:35

man I'm dumb, I thought it went away but it didn't, I don't know what's going on, and sorry to keep spamming the channel, but I'd like to be able to use shadow-cljs and this would keep me from doing so since it interrupts the eval from vim workflow I'm so used to

Brad Kurtz20:04:38

OK so one more update lol, I was originally starting everything up with shadow-cljs watch app and that’s when I would get the issue, so I instead tried starting shadow as a clj repl shadow-cljs clj-repl, then doing (shadow/watch :app), and then when I connect Fireplace and run CljEval (shadow/repl :app), it seems to be working fine now?

Brad Kurtz21:04:27

Nope… Not working again… Well I give up at this point.

mkarp12:04:30

Yes, The required namespace "cljs.user" is not available. comes and goes away sporadically

thheller12:04:37

I have never seen it so don't know what triggers it

Aron13:04:14

I am doing something wrong with material-ui makeStyles, it's throwing some error (length can't be read from undefined), maybe something related to jss. The thing is that I want to use hooks so I am not using reagent but helix (which is the successor of hx), less popular and I am at the very edge of my understanding. Since this is in devcards, it might be that it's not even supposed to work?

Aron14:04:54

actually, I just forgot that I should pass js data to js functions instead of cljs facepalm

👍 8
p-himik16:04:04

Can advanced compilation remove the when body in

(goog-define X "")

(when (seq X) ...)
?

thheller17:04:32

@p-himik not sure, probably no

thheller17:04:50

(when-not (identical? X "") ..) might have better chances

👍 4
Brad Kurtz19:04:08

I'm having this issue as well, so I stepped through recent releases of shadow-cljs and it seems that 2.8.91 is the most recent release where this problem does NOT occur, seemingly indicating that it was something introduced by 2.8.92+