Skip to content

cargo install fails on windows with unresolved import compilation error #17

Open

Description

@ivanatpr

I get the following error when I try to do cargo install loop-rs on Windows 7:

Compiling loop-rs v0.3.3
error[E0432]: unresolved import `isatty::stdin_isatty`
  --> src\main.rs:16:14
   |
16 | use isatty::{stdin_isatty};
   |              ^^^^^^^^^^^^ no `stdin_isatty` in the root. Did you mean to use `stderr_isatty`?

Here is my rustup show output:

Default host: x86_64-pc-windows-msvc
installed toolchains
--------------------
stable-x86_64-pc-windows-msvc
nightly-x86_64-pc-windows-msvc
active toolchain
----------------
stable-x86_64-pc-windows-msvc (default)
rustc 1.27.0 (3eda71b00 2018-06-19)

Activity

  1. ivanatpr commented on Jun 27, 2018

    @ivanatpr
    Author

    Looks like this is a known issue where the isatty crate is missing a Windows implementation for stdin_isatty(): dtolnay/isatty#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions