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

forc-wallet account command panics #106

Open
tritao opened this issue Apr 5, 2023 · 2 comments
Open

forc-wallet account command panics #106

tritao opened this issue Apr 5, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@tritao
Copy link

tritao commented Apr 5, 2023

As the example below shows, when issuing a forc-wallet account command, a panic is given.

Ideally this would be changed to something a little bit more friendly.

~/dev/forc-wallet$ cargo run --bin forc-wallet -- account
    Blocking waiting for file lock on build directory
    Finished dev [unoptimized + debuginfo] target(s) in 8.67s
     Running `target/debug/forc-wallet account`
thread 'main' panicked at 'failed to invoke `forc wallet account --help` command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/account.rs:310:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@eightfilms
Copy link
Contributor

I can't seem to repro this - what version of the wallet is this on?

@tritao
Copy link
Author

tritao commented Apr 17, 2023

I'm on: commit cdf3a933a6af1eaeead2966da7151c4590cf961a (HEAD -> master, tag: v0.2.2, origin/master, origin/HEAD)

Here is a full trace in case it helps:

thread 'main' panicked at 'failed to invoke `forc wallet account --help` command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/account.rs:310:10
stack backtrace:
   0: rust_begin_unwind
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:575:5
   1: core::panicking::panic_fmt
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/panicking.rs:64:14
   2: core::result::unwrap_failed
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/result.rs:1791:5
   3: core::result::Result<T,E>::expect
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/result.rs:1070:23
   4: forc_wallet::account::print_subcmd_help
             at ./src/account.rs:305:5
   5: forc_wallet::account::cli::{{closure}}
             at ./src/account.rs:115:25
   6: forc_wallet::main::{{closure}}
             at ./src/main.rs:135:73
   7: tokio::runtime::park::CachedParkThread::block_on::{{closure}}
             at ~/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/park.rs:283:63
   8: tokio::runtime::coop::with_budget
             at ~/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/coop.rs:102:5
   9: tokio::runtime::coop::budget
             at ~/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/coop.rs:68:5
  10: tokio::runtime::park::CachedParkThread::block_on
             at ~/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/park.rs:283:31
  11: tokio::runtime::context::BlockingRegionGuard::block_on
             at ~/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/context.rs:315:13
  12: tokio::runtime::scheduler::multi_thread::MultiThread::block_on
             at ~/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/scheduler/multi_thread/mod.rs:66:9
  13: tokio::runtime::runtime::Runtime::block_on
             at ~/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/runtime.rs:284:45
  14: forc_wallet::main
             at ./src/main.rs:139:5
  15: core::ops::function::FnOnce::call_once
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/ops/function.rs:507:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

@kayagokalp kayagokalp added the bug Something isn't working label Apr 17, 2023
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

3 participants