playback
playback copied to clipboard
Can't reopen a Portal window using playback.core/open-portal! on JVM
I'm running both CLJ and CLJS REPLs, tried closing and then reopening Portal window on both:
#?(:cljs
(playback.core/open-portal!))
#?(:clj
(playback.core/open-portal!))
The second one results in error:
1. Unhandled clojure.lang.ExceptionInfo
No such portal session
{:session-id #uuid "1e881d9b-2ec6-4bd4-a965-c3c3d193bb3b",
:message {:op :portal.rpc/close}}
client.clj: 48 portal.runtime.jvm.client/request
client.clj: 30 portal.runtime.jvm.client/request
launcher.clj: 113 portal.runtime.jvm.launcher/close
launcher.clj: 110 portal.runtime.jvm.launcher/close
api.cljc: 114 portal.api$close/invokeStatic
api.cljc: 103 portal.api$close/invoke
core.cljc: 349 playback.core$open_portal_BANG_/invokeStatic
core.cljc: 341 playback.core$open_portal_BANG_/invoke
core.cljc: 344 playback.core$open_portal_BANG_/invokeStatic
core.cljc: 341 playback.core$open_portal_BANG_/invoke
As a workaround, I'm just using portal.api/open at the moment.