BillyDM / iced_baseview

A baseview backend for the Iced GUI library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When trying to create iced_baseview::Settings, I get a Type Error (in https://github.com/BillyDM/iced-baseplug-examples )

zopty opened this issue · comments

commented
mismatched types

expected struct `baseview::window_open_options::WindowOpenOptions`, found struct `baseview::WindowOpenOptions`

note: perhaps two different versions of crate `baseview` are being used?rustc(E0308)
lib.rs(321, 21): expected struct `baseview::window_open_options::WindowOpenOptions`, found struct `baseview::WindowOpenOptions`

image
I'm sorry, I'm still new to Rust, so I'm not sure what this means.

Oh, I thought I fixed this. I'll look into it later today. Thanks for letting me know!

It seems you are using baseplug. Could you make sure that the dependencies for baseplug and baseview match the ones listed in this example?

https://github.com/BillyDM/iced-baseplug-examples/blob/main/gain/Cargo.toml#L14

commented

I haven't edited it at all since I downloaded it.

commented

Oh, and I forgot some basic information.
OS: Windows 10 Pro 19042.1165
Rust: nightly-x86_64-pc-windows-msvc

I haven't edited it at all since I downloaded it.

When did you download it? Could you please verify that the numbers after rev match the ones in the example Cargo.toml I linked above?

Oh, wait. My bad. The baseview version in iced-baseplug-examples was wrong. I updated it. Could you update/redownload the iced-baseplug-examples crate and see if it's working now?

commented

I downloaded and built it again, and it worked!

commented

Thanks for the quick fix.