Charles-Johnson / zia_programming

A language that can program itself
https://zia-lang.org
GNU General Public License v3.0
3 stars 0 forks source link

:arrow_up: Attempt to upgrade seed to 0.8.0 #56

Closed Charles-Johnson closed 2 years ago

Charles-Johnson commented 3 years ago

Attempt to upgrade seed to 0.8.0 -m webpack compiles successfully but when run in Firefoxthe webpage fails to load with the following error message in the web console:

panicked at 'Streams can stream only Msg, Option<Msg> or ()!', /home/charles/.cargo/registry/src/github.com-1ecc6299db9ec823/seed-0.8.0/src/app/orders/container.rs:179:23

The stack trace points to the following code in zia-lang.org/crate/src/lib.rs:

fn init(url: Url, orders: &mut impl Orders<Msg>) -> Model {
    orders
        .subscribe(Msg::UrlChanged)
        .stream(streams::window_event(Ev::Scroll, |_| Msg::Scrolled));