ndd7xv / heh

A terminal UI to edit bytes by the nibble.
MIT License
434 stars 18 forks source link

[BUG] error[E0583]: file not found for module `windows` #90

Closed brian6932 closed 10 months ago

brian6932 commented 10 months ago

Describe the bug

Updating heh from https://github.com/ndd7xv/heh.git
    Updating git repository `https://github.com/ndd7xv/heh.git`
  Installing heh v0.4.1 (https://github.com/ndd7xv/heh.git#a3bd3ffb)
    Updating crates.io index
  Downloaded crossbeam-queue v0.3.8
  Downloaded thiserror-impl v1.0.48
  Downloaded memmap2 v0.7.1
  Downloaded clap_lex v0.5.1
  Downloaded paste v1.0.14
  Downloaded quote v1.0.33
  Downloaded crossbeam-utils v0.8.16
  Downloaded crossterm v0.27.0
  Downloaded ratatui v0.22.0
  Downloaded clap_builder v4.4.2
  Downloaded syn v2.0.31
  Downloaded windows-sys v0.48.0
  Downloaded winapi v0.3.9
  Downloaded windows_x86_64_msvc v0.48.5
  Downloaded libc v0.2.147
  Downloaded anstyle-wincon v2.1.0
  Downloaded unicode-segmentation v1.10.1
  Downloaded clap_derive v4.4.2
  Downloaded anstyle-parse v0.2.1
  Downloaded parking_lot v0.12.1
  Downloaded thiserror v1.0.48
  Downloaded crossbeam-channel v0.5.8
  Downloaded lock_api v0.4.10
  Downloaded clap v4.4.2
  Downloaded proc-macro2 v1.0.66
  Downloaded crossbeam v0.8.2
  Downloaded log v0.4.20
  Downloaded unicode-width v0.1.10
  Downloaded smallvec v1.11.0
  Downloaded str-buf v1.0.6
  Downloaded strsim v0.10.0
  Downloaded unicode-ident v1.0.11
  Downloaded parking_lot_core v0.9.8
  Downloaded anstream v0.5.0
  Downloaded bitflags v2.4.0
  Downloaded crossterm_winapi v0.9.1
  Downloaded bitflags v1.3.2
  Downloaded cfg-if v1.0.0
  Downloaded cassowary v0.3.0
  Downloaded utf8parse v0.2.1
  Downloaded crossbeam-deque v0.8.3
  Downloaded error-code v2.3.1
  Downloaded windows-targets v0.48.5
  Downloaded crossbeam-epoch v0.9.15
  Downloaded clipboard-win v4.5.0
  Downloaded anstyle-query v1.0.0
  Downloaded anstyle v1.0.2
  Downloaded colorchoice v1.0.0
  Downloaded autocfg v1.1.0
  Downloaded indoc v2.0.3
  Downloaded heck v0.4.1
  Downloaded scopeguard v1.2.0
  Downloaded memoffset v0.9.0
  Downloaded arboard v3.2.1
  Downloaded crossterm v0.26.1
  Downloaded 55 crates (7.3 MB) in 0.68s (largest was `windows-sys` at 2.6 MB)
   Compiling autocfg v1.1.0
   Compiling windows_x86_64_msvc v0.48.5
   Compiling cfg-if v1.0.0
   Compiling proc-macro2 v1.0.66
   Compiling scopeguard v1.2.0
   Compiling winapi v0.3.9
   Compiling unicode-ident v1.0.11
   Compiling crossbeam-utils v0.8.16
   Compiling parking_lot_core v0.9.8
   Compiling smallvec v1.11.0
   Compiling libc v0.2.147
   Compiling anstyle v1.0.2
   Compiling utf8parse v0.2.1
   Compiling colorchoice v1.0.0
   Compiling thiserror v1.0.48
   Compiling paste v1.0.14
   Compiling crossbeam-queue v0.3.8
   Compiling str-buf v1.0.6
   Compiling anstyle-parse v0.2.1
   Compiling heck v0.4.1
   Compiling bitflags v1.3.2
   Compiling bitflags v2.4.0
   Compiling clap_lex v0.5.1
   Compiling strsim v0.10.0
   Compiling indoc v2.0.3
   Compiling lock_api v0.4.10
   Compiling memoffset v0.9.0
   Compiling crossbeam-epoch v0.9.15
   Compiling unicode-width v0.1.10
   Compiling unicode-segmentation v1.10.1
   Compiling log v0.4.20
error[E0583]: file not found for module `windows`
  --> ~\scoop\persist\rustup-msvc\.cargo\registry\src\index.crates.io-6f17d22bba15001f\libc-0.2.147\src\lib.rs:98:9
   |
98 |         mod windows;
   |         ^^^^^^^^^^^^
   |
   = help: to create the module `windows`, create file "~\scoop\persist\rustup-msvc\.cargo\registry\src\index.crates.io-6f17d22bba15001f\libc-0.2.147\src\windows.rs" or "~\scoop\persist\rustup-msvc\.cargo\registry\src\index.crates.io-6f17d22bba15001f\libc-0.2.147\src\windows\mod.rs"

For more information about this error, try `rustc --explain E0583`.
error: could not compile `libc` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `heh v0.4.1 (https://github.com/ndd7xv/heh.git#a3bd3ffb)`, intermediate artifacts can be found at `~\AppData\Local\Temp\cargo-install7M2I8y`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Updated 0 git packages.
Failed to update heh.

NativeCommandExitException: Program "cargo.exe" ended with non-zero exit code: 101.

❯ rustc --explain E0583
A file wasn't found for an out-of-line module.

Erroneous code example:

mod file_that_doesnt_exist; // error: file not found for module

fn main() {}

Please be sure that a file corresponding to the module exists. If you
want to use a module named `file_that_doesnt_exist`, you need to have a file
named `file_that_doesnt_exist.rs` or `file_that_doesnt_exist/mod.rs` in the
same directory.

Desktop (please complete the following information):

brian6932 commented 10 months ago

my bad, cargo migration issue