conradludgate / wordle

Wordle TUI in Rust
122 stars 21 forks source link

error: there is no argument named `game_type` while compiling `cl-wordle` #4

Closed infamousjoeg closed 2 years ago

infamousjoeg commented 2 years ago

When running the command cargo install cl-wordle:

error: there is no argument named `game_type`
   --> /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/cl-wordle-0.1.4/src/bin/wordle/game.rs:300:27
    |
300 |         write!(f, "Wordle {game_type} {score}/6",)?;
    |                           ^^^^^^^^^^^

error: there is no argument named `score`
   --> /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/cl-wordle-0.1.4/src/bin/wordle/game.rs:300:39
    |
300 |         write!(f, "Wordle {game_type} {score}/6",)?;
    |                                       ^^^^^^^

error: failed to compile `cl-wordle v0.1.4`, intermediate artifacts can be found at `/var/folders/9z/lyskqf9117j49qnlgjmh5p340000gn/T/cargo-installu6UsVg`

Caused by:
  could not compile `cl-wordle` due to 2 previous errors

cargo 1.56.0 MacOS Monterey 12.1

SOLUTION: Do not use Homebrew to install Rust. It will be a non-latest unsupported version.

alex-kinokon commented 2 years ago

Same error, cargo 1.57.0, Debian 11 x86-64.

schappim commented 2 years ago

same error macOS 12.2 (21D49)

conradludgate commented 2 years ago

This requires rust 1.58. Please update and try again

schappim commented 2 years ago

Can confirm works on 1.58, but not 1.57.0.