tversteeg/emplace

[BUG] Fail to compile

jorpilo opened this issue · 1 comments

Describe the bug
cargo installation fails with the following errors:

Compiling emplace v1.4.1
error[E0061]: this function takes 4 arguments but 3 arguments were supplied
--> /home/jorpilo/.cargo/registry/src/github.com-1ecc6299db9ec823/emplace-1.4.1/src/init.rs:50:13
|
50 | clap_generate::generate::<Bash, _>(&mut public_clap_app(), "emplace", &mut io::stdout())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ---------------------- --------- ----------------- supplied 3 arguments
| |
| expected 4 arguments
|
note: function defined here
--> /home/jorpilo/.cargo/registry/src/github.com-1ecc6299db9ec823/clap_generate-3.0.0-beta.5/src/lib.rs:239:8
|
239 | pub fn generate<G, S>(gen: G, app: &mut clap::App, bin_name: S, buf: &mut dyn Write)
| ^^^^^^^^

error[E0061]: this function takes 4 arguments but 3 arguments were supplied
--> /home/jorpilo/.cargo/registry/src/github.com-1ecc6299db9ec823/emplace-1.4.1/src/init.rs:53:13
|
53 | clap_generate::generate::<Zsh, _>(&mut public_clap_app(), "emplace", &mut io::stdout())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ---------------------- --------- ----------------- supplied 3 arguments
| |
| expected 4 arguments
|
note: function defined here
--> /home/jorpilo/.cargo/registry/src/github.com-1ecc6299db9ec823/clap_generate-3.0.0-beta.5/src/lib.rs:239:8
|
239 | pub fn generate<G, S>(gen: G, app: &mut clap::App, bin_name: S, buf: &mut dyn Write)
| ^^^^^^^^

error[E0061]: this function takes 4 arguments but 3 arguments were supplied
--> /home/jorpilo/.cargo/registry/src/github.com-1ecc6299db9ec823/emplace-1.4.1/src/init.rs:56:13
|
56 | clap_generate::generate::<Fish, _>(&mut public_clap_app(), "emplace", &mut io::stdout())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ---------------------- --------- ----------------- supplied 3 arguments
| |
| expected 4 arguments
|
note: function defined here
--> /home/jorpilo/.cargo/registry/src/github.com-1ecc6299db9ec823/clap_generate-3.0.0-beta.5/src/lib.rs:239:8
|
239 | pub fn generate<G, S>(gen: G, app: &mut clap::App, bin_name: S, buf: &mut dyn Write)
| ^^^^^^^^

error[E0599]: no variant or associated item named ColorAuto found for enum AppSettings in the current scope
--> /home/jorpilo/.cargo/registry/src/github.com-1ecc6299db9ec823/emplace-1.4.1/src/main.rs:38:38
|
38 | .global_setting(AppSettings::ColorAuto)
| ^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
--> /home/jorpilo/.cargo/registry/src/github.com-1ecc6299db9ec823/emplace-1.4.1/src/main.rs:39:38
|
39 | .global_setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

Some errors have detailed explanations: E0061, E0599.
For more information about an error, try rustc --explain E0061.
error: failed to compile emplace v1.4.1, intermediate artifacts can be found at /tmp/cargo-installm8YwVw

Caused by:
could not compile emplace due to 5 previous error

To Reproduce
Steps to reproduce the behavior:

run "cargo install emplace"

Expected behavior
A clear and concise description of what you expected to happen.

emplace version 1.4.1 should be compiled and installed in the system

Desktop (please complete the following information):

  • OS: [e.g. Linux] Arch Linux
  • Shell: [e.g Bash] Fish

Additional context
cargo version 1.56.0 (4ed5d137b 2021-10-04)
rustc version 1.56.1 (59eed8a2a 2021-11-01)

Machine information
Print the contents of emplace bugreport here.

Duplicated #229