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
{{ message }}
Repository navigation
History database gets corrupted on clearing #14244
I can still reproduce this under 106.1, but once I exit out of the session in which I did history -c, I can start new sessions just fine.
Ah, OK. Now I understand.
This means the DB isn't corrupted, but simply the session keeps a lock on the file.
Probably in that case we need to document this in the output of history -c command.
I got this crash when using the up arrow in the terminal.
I was going to open an issue, but this appears to be the same/similar?
…/dotfiles
❯ history -c
…/dotfiles
❯ history
╭────────────╮
│ empty list │
╰────────────╯
…/dotfiles
❯ Error: × Main thread panicked.
├─▶ at /Users/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/reedline-0.44.0/src/history/sqlite_backed.rs:128:14
╰─▶ called `Result::unwrap()` on an `Err` value: SqliteFailure(Error { code: Unknown, extended_code: 1 }, Some("no such table: history"))
help: set the `RUST_BACKTRACE=1` environment variable to display a backtrace.
Activity
yerlaser commentedon Nov 18, 2024
Upgraded to version 100 and the issue persists.
NotTheDr01ds commentedon Aug 25, 2025
I can still reproduce this under 106.1, but once I exit out of the session in which I did
history -c, I can start new sessions just fine.yerlaser commentedon Aug 25, 2025
Ah, OK. Now I understand.
This means the DB isn't corrupted, but simply the session keeps a lock on the file.
Probably in that case we need to document this in the output of
history -ccommand.I can create the PR for the doc if you agree.
NotTheDr01ds commentedon Aug 25, 2025
I still consider it a bug that it doesn't release the lock after
history -c, so I'd rather just keep this open than "document the bug".CharlesTaylor7 commentedon Dec 14, 2025
I got this crash when using the up arrow in the terminal.
I was going to open an issue, but this appears to be the same/similar?
Clear sqlite history with SQL instead of deleting the file (nushell#1…