You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Performing these two actions consistently gets me a panic
oon@altair ~/code/rust/atuin main rm ~/.local/share/atuin/history.db
oon@altair ~/code/rust/atuin main atuin import zsh
Atuin
======================
🌍
🐘🐘🐘🐘
🐢
======================
Importing history...
Importing history from zsh
Import complete!
Followed by Up
oon@altair ~/code/rust/atuin main thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: OutOfRangeError(())', src/command/search.rs:45:67
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
This seems to occur when chrono::Utc::now().sub(h.timestamp) is negative. I'm not sure why, perhaps there's a discrepancy in the ~/.zsh_history file where the timestamps are possibly a couple seconds in the future
Performing these two actions consistently gets me a panic
Followed by Up
https://github.com/ellie/atuin/blob/de2e34ac50/src/command/search.rs#L45
This seems to occur when
chrono::Utc::now().sub(h.timestamp)
is negative. I'm not sure why, perhaps there's a discrepancy in the~/.zsh_history
file where the timestamps are possibly a couple seconds in the futureThe text was updated successfully, but these errors were encountered: