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

Unable to compile due to conflicting syntex versions #42

Closed
lily-mara opened this issue May 31, 2016 · 1 comment
Closed

Unable to compile due to conflicting syntex versions #42

lily-mara opened this issue May 31, 2016 · 1 comment

Comments

@lily-mara
Copy link

I just tried installing tokei using cargo install tokei, but was unable to compile due to conflicting versions of the syntex crate, it looks like both 0.32.0 and 0.33.0 are being fetched:

$ cargo install tokei
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading tokei v2.1.1
 Downloading rayon v0.3.1
 Downloading serde_json v0.7.1
 Downloading serde v0.7.6
 Downloading clap v2.5.2
 Downloading serde_cbor v0.3.3
 Downloading maplit v0.1.3
 Downloading serde_yaml v0.2.4
 Downloading deque v0.3.1
 Downloading yaml-rust v0.3.2
 Downloading serde_codegen v0.7.6
 Downloading syntex v0.32.0 <-------------- Here
 Downloading syntex_syntax v0.33.0
 Downloading syntex v0.33.0 <-------------- And here
 Downloading aster v0.17.0
 Downloading quasi v0.11.0
 Downloading quasi_codegen v0.11.0
   Compiling serde v0.7.6
   Compiling log v0.3.6
   Compiling glob v0.2.11
   Compiling winapi-build v0.1.1
   Compiling bitflags v0.5.0
   Compiling num-traits v0.1.32
   Compiling unicode-xid v0.0.3
   Compiling winapi v0.2.7
   Compiling vec_map v0.6.0
   Compiling byteorder v0.3.13
   Compiling ansi_term v0.7.2
   Compiling rustc-serialize v0.3.19
   Compiling yaml-rust v0.3.2
   Compiling libc v0.2.11
   Compiling kernel32-sys v0.2.2
   Compiling unicode-width v0.1.3
   Compiling term v0.2.14
   Compiling walkdir v0.1.5
   Compiling rand v0.3.14
   Compiling num_cpus v0.2.12
   Compiling strsim v0.4.1
   Compiling maplit v0.1.3
   Compiling deque v0.3.1
   Compiling rayon v0.3.1
   Compiling clap v2.5.2
   Compiling serde_json v0.7.1
   Compiling serde_cbor v0.3.3
   Compiling serde_yaml v0.2.4
   Compiling syntex_syntax v0.32.0
   Compiling syntex_syntax v0.33.0
   Compiling syntex v0.32.0
   Compiling syntex v0.33.0
   Compiling quasi v0.11.0
   Compiling aster v0.17.0
   Compiling quasi_codegen v0.11.0
   Compiling serde_codegen v0.7.6
   Compiling tokei v2.1.1
/Users/nm46057/.cargo/registry/src/github.com-88ac128001ac3a9a/tokei-2.1.1/build.rs:15:29: 15:42 error: mismatched types:
 expected `&mut syntex::Registry`,
    found `&mut syntex::Registry`
(expected struct `syntex::Registry`,
    found a different struct `syntex::Registry`) [E0308]
/Users/nm46057/.cargo/registry/src/github.com-88ac128001ac3a9a/tokei-2.1.1/build.rs:15     serde_codegen::register(&mut registry);
                                                                                                                   ^~~~~~~~~~~~~
/Users/nm46057/.cargo/registry/src/github.com-88ac128001ac3a9a/tokei-2.1.1/build.rs:15:29: 15:42 help: run `rustc --explain E0308` to see a detailed explanation
/Users/nm46057/.cargo/registry/src/github.com-88ac128001ac3a9a/tokei-2.1.1/build.rs:15:29: 15:42 note: Perhaps two different versions of crate `syntex` are being used?
/Users/nm46057/.cargo/registry/src/github.com-88ac128001ac3a9a/tokei-2.1.1/build.rs:15     serde_codegen::register(&mut registry);
                                                                                                                   ^~~~~~~~~~~~~
error: aborting due to previous error
error: failed to compile `tokei v2.1.1`, intermediate artifacts can be found at `/Users/nm46057/projects/rust/target-install`

Caused by:
  Could not compile `tokei`.

To learn more, run the command again with --verbose.
@XAMPPRocky
Copy link
Owner

Fixed.

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