Fork me on GitHub
#meander
<
2021-02-16
>
ribelo22:02:47

I just started testing meander in cljs

ribelo22:02:04

Are there any restrictions?

ribelo22:02:39

have a problem using cata in rhs, it throws an error

ribelo22:02:38

Resource: <eval>:1:1
Use of undeclared Var ribelo.meander-playground/java

ribelo22:02:51

I see that cata is used in tests like this

ribelo22:02:37

so either there's a regression, or more likely I have a shadow-cljs problem somewhere

jimmy22:02:22

Could you post your code that is throwing that error?

ribelo22:02:46

(m/rewrite [1 2 3]
  [!ks ...]
  [(m/cata !ks) ...]
  ?x ?x)

ribelo22:02:15

anything using cata on the right side causes an exception as above

jimmy22:02:12

I’m not getting that error in a bare clojurescript repl (the code just works). I doubt I would get it in shadow-cljs. It looks very unrelated to meander. Are you sure you don’t have some error elsewhere in your code?

jimmy22:02:28

The error seems to think you are referring to something called java that doesn’t exist.

ribelo22:02:36

I will create a new completely empty project folder and check again.

ribelo23:02:36

there's definitely a problem with shadow-cljs

ribelo23:02:51

on an empty project I get the same error

jimmy23:02:51

Can't look right now. But if you can push that project to github I can definitely take a look later tonight

ribelo23:02:45

sure, but first I'll just check if it worked on the previous version of shadow