IGI-111 / Smith

A simple text editor written in Rust
MIT License
169 stars 6 forks source link

Build fails #34

Closed luca-i closed 3 years ago

luca-i commented 3 years ago

On my Rust installation cargo install smith fails to compile:

   Compiling delegate v0.4.3
error[E0432]: unresolved import `syn::export`
  --> /Users/xxxxxxxxx/.cargo/registry/src/github.com-1ecc6299db9ec823/delegate-0.4.3/src/lib.rs:94:10
   |
94 | use syn::export::TokenStream2;
   |          ^^^^^^ could not find `export` in `syn`

error: aborting due to previous error

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

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `smith v2.0.0`, intermediate artifacts can be found at `/var/folders/f5/p_5syrl918q6m214rwk78dk00000gn/T/cargo-install7ZT3bT`

Caused by:
  build failed

I'm running MacOS BigSur 11.1:

$ cargo --version
cargo 1.49.0 (d00d64df9 2020-12-05)
$ rustc --version
rustc 1.49.0 (e1884a8e3 2020-12-29)

Thank you, Luca-

luca-i commented 3 years ago

Today I upgraded to Rustc v 1.50.0, but it still doesn't compile

   ...
   ...
   Compiling clipboard v0.5.0
   Compiling delegate v0.4.3
error[E0432]: unresolved import `syn::export`
  --> /Users/xxxxxxxxxx/.cargo/registry/src/github.com-1ecc6299db9ec823/delegate-0.4.3/src/lib.rs:94:10
   |
94 | use syn::export::TokenStream2;
   |          ^^^^^^ could not find `export` in `syn`

error: aborting due to previous error

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

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `smith v2.0.0`, intermediate artifacts can be found at `/var/folders/f5/p_5syrl918q6m214rwk78dk00000gn/T/cargo-installvhNbdr`

Caused by:
  build failed

$ cargo --version
cargo 1.50.0 (f04e7fab7 2021-02-04)
$ rustc --version
rustc 1.50.0 (cb75ad5db 2021-02-10)
IGI-111 commented 3 years ago

The version on crates.io was outdated, I don't use the delegate crate anymore. Just pushed v2.0.1 and it fixes it.

luca-i commented 3 years ago

The version on crates.io was outdated, I don't use the delegate crate anymore. Just pushed v2.0.1 and it fixes it.

Thank you! I'll try again as soon as I'll be back home.