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

Documentation failed to build on docs.rs #14

Closed
gagath opened this issue Feb 22, 2018 · 4 comments
Closed

Documentation failed to build on docs.rs #14

gagath opened this issue Feb 22, 2018 · 4 comments

Comments

@gagath
Copy link

gagath commented Feb 22, 2018

See https://docs.rs/crate/pretty_env_logger/0.2.2

@seanmonstar
Copy link
Owner

Um, what... The error in the build logs there is odd. I don't know why cratesfyi cannot build it, AppVeyor and TravisCI both can...

@zomerfaun
Copy link

I just added pretty_env_logger as a dependency of my project, and I cannot build the documentation locally either:

zomerfaun@falafel:~/Code/grot$ cargo doc
 Documenting pretty_env_logger v0.2.2
error[E0465]: multiple rlib candidates for `ansi_term` found
  --> /home/zomerfaun/.cargo/registry/src/github.com-1ecc6299db9ec823/pretty_env_logger-0.2.2/src/lib.rs:24:1
   |
24 | extern crate ansi_term;
   | ^^^^^^^^^^^^^^^^^^^^^^^
   |
note: candidate #1: /home/zomerfaun/Code/grot/target/debug/deps/libansi_term-7a8d097f4579caf4.rlib
  --> /home/zomerfaun/.cargo/registry/src/github.com-1ecc6299db9ec823/pretty_env_logger-0.2.2/src/lib.rs:24:1
   |
24 | extern crate ansi_term;
   | ^^^^^^^^^^^^^^^^^^^^^^^
note: candidate #2: /home/zomerfaun/Code/grot/target/debug/deps/libansi_term-8f6c11bc96ea3692.rlib
  --> /home/zomerfaun/.cargo/registry/src/github.com-1ecc6299db9ec823/pretty_env_logger-0.2.2/src/lib.rs:24:1
   |
24 | extern crate ansi_term;
   | ^^^^^^^^^^^^^^^^^^^^^^^

error[E0463]: can't find crate for `ansi_term`
  --> /home/zomerfaun/.cargo/registry/src/github.com-1ecc6299db9ec823/pretty_env_logger-0.2.2/src/lib.rs:24:1
   |
24 | extern crate ansi_term;
   | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to 2 previous errors

error: Could not document `pretty_env_logger`.

Caused by:
  process didn't exit successfully: `rustdoc --crate-name pretty_env_logger /home/zomerfaun/.cargo/registry/src/github.com-1ecc6299db9ec823/pretty_env_logger-0.2.2/src/lib.rs -o /home/zomerfaun/Code/grot/target/doc -L dependency=/home/zomerfaun/Code/grot/target/debug/deps --extern env_logger=/home/zomerfaun/Code/grot/target/debug/deps/libenv_logger-a2e68658decc32cd.rlib --extern ansi_term=/home/zomerfaun/Code/grot/target/debug/deps/libansi_term-7a8d097f4579caf4.rlib --extern log=/home/zomerfaun/Code/grot/target/debug/deps/liblog-321c9fd4be003018.rlib --extern ansi_term=/home/zomerfaun/Code/grot/target/debug/deps/libansi_term-8f6c11bc96ea3692.rlib` (exit code: 101)

This is using stable Rust (rustdoc version 1.24.1). Maybe this is a bug in rustdoc, since it probably shouldn't try to build both versions of ansi_term at the same time?

@derekdreery
Copy link

Fix in cargo here.

@pheki
Copy link

pheki commented Jun 5, 2020

@seanmonstar I believe this has been 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

5 participants