jameslittle230 / stork

🔎 Impossibly fast web search, made for static sites.
https://stork-search.net
Apache License 2.0
2.73k stars 56 forks source link

error: there is no argument named `html_output` #301

Closed sonologic closed 2 years ago

sonologic commented 2 years ago

As per the instructions I wanted to install stork by executing:

cargo install stork-search --locked

But that gives a build error:

   Compiling stork-lib v1.5.0
error: there is no argument named `html_output`
  --> /home/gmc/.cargo/registry/src/github.com-1ecc6299db9ec823/stork-lib-1.5.0/src/index_v3/build/fill_intermediate_entries/word_list_generators/markdown_word_list_generator.rs:13:50
   |
13 |     let html_string = format!("<html><body><main>{html_output}</main></body></html>");
   |                                                  ^^^^^^^^^^^^^

error: could not compile `stork-lib` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `stork-search v1.5.0`, intermediate artifacts can be found at `/tmp/cargo-installI4EerC`

Caused by:
  build failed

Details about my os and environment:

gmc@coltrane:~/src$ rustc --version
rustc 1.57.0
gmc@coltrane:~/src$ cargo --version
cargo 1.57.0
gmc@coltrane:~/src$ node --version
v10.19.0
gmc@coltrane:~/src$ uname -a
Linux coltrane 5.4.0-109-generic #123-Ubuntu SMP Fri Apr 8 09:10:54 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
gmc@coltrane:~/src$ cat /etc/deb
debconf.conf    debian_version  
gmc@coltrane:~/src$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.4 LTS"
gmc@coltrane:~/src$ 
jameslittle230 commented 2 years ago

Hi @sonologic! This is syntax introduced in Rust 1.58.0, which was released on January 13 2022. You'll need to run rustup update stable - then Stork should compile if you try again.

jameslittle230 commented 2 years ago

Closing since I believe this has been resolved. Feel free to reopen it if you're having any further issues!