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

Can't compile it #1

Open
gagarin55 opened this issue Aug 5, 2019 · 2 comments
Open

Can't compile it #1

gagarin55 opened this issue Aug 5, 2019 · 2 comments

Comments

@gagarin55
Copy link

I have:

$ rustc -V
rustc 1.38.0-nightly (b0e40bfba 2019-08-02)

Got

$ cargo run
   Compiling facade-protocol v0.1.0 (https://github.com/yewstack/facade.git#0498b46c)
   Compiling futures-executor-preview v0.3.0-alpha.17
   Compiling mime_guess v1.8.7
   Compiling facade v0.1.0 (https://github.com/yewstack/facade.git#0498b46c)
error: failed to run custom build command for `facade v0.1.0 (https://github.com/yewstack/facade.git#0498b46c)`

Caused by:
  process didn't exit successfully: `/home/naul/Projects/facade-example/target/debug/build/facade-e219b90a198cad66/build-script-build` (exit code: 1)
--- stderr
   Compiling facade-ui v0.1.0 (/home/naul/.cargo/git/checkouts/facade-f76c96bb3cedcbff/0498b46/ui)
error[E0432]: unresolved import `yew::Properties`
 --> src/widgets/bind.rs:2:17
  |
2 | use yew::{html, Properties};
  |                 ^^^^^^^^^^ no `Properties` in the root
error[E0432]: unresolved import `yew::Properties`
 --> src/widgets/container.rs:3:17
  |
3 | use yew::{html, Properties};
  |                 ^^^^^^^^^^ no `Properties` in the root
error[E0432]: unresolved import `yew::Properties`
 --> src/widgets/control.rs:2:17
  |
2 | use yew::{html, Properties};
  |                 ^^^^^^^^^^ no `Properties` in the root
error[E0432]: unresolved import `yew::Properties`
 --> src/widgets/dashboard.rs:3:17
  |
3 | use yew::{html, Properties, ShouldRender};
  |                 ^^^^^^^^^^ no `Properties` in the root
error[E0432]: unresolved import `yew::Properties`
 --> src/widgets/dynamic.rs:4:17
  |
4 | use yew::{html, Properties, ShouldRender};
  |                 ^^^^^^^^^^ no `Properties` in the root
error[E0432]: unresolved import `yew::Properties`
 --> src/widgets/fixed.rs:3:17
  |
3 | use yew::{html, Properties};
  |                 ^^^^^^^^^^ no `Properties` in the root
error[E0432]: unresolved import `yew::Properties`
 --> src/widgets/layout.rs:3:17
  |
3 | use yew::{html, Properties};
  |                 ^^^^^^^^^^ no `Properties` in the root
error[E0432]: unresolved import `yew::Properties`
 --> src/widgets/list.rs:2:17
  |
2 | use yew::{html, Properties};
  |                 ^^^^^^^^^^ no `Properties` in the root
error[E0432]: unresolved import `yew::Properties`
 --> src/widgets/page.rs:3:17
  |
3 | use yew::{html, Properties};
  |                 ^^^^^^^^^^ no `Properties` in the root
error[E0432]: unresolved import `yew::Properties`
 --> src/widgets/panel.rs:2:17
  |
2 | use yew::{html, Properties};
  |                 ^^^^^^^^^^ no `Properties` in the root
error[E0432]: unresolved import `yew::Properties`
 --> src/widgets/scene.rs:4:17
  |
4 | use yew::{html, Properties, ShouldRender};
  |                 ^^^^^^^^^^ no `Properties` in the root
error[E0432]: unresolved import `yew::Properties`
 --> src/widgets/widget.rs:3:60
  |
3 | use yew::{Bridge, Bridged, Component, ComponentLink, Html, Properties, Renderable, ShouldRender};
  |                                                            ^^^^^^^^^^ no `Properties` in the root
error: cannot determine resolution for the derive macro `Properties`
  --> src/widgets/bind.rs:10:10
   |
10 | #[derive(Properties, PartialEq, Clone)]
   |          ^^^^^^^^^^
   |
   = note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Properties`
  --> src/widgets/container.rs:11:10
   |
11 | #[derive(Properties, PartialEq, Clone)]
   |          ^^^^^^^^^^
   |
   = note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Properties`
  --> src/widgets/control.rs:10:10
   |
10 | #[derive(Properties, PartialEq, Clone)]
   |          ^^^^^^^^^^
   |
   = note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Properties`
  --> src/widgets/dashboard.rs:12:10
   |
12 | #[derive(Properties, PartialEq, Clone)]
   |          ^^^^^^^^^^
   |
   = note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Properties`
  --> src/widgets/dynamic.rs:12:10
   |
12 | #[derive(Properties, PartialEq, Clone)]
   |          ^^^^^^^^^^
   |
   = note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Properties`
  --> src/widgets/fixed.rs:11:10
   |
11 | #[derive(Properties, PartialEq, Clone)]
   |          ^^^^^^^^^^
   |
   = note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Properties`
  --> src/widgets/layout.rs:11:10
   |
11 | #[derive(Properties, PartialEq, Clone)]
   |          ^^^^^^^^^^
   |
   = note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Properties`
  --> src/widgets/list.rs:10:10
   |
10 | #[derive(Properties, PartialEq, Clone)]
   |          ^^^^^^^^^^
   |
   = note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Properties`
  --> src/widgets/page.rs:11:10
   |
11 | #[derive(Properties, PartialEq, Clone)]
   |          ^^^^^^^^^^
   |
   = note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Properties`
  --> src/widgets/panel.rs:10:10
   |
10 | #[derive(Properties, PartialEq, Clone)]
   |          ^^^^^^^^^^
   |
   = note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Properties`
  --> src/widgets/scene.rs:12:10
   |
12 | #[derive(Properties, PartialEq, Clone)]
   |          ^^^^^^^^^^
   |
   = note: import resolution is stuck, try simplifying macro imports
error[E0658]: the attribute `props` is currently unknown to the compiler and may have meaning added to it in the future
  --> src/widgets/bind.rs:12:5
   |
12 |     #[props(required)]
   |     ^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/29642
   = help: add `#![feature(custom_attribute)]` to the crate attributes to enable

error[E0658]: the attribute `props` is currently unknown to the compiler and may have meaning added to it in the future
  --> src/widgets/container.rs:13:5
   |
13 |     #[props(required)]
   |     ^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/29642
   = help: add `#![feature(custom_attribute)]` to the crate attributes to enable

error[E0658]: the attribute `props` is currently unknown to the compiler and may have meaning added to it in the future
  --> src/widgets/control.rs:12:5
   |
12 |     #[props(required)]
   |     ^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/29642
   = help: add `#![feature(custom_attribute)]` to the crate attributes to enable

error[E0658]: the attribute `props` is currently unknown to the compiler and may have meaning added to it in the future
  --> src/widgets/dashboard.rs:14:5
   |
14 |     #[props(required)]
   |     ^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/29642
   = help: add `#![feature(custom_attribute)]` to the crate attributes to enable

error[E0658]: the attribute `props` is currently unknown to the compiler and may have meaning added to it in the future
  --> src/widgets/layout.rs:13:5
   |
13 |     #[props(required)]
   |     ^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/29642
   = help: add `#![feature(custom_attribute)]` to the crate attributes to enable

error[E0658]: the attribute `props` is currently unknown to the compiler and may have meaning added to it in the future
  --> src/widgets/list.rs:12:5
   |
12 |     #[props(required)]
   |     ^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/29642
   = help: add `#![feature(custom_attribute)]` to the crate attributes to enable

error[E0658]: the attribute `props` is currently unknown to the compiler and may have meaning added to it in the future
  --> src/widgets/page.rs:13:5
   |
13 |     #[props(required)]
   |     ^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/29642
   = help: add `#![feature(custom_attribute)]` to the crate attributes to enable

error[E0658]: the attribute `props` is currently unknown to the compiler and may have meaning added to it in the future
  --> src/widgets/panel.rs:12:5
   |
12 |     #[props(required)]
   |     ^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/29642
   = help: add `#![feature(custom_attribute)]` to the crate attributes to enable

error: aborting due to 31 previous errors
Some errors have detailed explanations: E0432, E0658.
For more information about an error, try `rustc --explain E0432`.
error: Could not compile `facade-ui`.

To learn more, run the command again with --verbose.
error: build failed

Error: ErrorMessage { msg: "Can\'t compile UI" }

warning: build failed, waiting for other jobs to finish...
error: build failed
@therustmonk
Copy link
Member

It should work now. Check, please!

@gagarin55
Copy link
Author

Hi there, do you think something wrong in Cargo.toml ?

$ cargo run
    Updating git repository `ssh://git@github.com/DenisKolodin/facade`
error: failed to load source for a dependency on `facade`

Caused by:
  Unable to update ssh://git@github.com/DenisKolodin/facade#5e2f1f88

Caused by:
  failed to fetch into /home/.../.cargo/git/db/facade-971df895c4416564

Caused by:
  failed to authenticate when downloading repository
attempted ssh-agent authentication, but none of the usernames `git` succeeded

Caused by:
  no authentication available

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

2 participants