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

Docs tutorial example does not compile. #38

Closed
Niedzwiedzw opened this issue Oct 31, 2018 · 3 comments
Closed

Docs tutorial example does not compile. #38

Niedzwiedzw opened this issue Oct 31, 2018 · 3 comments

Comments

@Niedzwiedzw
Copy link

Description

I'm going through the tutorial and this import throws unresolved reference error.

use azul::widgets::*;

This fixes the problem and allows to continue through the docs.

use azul::widgets::button::Button;
use azul::widgets::label::Label;

Version / OS

Ubuntu 18.10
rustc 1.31.0-nightly (1cf82fd9c 2018-10-30)

@Niedzwiedzw Niedzwiedzw changed the title Docs tutorial does not compile. Docs tutorial example does not compile. Oct 31, 2018
@fschutt
Copy link
Owner

fschutt commented Oct 31, 2018

Yep, should be fixed now. I'm sorry, it's just that it can happen that non-Rust docs fall behind master. The correct import is:

use azul::prelude::{*, widgets::{label::Label, button::Button}};

@fschutt fschutt closed this as completed Oct 31, 2018
@Ace4896
Copy link

Ace4896 commented Nov 1, 2018

I wasn't able to compile the example with

use azul::prelude::{*, widgets::{label::Label, button::Button}};

I had to use this instead since widgets weren't under prelude:

use azul::{prelude::*, widgets::{label::Label, button::Button}};

@fschutt
Copy link
Owner

fschutt commented Nov 2, 2018

Yep, should be fixed now.

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