Skip to content
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

Error building illumination #17

Closed
do-you-dare opened this issue Jan 15, 2020 · 4 comments
Closed

Error building illumination #17

do-you-dare opened this issue Jan 15, 2020 · 4 comments

Comments

@do-you-dare
Copy link

Hello! I'm trying to use this on Fedora 30, and this is the error I get:

➜  .illumination git:(master) ✗ cargo build     
   Compiling illumination v0.2.0 (/home/esilva/.illumination)
error[E0277]: the trait bound `gio::auto::cancellable::Cancellable: glib::object::IsA<gio::auto::cancellable::Cancellable>` is not satisfied
   --> src/ui/app.rs:121:39
    |
121 |     webview.run_javascript(js_scroll, None::<&gio::Cancellable>, move |msg| {
    |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `glib::object::IsA<gio::auto::cancellable::Cancellable>` is not implemented for `gio::auto::cancellable::Cancellable`

error[E0277]: the trait bound `webkit2gtk::auto::web_view::WebView: glib::object::IsA<gtk::Widget>` is not satisfied
  --> src/ui/content.rs:16:25
   |
16 |         container.pack1(&preview, true, true);
   |                         ^^^^^^^^ the trait `glib::object::IsA<gtk::Widget>` is not implemented for `webkit2gtk::auto::web_view::WebView`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0277`.
error: could not compile `illumination`.

To learn more, run the command again with --verbose.

The rust version is 1.40.0.

Thanks, nice project!

@cosmoduff
Copy link
Contributor

I got it to compile by changing Cargo.toml back to commit 8845abf. Seems it could be an issue with the GTK feature flags that were added.

@do-you-dare
Copy link
Author

Thanks!
While changing only the Cargo.toml back didn't work for me, checking out to that commit I could get it to build. Not optimal, but it works.

@cosmoduff
Copy link
Contributor

@dread-uo I fixed the build errors and submitted a pull request. It should work on Fedora as well.

@oknozor
Copy link
Owner

oknozor commented Jul 16, 2020

Thank you @cosmoduff! I am closing this for it seems to be fixed.

@oknozor oknozor closed this as completed Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants