JuliaGizmos / Interact.jl

Interactive widgets to play with your Julia code
Other
522 stars 77 forks source link

savedialog() on MacOSX throws UndefVarError #414

Open jakkos-net opened 2 years ago

jakkos-net commented 2 years ago
using Interact, Blink
body!(Window(), savedialog())

causes image on MacOSX

beorostica commented 1 year ago

I can reproduce your problem and additionally the function opendialog() is not working either and throws the same problem.

The issue should be solved in the InterectBase.jl package. Apperently, it is not enough to define a theme variable (for example with the gettheme() function) since, after editing the source code, the opendialog() widget is not being displayed once the button is clicked.

mkitti commented 1 year ago

What version of Interact and InteractBase are you using?

using Pkg
Pkg.status(["Interact","InteractBase"])
beorostica commented 1 year ago

I have the problem when using the latest versions of Interact and InteractBase (v0.10.5 and v0.10.9 respectively). image

However, if I use the InteractBase v0.10.5, I don't have the issue. image

mkitti commented 1 year ago

The right side of the stack trace would have been really useful, but I see the issue is in https://github.com/piever/InteractBase.jl/blob/0a91fe6d605cafcb27b1b9c15d5fea568fb187da/src/input.jl#L113

mkitti commented 1 year ago

I filed a bug report with InteractBase.jl https://github.com/piever/InteractBase.jl/issues/176

mkitti commented 1 year ago

Fix proposed in https://github.com/piever/InteractBase.jl/pull/177