Skip to content

add color_eyre, better-panic (dev) and human-panic (release)#65

Merged
Panaetius merged 1 commit intomainfrom
eyre-better-human-panic
Mar 17, 2026
Merged

add color_eyre, better-panic (dev) and human-panic (release)#65
Panaetius merged 1 commit intomainfrom
eyre-better-human-panic

Conversation

@Panaetius
Copy link
Member

debug:

Error(hook): The application panicked (crashed).
Message:  oh no
Location: src/main.rs:17

This is a bug. Consider reporting it at https://github.com/SwissDatascienceCenter/renku-cli
Backtrace (most recent call last):
  File "/home/zenon/DEV/ETH/renku-cli/src/main.rs:11", in rnk::main
    Ok(())
  File "/home/zenon/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.50.0/src/runtime/runtime.rs:345", in tokio::runtime::runtime::Runtime::block_on
    self.block_on_inner(future, SpawnMeta::new_unnamed(fut_size))
  File "/home/zenon/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.50.0/src/runtime/runtime.rs:373", in tokio::runtime::runtime::Runtime::block_on_inner
    Scheduler::MultiThread(exec) => exec.block_on(&self.handle.inner, future),
  File "/home/zenon/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.50.0/src/runtime/scheduler/multi_thread/mod.rs:88", in tokio::runtime::scheduler::multi_thread::MultiThread::block_on
    crate::runtime::context::enter_runtime(handle, true, |blocking| {
  File "/home/zenon/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.50.0/src/runtime/context/runtime.rs:65", in tokio::runtime::context::runtime::enter_runtime
    return f(&mut guard.blocking);
  File "/home/zenon/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.50.0/src/runtime/scheduler/multi_thread/mod.rs:89", in tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}
    blocking.block_on(future).expect("failed to park thread")
  File "/home/zenon/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.50.0/src/runtime/context/blocking.rs:66", in tokio::runtime::context::blocking::BlockingRegionGuard::block_on
    park.block_on(f)
  File "/home/zenon/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.50.0/src/runtime/park.rs:284", in tokio::runtime::park::CachedParkThread::block_on
    if let Ready(v) = crate::task::coop::budget(|| f.as_mut().poll(&mut cx)) {
  File "/home/zenon/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.50.0/src/task/coop/mod.rs:133", in tokio::task::coop::budget
    with_budget(Budget::initial(), f)
  File "/home/zenon/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.50.0/src/task/coop/mod.rs:167", in tokio::task::coop::with_budget
    f()
  File "/home/zenon/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.50.0/src/runtime/park.rs:284", in tokio::runtime::park::CachedParkThread::block_on::{{closure}}
    if let Ready(v) = crate::task::coop::budget(|| f.as_mut().poll(&mut cx)) {
  File "/home/zenon/DEV/ETH/renku-cli/src/main.rs:10", in rnk::main::{{closure}}
    execute().await?;
  File "/home/zenon/DEV/ETH/renku-cli/src/main.rs:17", in rnk::execute::{{closure}}
    panic!("oh no");

The application panicked (crashed).
  oh no
in src/main.rs:17
thread: main

release:

Well, this is embarrassing.

rnk had a problem and crashed. To help us diagnose the problem you can send us a crash report.

We have generated a report file at "/tmp/report-996e3448-b794-4fbf-9f21-693fa6dc4b7a.toml". Submit an issue or email with the subject of "rnk Crash Report" and include the report as an attachment.

- Homepage: https://renkulab.io/

To submit the crash report:

open an issue at https://github.com/SwissDatascienceCenter/renku-cli

We take privacy seriously, and do not perform any automated error collection. In order to improve the software, we rely on people to submit reports.

Thank you kindly!
Error(hook): The application panicked (crashed).
Message:  oh no
Location: src/main.rs:17

This is a bug. Consider reporting it at https://github.com/SwissDatascienceCenter/renku-cli

Regular Error Output:

Error:
   0: Version - An http error occurred: An error occured reading the response: error decoding response body
   1: Version - An http error occurred: An error occured reading the response: error decoding response body
   2: An http error occurred: An error occured reading the response: error decoding response body
   3: An error occured reading the response: error decoding response body
   4: error decoding response body
   5: missing field `name` at line 1 column 23

Location:
   src/main.rs:10

sadly there's no more exit code, as eyre does not allow for it, it's just "1" now for errors. So same as before, just that we couldn't add extra status codes in the future if we want to

Copy link
Member

@eikek eikek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍🏼

@Panaetius Panaetius merged commit b819fe3 into main Mar 17, 2026
5 checks passed
@Panaetius Panaetius deleted the eyre-better-human-panic branch March 17, 2026 10:30
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

Successfully merging this pull request may close these issues.

2 participants