Skip to content

Compilation error on windows 11 #4

@Kiyonari

Description

@Kiyonari

Hi, I have a compilation error when trying to install Gumbo.
I am not sure I can do something about it on my end so I open an issue to let you know

here's the traceback from compilation :

...
   Compiling tokio-macros v2.6.0                                                                                                                                                                                      
   Compiling sqlx v0.8.6                                                                                                                                                                                              
   Compiling welds-connections v0.4.20                                                                                                                                                                                
   Compiling welds v0.4.20                                                                                                                                                                                            
   Compiling gumbo v0.1.27
error[E0277]: `?` couldn't convert the error to `std::io::Error`                                                                                                                                                      
  --> C:\Users\<>\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\gumbo-0.1.27\src\setup_shell.rs:59:42
   |
58 | fn setup_powershell() -> io::Result<()> {
   |                          -------------- expected `std::io::Error` because of this
59 |     let profile = env::var("USERPROFILE")?;
   |                   -----------------------^ the trait `From<VarError>` is not implemented for `std::io::Error`
   |                   |
   |                   this can't be annotated with `?` because it has type `Result<_, VarError>`
   |
   = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
   = help: the following other types implement trait `From<T>`:
             `std::io::Error` implements `From<Elapsed>`
             `std::io::Error` implements `From<IntoInnerError<W>>`
             `std::io::Error` implements `From<JoinError>`
             `std::io::Error` implements `From<NulError>`
             `std::io::Error` implements `From<TryReserveError>`
             `std::io::Error` implements `From<anstyle_wincon::windows::inner::IoError>`
             `std::io::Error` implements `From<bytes::TryGetError>`
             `std::io::Error` implements `From<getrandom::error::Error>`
           and 8 others

For more information about this error, try `rustc --explain E0277`.                                                                                                                                                   
error: could not compile `gumbo` (bin "gumbo") due to 1 previous error                                                                                                                                                
error: failed to compile `gumbo v0.1.27`, intermediate artifacts can be found at `C:\Users\<>\AppData\Local\Temp\cargo-installgdJTnr`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Best regards,

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