vouch-opensource / krell

Simple ClojureScript React Native Tooling
Eclipse Public License 1.0
679 stars 36 forks source link

problem evaluating Transit$UUID in the repl #123

Closed apostolou closed 3 years ago

apostolou commented 3 years ago

Hello,

thanks for this great library! when running the code below in krell repl in an “empty” project (only the react-native basic project installed) I run into an exception :

(require '[cognitect.transit :as transit])
(transit/uuid "b1a5b1c1-6319-4855-8b6a-99139f87ad20")

Exception :

TypeError: Cannot read property 'assert' of null
    at Function.Long.fromInt (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:291:11)
    at Object.types.hexFor (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:259:50)
    at Transit$UUID.types.UUID.toString (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:292:20)
    at Object.eval [as cljs$core$IEquiv$_equiv$arity$2] (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:16:34)
    at cljs$core$_equiv (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:2671:10)
    at Transit$UUID.eval [as cljs$core$IEquiv$_equiv$arity$2] (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:56:25)
    at Object.cljs$core$_equiv [as _equiv] (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:2671:10)
    at Function.eval [as cljs$core$IFn$_invoke$arity$2] (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:4973:35)
    at cljs$core$_EQ_ (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:4940:23)
    at eval (eval at handleMessage (krell_repl.js:285), <anonymous>:20:16)

Any ideas ? thx My deps are :

{:deps {io.vouch/krell {:git/url "https://github.com/vouch-opensource/krell"
                        :sha "d0e115309580ca0bdc782e4ca396df66a357d212"}
        io.vouch/reagent-react-native {:git/url "https://github.com/vouch-opensource/reagent-react-native.git"
                                       :sha "0fe1c600c9b81180f76b94ef6004c2f85e7d4aa0"}
        reagent/reagent {:mvn/version "0.10.0"
                         :exclusions [cljsjs/react cljsjs/react-dom]}
        com.cognitect/transit-cljs {:mvn/version "0.8.264"}}}
swannodette commented 3 years ago

Have you tried master?

apostolou commented 3 years ago

@swannodette thx a lot for the new commits. I've tested @92115e1f271259e21e67881dd94c2b668e4143d8 and the issue is fixed.