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

Tests failed with Rust 1.39 #18

Closed
tim77 opened this issue Nov 15, 2019 · 6 comments
Closed

Tests failed with Rust 1.39 #18

tim77 opened this issue Nov 15, 2019 · 6 comments

Comments

@tim77
Copy link

tim77 commented Nov 15, 2019

error[E0599]: no method named `decode` found for type `docopt::Docopt` in the current scope
  --> examples/docopt.rs:31:55
   |
31 |         .and_then(|d| d.argv(env::args().into_iter()).decode())
   |                                                       ^^^^^^ method not found in `docopt::Docopt`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0599`.
error: could not compile `stderrlog`.
@cardoe
Copy link
Owner

cardoe commented Nov 16, 2019

You'll have to provide some more context.

╰─$ cargo test
warning: unused manifest key: package.changelog
   Compiling winapi-build v0.1.1
   Compiling proc-macro2 v0.4.30
   Compiling winapi v0.2.8
<snip>
running 4 tests
test src/lib.rs -  (line 19) ... ok
test src/lib.rs -  (line 79) ... ok
test src/lib.rs -  (line 122) ... ok
test src/lib.rs -  (line 35) ... ok

test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
╰─$ rustc --version
rustc 1.39.0 (4560ea788 2019-11-04)

@cardoe
Copy link
Owner

cardoe commented Nov 16, 2019

╰─$ cargo test --examples
warning: unused manifest key: package.changelog
   Compiling stderrlog v0.4.2-alpha.0 (/Users/cardoe/work/stderrlog-rs)
warning: unused `#[macro_use]` import
  --> examples/structopt.rs:12:1
   |
12 | #[macro_use]
   | ^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

    Finished dev [unoptimized + debuginfo] target(s) in 1.29s
     Running target/debug/examples/clap-ca87b318a57aab18

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/examples/docopt-ab83d79d23144052

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/examples/structopt-03f8893df335e812

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/examples/timestamp-8f7bc4334de3bf81

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

@cardoe
Copy link
Owner

cardoe commented Nov 16, 2019

Did you potentially bump the version of docopt? I know they changed the API in newer versions and I haven't kept up as I switched my projects to clap/structopt. Even the docopt crate page says it recommends people switch.

@tim77
Copy link
Author

tim77 commented Nov 17, 2019

You'll have to provide some more context.

Yep, sorry. Here is a full build log. I am trying to push stderrlog-rs into official Fedora repos.

Did you potentially bump the version of docopt?

Oh indeed. Bumped:

-version = "0.6"
+version = "1.1"

@cardoe
Copy link
Owner

cardoe commented Nov 17, 2019

Any real reason? The only place its used is for the pre-1.0 API docopt example.

@cardoe
Copy link
Owner

cardoe commented Nov 20, 2019

Well I'm going to close this for now since this was a change to the explicitly stated dependencies of the Cargo.toml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants