Skip to content

Can't reopen a Portal window using playback.core/open-portal! on JVM #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DeadEarnest opened this issue Mar 19, 2025 · 0 comments
Open

Comments

@DeadEarnest
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant