kaocha

Nikolas Pafitis 2022-03-22T14:40:28.511209Z

Hello I'm trying to setup kaocha-cljs2 along with shadow-cljs but I keep getting this message The required namespace "goog.debug.Logger" is not available, it was required by "lambdaisland/glogi.cljs". Is there a dep i should import for this? Other goog namespaces are builtin when using shadow-cljs i don't understand.

πŸ€” 1
oxalorg (Mitesh) 2022-03-22T14:41:04.505079Z

Can you try and update shadow-cljs to the latest version once and see if it fixes this?

Nikolas Pafitis 2022-03-22T14:41:58.622199Z

I'm running the latest version, maybe i should downgrade?

oxalorg (Mitesh) 2022-03-22T14:44:04.753169Z

Can you also check if you have latest https://github.com/lambdaisland/glogi in the deps?

oxalorg (Mitesh) 2022-03-22T14:44:40.612649Z

If you don't have an entry feel free to add one explicitly

Nikolas Pafitis 2022-03-22T14:45:47.182779Z

Let me try

Nikolas Pafitis 2022-03-22T14:54:36.007539Z

Adding an explicit dependency to glogi gives me The required namespace "goog.debug.LogBuffer" is not available, it was required by "lambdaisland/glogi/console.cljs".

oxalorg (Mitesh) 2022-03-22T14:55:35.131929Z

Sorry just one last time to confirm, you are still on latest shadow and cljs versions?

oxalorg (Mitesh) 2022-03-22T14:55:56.035629Z

Because I had this exact same error in a project today and updating all deps fixed it πŸ™ˆ

Nikolas Pafitis 2022-03-22T14:56:29.961189Z

I downgraded shadow-cljs from 2.17.8 to 2.16.12

oxalorg (Mitesh) 2022-03-22T14:56:48.360129Z

Noooooo, try upping it back up πŸ†™

Nikolas Pafitis 2022-03-22T14:56:56.498459Z

Cljs is also at latest 1.11.4

Nikolas Pafitis 2022-03-22T14:59:14.290239Z

let me try again

oxalorg (Mitesh) 2022-03-22T15:00:28.393239Z

Can you also run this (assuming you're using deps to manage shadow):

➜  your-project git:(main) βœ— clj -Stree | grep glogi
com.lambdaisland/glogi 1.1.144
  X com.lambdaisland/glogi 1.0.136 :use-top

oxalorg (Mitesh) 2022-03-22T15:02:09.697809Z

This is the relevant error: https://github.com/lambdaisland/glogi/pull/20

plexus 2022-03-22T15:33:11.992599Z

> Can you also run this (assuming you're using deps to manage shadow): Please also share the exact version of ClojureScript and of google closure library that it's pulling in. We've made a lot of effort in glΓΆgi to be compatible with all the different ClojureScript versions but maybe they made breaking changes again, or maybe we're not actually compatible with certain versions.

plexus 2022-03-22T15:35:25.240679Z

a full clj -Stree would be great, or if you can't share that for reasons then please share the output of

clj -A:dev -Stree | egrep '(glogi|closure|clojurescript)'
(change -A:dev to whatever aliases you have active when the error happens)

Nikolas Pafitis 2022-03-22T15:37:04.166539Z

clj -A:cljs:dev-cljs:test-cljs -Stree | egrep '(glogi|closure|clojurescript)'

      X lambdaisland/glogi 1.0.70 :use-top
      X lambdaisland/glogi 1.0.70 :use-top
  X org.clojure/clojurescript 1.11.4 :use-top
  . com.google.javascript/closure-compiler-unshaded v20220202
  . org.clojure/google-closure-library 0.0-20211011-0726fdeb
    . org.clojure/google-closure-library-third-party 0.0-20211011-0726fdeb
  . org.clojure/google-closure-library-third-party 0.0-20211011-0726fdeb
org.clojure/clojurescript 1.11.4
  X com.google.javascript/closure-compiler-unshaded v20210808 :older-version
  . org.clojure/google-closure-library 0.0-20211011-0726fdeb
    X org.clojure/clojurescript 1.10.597 :use-top
      X org.clojure/clojurescript 1.9.89 :use-top
    X org.clojure/clojurescript 1.7.170 :use-top
    X org.clojure/clojurescript 1.7.48 :use-top
    X org.clojure/clojurescript 1.9.908 :use-top
lambdaisland/glogi 1.0.106
  X org.clojure/clojurescript 1.10.238 :use-top

plexus 2022-03-22T15:37:07.709279Z

the root of the problem is a series of breaking changes in the google closure library, which has led to us having to resort to increasingly creative hacks to still be able to support all versions, and we do test glogi on multiple versions of clojurescript and thus closure, but as I said either there's a regression or there's been another breaking change

plexus 2022-03-22T15:37:30.979469Z

perfect! thanks! let me check that

Nikolas Pafitis 2022-03-22T15:38:03.858219Z

Sorry for the delay I was in a meeting

oxalorg (Mitesh) 2022-03-22T15:38:36.909149Z

> >

lambdaisland/glogi 1.0.106
It's still not using latest glogi, can you make sure that you have glogi version "1.1.144"

Nikolas Pafitis 2022-03-22T15:40:16.885459Z

hmm

Nikolas Pafitis 2022-03-22T15:40:27.545939Z

There's two different packages

Nikolas Pafitis 2022-03-22T15:40:34.573529Z

>

lambdaisland/glogi
and

Nikolas Pafitis 2022-03-22T15:40:44.069969Z

>

com.lambdaisland/glogi

oxalorg (Mitesh) 2022-03-22T15:40:53.541849Z

OH YES! You need the com.lambdaisland/glogi {:mvn/version "1.1.144"} version

plexus 2022-03-22T15:40:54.557109Z

yeah was just gonna say, newer releases are under com.lambdaisland for this package to be in line with clojars policy

Nikolas Pafitis 2022-03-22T15:41:11.190969Z

should i also use the com.lambdaisland for kaocha deps as well?

oxalorg (Mitesh) 2022-03-22T15:42:24.880919Z

If available, kaocha is on lambdaisland/kaocha not on com

Nikolas Pafitis 2022-03-22T15:42:31.818199Z

ok

plexus 2022-03-22T15:43:25.615869Z

no, we're still releasing kaocha under lambdaisland. For most projects that already existed before the new policy we're sticking to lambdaisland for now because clojars/tools.deps don't support propert relocation (yet). With glogi we were a bit too fast to move to the new id but then decided to move back and forth would create even more confusion.

plexus 2022-03-22T15:43:43.014689Z

Sorry, I'm aware this is a bit of a mess. for background: β€’ https://github.com/lambdaisland/open-source/issues/2 β€’ https://clojure.atlassian.net/browse/TDEPS-8 β€’ https://github.com/clojars/clojars-web/issues/801

Nikolas Pafitis 2022-03-22T15:44:01.263829Z

I see, i just saw kaocha-cljs under the new org and I assumed everything was migrated

Nikolas Pafitis 2022-03-22T15:44:10.824999Z

Anyways i'm happy to inform you that it finally built

πŸ’ƒ 1
πŸ™Œ 1
plexus 2022-03-22T15:44:51.062639Z

great! happy to hear! we would like to migrate everything, but until clojars and tools.deps have a better story for that we're afraid it's going to cause too much churn.

plexus 2022-03-22T15:45:31.222779Z

newer packages are only released under com.lambdaisland, because we are no longer allowed to publish those under lambdaisland

Nikolas Pafitis 2022-03-22T15:46:22.592799Z

I see