acheronfail / repgrep

An interactive replacer for ripgrep that makes it easy to find and replace across files on the command line.
Apache License 2.0
257 stars 4 forks source link

repgrep fails to compile #26

Closed caedmon-kitty closed 3 years ago

caedmon-kitty commented 3 years ago

$ cargo install repgrep

Compiling repgrep v0.4.3 error[E0603]: module derive is private --> /home/michaelr/.cargo/registry/src/github.com-1ecc6299db9ec823/repgrep-0.4.3/build.rs:2:11 2 use clap::derive::IntoApp; ^^^^^^ this module is private

note: the module derive is defined here --> /home/michaelr/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-3.0.0-beta.2/src/lib.rs:51:1 | 51 | mod derive; | ^^^^^^^^^^^

error[E0599]: no function or associated item named into_app found for struct Args in the current scope --> /home/michaelr/.cargo/registry/src/github.com-1ecc6299db9ec823/repgrep-0.4.3/build.rs:12:25 12 let mut app = Args::into_app(); ^^^^^^^^ function or associated item not found in Args
::: /home/michaelr/.cargo/registry/src/github.com-1ecc6299db9ec823/repgrep-0.4.3/src/cli.rs:20:1 20 pub struct Args { --------------- function or associated item into_app not found for this
= help: items from traits can only be used if the trait is in scope help: the following trait is implemented but not in scope; perhaps add a use for it: 1 use clap::derive::IntoApp;

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0599, E0603. For more information about an error, try rustc --explain E0599. error: could not compile repgrep.

To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error: failed to compile repgrep v0.4.3, intermediate artifacts can be found at /tmp/cargo-installwM5zz3

Caused by: build failed $ rustc --version rustc 1.43.1

acheronfail commented 3 years ago

error: failed to compile repgrep v0.4.3

The latest version is 0.7.0, can you try compiling that and see if you have any issues?

caedmon-kitty commented 3 years ago

Cloned the repository and it built fine. Should have tried that sooner. Thank you.

acheronfail commented 3 years ago

This is partly my fault too - the CI pipeline doesn't publish to crates.io. I've created #27 to track that.

acheronfail commented 3 years ago

You should be able to

cargo install repgrep

now :)