Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install using cargo install pylyzer --locked #113

Open
jensenbox opened this issue Nov 6, 2024 · 2 comments
Open

Unable to install using cargo install pylyzer --locked #113

jensenbox opened this issue Nov 6, 2024 · 2 comments

Comments

@jensenbox
Copy link

Describe the bug
Running cargo install pylyzer --locked results in an error.

Reproducible Code

   Compiling molc v0.3.0
   Compiling py2erg v0.0.69
   Compiling els v0.1.60-nightly.0
error[E0005]: refutable pattern in local binding
   --> /home/christian/.cargo/registry/src/index.crates.io-6f17d22bba15001f/py2erg-0.0.69/convert.rs:450:13
    |
450 |         let Ok(py_program) = locator.fold(py_program);
    |             ^^^^^^^^^^^^^^ pattern `Err(_)` not covered
    |
    = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
    = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
    = note: the matched value is of type `Result<ModModule<SourceRange>, Infallible>`
help: you might want to use `let else` to handle the variant that isn't matched
    |
450 |         let Ok(py_program) = locator.fold(py_program) else { todo!() };
    |                                                       ++++++++++++++++

For more information about this error, try `rustc --explain E0005`.
error: could not compile `py2erg` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `pylyzer v0.0.69`, intermediate artifacts can be found at `/tmp/cargo-install99Qp5y`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Expected behavior
Complete installation

Screenshots
image

Environment

christian@christian-desktop:/projects/core$ lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description:    Linux Mint 21.3
Release:        21.3
Codename:       virginia

@jensenbox
Copy link
Author

I was able to do a rustup update and it finally did complete but I don't think it is working. When I run pylyzer with no arguments it just sits there - no progress, no indication of any work being done - nothing.

Even running pylyzer --verbose 2 shows nothing.

@maks-ivanov
Copy link

can reproduce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants