Fork me on GitHub
#portal
<
2024-03-06
>
Panel05:03:13

Can I reverse the list of values ? Show new value at the bottom like in a terminal ?

dmegas19:03:59

I have trouble requiring clojure.zip in a custom viewer

Could not find namespace: clojure.zip.
   {:error #object[Error Error: Could not find namespace: clojure.zip.],
    :message "Could not find namespace: clojure.zip.",
    :op :portal.rpc/response,
    :portal.rpc/id 12}
              launcher.clj:  124  portal.runtime.jvm.launcher/eval-str
Any ideas? (`clojure.walk` for instance loads just fine)

djblue00:03:06

This may not be included in the default set of namespace https://github.com/babashka/sciships with and I didn't manually add it for Portal :thinking_face:

djblue00:03:38

For now, I would make sure https://github.com/clojure/clojurescript/blob/master/src/main/cljs/clojure/zip.cljs is available on your classpath, Portal should be able to dynamically load it. I'll see about adding it to sci on the Portal side.

djblue00:03:37

Well... that was easy enough https://github.com/djblue/portal/commit/cf1bf857434f5b08596738ab298064d0859f36f8, should roll out in the next release 👌

dmegas06:03:08

Amazing, thank you very much! 🚀

djblue08:03:23

Should now be available as part of 0.53.0 👌

dmegas11:03:56

That’s great, thanks! Also, for my future reference, when you said ‘make sure that zip.cljs is available on my classpath’, how would I do that (since it’s a clojurescript namespace)?

djblue01:03:18

Ohh, I just meant to make sure that ClojureScript was included as a dependency for your REPL process