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

Issues when compiling the crate #53

Open
MegaKonami opened this issue Sep 17, 2023 · 2 comments
Open

Issues when compiling the crate #53

MegaKonami opened this issue Sep 17, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@MegaKonami
Copy link

Whenever I run cargo run using the nightly branch, the following error occurs:

error[E0599]: no method named `backtrace` found for reference `&dyn StdError` in the current scope
  --> C:\Users\user\.cargo\registry\src\index.crates.io-6f17d22bba15001f\cargo-n64-0.2.0\src\lib.rs:62:36
   |
62 |     if let Some(backtrace) = error.backtrace() {
   |                                    ^^^^^^^^^ method not found in `&dyn Error`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `cargo-n64` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...

What can cause this and what can I do to fix this?

Running Windows 11 with latest Rust Nightly but possibly out-of-date Rust Stable.

Also, I'm fairly new to Rust things, so try and explain them like I'm 5 years old.

@parasyte parasyte added the bug Something isn't working label Sep 17, 2023
@parasyte
Copy link
Collaborator

It's been a while since I updated this crate. You have to use the version specified in https://github.com/rust-console/cargo-n64/blob/main/rust-toolchain ... Cargo should do it for you, but probably not with cargo install cargo-n64 (from crates.io). Your best bet is to clone the repo and install from there with cargo install --path .

I'll try to find some time to update everything! But I'll leave this issue open until it's done.

@MegaKonami
Copy link
Author

Okay! Thanks for the advice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants