JuliaGizmos / Blink.jl

Web-based GUIs for Julia
Other
355 stars 74 forks source link

Interact example gives "Window object doesn't support JS messages" #284

Open BeastyBlacksmith opened 3 years ago

BeastyBlacksmith commented 3 years ago

I tried the example from the interact documentation

using Blink, Interact
ui = button()
w = Window()
julia> body!(w, ui)
ERROR: Window object doesn't support JS messages
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] msg(o::Window, m::Dict{Any, Any})
   @ Blink ~/.julia/packages/Blink/mwJC9/src/rpc/rpc.jl:38
 [3] js(o::Window, js::WebIO.JSString; callback::Bool)
   @ Blink ~/.julia/packages/Blink/mwJC9/src/rpc/rpc.jl:47
 [4] js(o::Window, j::Expr; callback::Bool)
   @ Blink ~/.julia/packages/Blink/mwJC9/src/rpc/rpc.jl:61
 [5] content!(o::Window, sel::String, html::String; fade::Bool, async::Bool)
   @ Blink ~/.julia/packages/Blink/mwJC9/src/content/api.jl:5
 [6] content!(o::Window, sel::String, html::Widget{:button, Int64}; fade::Bool, async::Bool)
   @ Blink ~/.julia/packages/Blink/mwJC9/src/content/api.jl:16
 [7] body!(w::Window, html::Widget{:button, Int64}; fade::Bool, async::Bool)
   @ Blink ~/.julia/packages/Blink/mwJC9/src/content/api.jl:19
 [8] body!(w::Window, html::Widget{:button, Int64})
   @ Blink ~/.julia/packages/Blink/mwJC9/src/content/api.jl:19
 [9] top-level scope
   @ REPL[22]:1
  [ad839575] Blink v0.12.5
  [c601a237] Interact v0.10.3