Misterio77/flavours

Build failed: could not compile flavours` due to 21 previous errors

gh-jsoares opened this issue · 2 comments

Hi,

Trying to install flavours by running cargo install flavours but I get the following output:

   Compiling flavours v0.5.1
error[E0599]: no variant or associated item named `UnifiedHelpMessage` found for enum `AppSettings` in the current scope
 --> /home/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/cli.rs:9:31
  |
9 |         .setting(AppSettings::UnifiedHelpMessage)
  |                               ^^^^^^^^^^^^^^^^^^ 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/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/cli.rs:13:31
   |
13 |         .setting(AppSettings::ColoredHelp)
   |                               ^^^^^^^^^^^ variant or associated item not found in `AppSettings`

error[E0599]: no variant or associated item named `UnifiedHelpMessage` found for enum `AppSettings` in the current scope
  --> /home/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/cli.rs:49:39
   |
49 |                 .setting(AppSettings::UnifiedHelpMessage)
   |                                       ^^^^^^^^^^^^^^^^^^ 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/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/cli.rs:53:39
   |
53 |                 .setting(AppSettings::ColoredHelp)
   |                                       ^^^^^^^^^^^ variant or associated item not found in `AppSettings`

error[E0599]: no variant or associated item named `UnifiedHelpMessage` found for enum `AppSettings` in the current scope
  --> /home/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/cli.rs:58:39
   |
58 |                 .setting(AppSettings::UnifiedHelpMessage)
   |                                       ^^^^^^^^^^^^^^^^^^ 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/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/cli.rs:62:39
   |
62 |                 .setting(AppSettings::ColoredHelp)
   |                                       ^^^^^^^^^^^ variant or associated item not found in `AppSettings`

error[E0599]: no variant or associated item named `UnifiedHelpMessage` found for enum `AppSettings` in the current scope
  --> /home/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/cli.rs:80:39
   |
80 |                 .setting(AppSettings::UnifiedHelpMessage)
   |                                       ^^^^^^^^^^^^^^^^^^ 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/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/cli.rs:84:39
   |
84 |                 .setting(AppSettings::ColoredHelp)
   |                                       ^^^^^^^^^^^ variant or associated item not found in `AppSettings`

error[E0599]: no variant or associated item named `UnifiedHelpMessage` found for enum `AppSettings` in the current scope
   --> /home/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/cli.rs:102:39
    |
102 |                 .setting(AppSettings::UnifiedHelpMessage)
    |                                       ^^^^^^^^^^^^^^^^^^ 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/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/cli.rs:106:39
    |
106 |                 .setting(AppSettings::ColoredHelp)
    |                                       ^^^^^^^^^^^ variant or associated item not found in `AppSettings`

error[E0599]: no variant or associated item named `UnifiedHelpMessage` found for enum `AppSettings` in the current scope
   --> /home/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/cli.rs:156:39
    |
156 |                 .setting(AppSettings::UnifiedHelpMessage)
    |                                       ^^^^^^^^^^^^^^^^^^ 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/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/cli.rs:160:39
    |
160 |                 .setting(AppSettings::ColoredHelp)
    |                                       ^^^^^^^^^^^ variant or associated item not found in `AppSettings`

error[E0599]: no variant or associated item named `UnifiedHelpMessage` found for enum `AppSettings` in the current scope
   --> /home/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/cli.rs:183:39
    |
183 |                 .setting(AppSettings::UnifiedHelpMessage)
    |                                       ^^^^^^^^^^^^^^^^^^ 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/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/cli.rs:187:39
    |
187 |                 .setting(AppSettings::ColoredHelp)
    |                                       ^^^^^^^^^^^ variant or associated item not found in `AppSettings`

error[E0599]: no variant or associated item named `UnifiedHelpMessage` found for enum `AppSettings` in the current scope
   --> /home/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/cli.rs:198:39
    |
198 |                 .setting(AppSettings::UnifiedHelpMessage)
    |                                       ^^^^^^^^^^^^^^^^^^ 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/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/cli.rs:202:39
    |
202 |                 .setting(AppSettings::ColoredHelp)
    |                                       ^^^^^^^^^^^ variant or associated item not found in `AppSettings`

error[E0061]: this function takes 4 arguments but 3 arguments were supplied
   --> /home/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/completions.rs:12:25
    |
12  |         Some("bash") => generate::<Bash, _>(&mut build_cli(), "flavours", &mut io::stdout()),
    |                         ^^^^^^^^^^^^^^^^^^^ ----------------  ----------  ----------------- supplied 3 arguments
    |                         |
    |                         expected 4 arguments
    |
note: function defined here
   --> /home/jsoares/.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/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/completions.rs:13:27
    |
13  |         Some("elvish") => generate::<Elvish, _>(&mut build_cli(), "flavours", &mut io::stdout()),
    |                           ^^^^^^^^^^^^^^^^^^^^^ ----------------  ----------  ----------------- supplied 3 arguments
    |                           |
    |                           expected 4 arguments
    |
note: function defined here
   --> /home/jsoares/.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/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/completions.rs:15:13
    |
15  |             generate::<PowerShell, _>(&mut build_cli(), "flavours", &mut io::stdout())
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------  ----------  ----------------- supplied 3 arguments
    |             |
    |             expected 4 arguments
    |
note: function defined here
   --> /home/jsoares/.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/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/completions.rs:19:13
    |
19  |             generate::<Fish, _>(&mut build_cli(), "flavours", &mut buffer);
    |             ^^^^^^^^^^^^^^^^^^^ ----------------  ----------  ----------- supplied 3 arguments
    |             |
    |             expected 4 arguments
    |
note: function defined here
   --> /home/jsoares/.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/jsoares/.cargo/registry/src/github.com-1ecc6299db9ec823/flavours-0.5.1/src/completions.rs:33:13
    |
33  |             generate::<Zsh, _>(&mut build_cli(), "flavours", &mut buffer);
    |             ^^^^^^^^^^^^^^^^^^ ----------------  ----------  ----------- supplied 3 arguments
    |             |
    |             expected 4 arguments
    |
note: function defined here
   --> /home/jsoares/.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)
    |        ^^^^^^^^

Some errors have detailed explanations: E0061, E0599.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `flavours` due to 21 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `flavours v0.5.1`, intermediate artifacts can be found at `/tmp/cargo-installoG5gXA`

Caused by:
  build failed

I've also tried installing version 0.4.0 but the same thing occurs, the output is slightly different (has 26 errors instead of 21).

Kind Regards,
jsoares

Seems the cargo version is desynced with the repo, weird. I'll have a look at it

Found the issue: rust-lang/cargo#7169
It seems cargo install does not respect the locked dependencies, so it tries to compile flavours with clap 3.0.0-beta.5 instead of 3.0.0-beta.4. Installing with cargo install --locked flavours should work for now, i'll go ahead and push a version explicitly locking the clap version.