You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to capture and restore all the bindings but that would cause a nightmare for all the nREPL and other middleware bindings that are present. This now makes me think that all nREPL middleware bindings should be scoped to a single binding holding a map and/or an atom so that they are distinct from the real bindings when you launch something like piggieback. Then piggieback could simply capture all the bindings on cljs-repl start and restore when a message comes in.
Another simpler solution would be a way of explicitly add bindings to the environment when we start the cljs-repl. We could do this with a binding piggiback/*extra-bindings* {'figwheel.main/*config* {}}
The text was updated successfully, but these errors were encountered:
If my client reconnects to the server and reuses the piggieback session I end up losing stdout. I've also found that the "out" messages I get from evals such as (println "foo") don't have the correct message ID associated with them. The return value and all other messages do though.
Maybe it's related to this issue? This behaviour could be a clue that points towards the root cause?
It would be great to capture and restore all the bindings but that would cause a nightmare for all the nREPL and other middleware bindings that are present. This now makes me think that all nREPL middleware bindings should be scoped to a single binding holding a map and/or an atom so that they are distinct from the real bindings when you launch something like piggieback. Then piggieback could simply capture all the bindings on cljs-repl start and restore when a message comes in.
Another simpler solution would be a way of explicitly add bindings to the environment when we start the cljs-repl. We could do this with a binding
piggiback/*extra-bindings* {'figwheel.main/*config* {}}
The text was updated successfully, but these errors were encountered: