databricks / click

The "Command Line Interactive Controller for Kubernetes"
Apache License 2.0
1.49k stars 84 forks source link

error[E0599]: no method named `stdin_handle` found for type `duct::Expression` in the current scope #119

Closed theserverkid closed 4 years ago

theserverkid commented 4 years ago

Hello

I am trying to install click on windows. I have tried to install on windows CMD or WSL and have gotten the same error shown below.

Compiling click v0.4.2 error[E0599]: no method named stdin_handle found for type duct::Expression in the current scope

--> /home/xxxxx/.cargo/registry/src/github.com-1ecc6299db9ec823/click-0.4.2/src/output.rs:91:27 | 91 | let handle = expr.stdin_handle(pipe_read).start()?; | ^^^^^^^^^^^^ help: there is a method with a similar name: stdin_file

mangeshhambarde commented 4 years ago

Exact same error on MacOS on running cargo install click.

aistellar commented 4 years ago

Same on Linux.

juliuszsompolski commented 4 years ago

Same. Is there any known workaround @nicklan ?

juliuszsompolski commented 4 years ago

Changelog https://crates.io/crates/duct mentions in v0.13 "Renamed stdin_handle/stdout_handle/stderr_handle to stdin_file/stdout_file/stderr_file.", but click should be using 0.12 still... Doing

-        let handle = expr.stdin_handle(pipe_read).start()?;
+        let handle = expr.stdin_file(pipe_read).start()?;

makes it advance to a different error:

error[E0308]: mismatched types
  --> src/output.rs:94:19
   |
94 |             expr: handle,
   |                   ^^^^^^ expected struct `duct::Handle`, found a different struct `duct::Handle`
   |
   = note: expected type `duct::Handle` (struct `duct::Handle`)
              found type `duct::Handle` (struct `duct::Handle`)
note: Perhaps two different versions of crate `duct` are being used?
  --> src/output.rs:94:19
nicklan commented 4 years ago

I believe this is fixed by #120, please test and let me know

juliuszsompolski commented 4 years ago

Thanks @nicklan! cargo install --path . works for me now.

nicklan commented 4 years ago

great. closing the issue. feel free to reopen if anyone encounters this still