cargo-n64 icon indicating copy to clipboard operation
cargo-n64 copied to clipboard

Issues when compiling the crate

Open MegaKonami opened this issue 2 years ago • 2 comments

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.

MegaKonami avatar Sep 17 '23 05:09 MegaKonami

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.

parasyte avatar Sep 17 '23 07:09 parasyte

Okay! Thanks for the advice!

MegaKonami avatar Sep 18 '23 01:09 MegaKonami