-
Notifications
You must be signed in to change notification settings - Fork 63
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
Reactive.jl update broke my Escher widgets #114
Comments
Looks like the faulty code is at line 186 of src/basics/behavior.jl: render(chan::ChanSend, state) =
withlastchild(render(chan.tile, state)) do child
child <<
Elem("chan-send", attributes=@d(:chan=>chan.chan))
end The method it's attempting to call is part of Patchwork.jl I added export withlastchild to Patchwork.jl which fixed that issue (or so I think) - but that brought out some other issues 😞 I also wanted to point out that the master branch of Escher.jl requires Patchwork 0.1.5, but the 0.1.5 tag is missing from the Patchwork repository. |
Are you using the master branch of Escher? |
I've tried multiple branches. I've even tried a fresh .julia directory letting Escher install it's deps. You just get the lift/map and Input/Signal deprecations and the page hangs.
When I upgrade to master - Pkg.checkout("Escher"); Pkg.build("Escher") I get the following output when attempting to run form.jl:
My temp solution is running off an old version of METADATA,jl (145 commits ago) which uses Reactive 0.2.4 - but I'm itchin to remove my lift/Input() deprecations ;) |
Fixed these things on master. Please try it out. You will need Reactive 0.3.0. |
I'm getting the same error as issue #115 now |
Please try now. I'm going to tag a fix release soon. Also added in a simple test for this stuff. You need to install |
Tagged a release |
When trying examples on Julia 0.5.0 I get:
However, in Julia stable it looks like your new tag is mostly workable. mc.jl loads, but about 70% of the time when you click the start button nothing happens. I'm having the same issue in my apps with the following code: btn = Signal(Any, leftbutton) When triggering with trigger!(s, :submit, button()) buttons work great (form.jl) - but the Signal(Any, leftbutton) style doesn't seem to work right 😞 (or at all in my applications). |
To provide some context here's how I'm trying to execute a form operation: dataview = Signal((Any, status_vbox("Upload a data file"))
filename = Signal(Any, "")
protocol = Signal(0)
filetype = Signal(Any, "0")
btn = Signal(Any, leftbutton)
result = map(sampleon(btn, filename),
sampleon(btn, protocol),
sampleon(btn, filetype);
typ=Any, init=nothing) do f, p, t
run_processor(f, p, parse(Int, t), running, dataview)
end I use this abstraction so I can control a spinner to show busy operations when processing data. run_processor crunches a static file and pushes the results as a vbox() into dataview. However, when I click the button nothing happens. No spinner and no backend terminal debug output. |
I got that foreach issue in 0.5 too - I think thats killing it! |
|
I just tested the examples a day ago (since #132 was resolved) and still mc.jl only fires on button click after multiple refreshes. Yes - the foreach issue helped on Julia v0.5 but I am still not getting the examples to behave correctly. As I stated before, when I run the mc.jl example and repeatedly adjust the parameters and submit (without refreshing the page), after a few times the animated graphic no longer renders. Perhaps this is a separate issue. |
Yup, having same trouble with the mc.jl example, created #137 to get all examples updated |
I can no longer get my Escher apps to run correctly after Pkg.update(). There appears to be some issue since moving from Input() to Signal() or lift to map in Reactive.jl. After the update I first started my app and got the deprecation warnings - however, they appear to be more than warnings because without correcting the deprecations my app wouldn't load at all. When I changed lift->map and Input->Signal my app loads but the tabs are broken. Both pages in the tab() widget are now displayed on the same page and switching between the tab buttons doesn't do anything. Furthermore, my leftbutton doesn't work. Everything just hangs. Here's were it ends:
EDIT
Pkg.checkout("Escher"); Pkg.build("Escher") fixed the brunt of the issue. I'd say in a perfect world that it would be awesome if all the versions in METADATA could stay compatible, but this isn't a perfect world ;) Now I'm getting
The text was updated successfully, but these errors were encountered: