cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.85k stars 178 forks source link

zsh importing bug #143

Closed lengyijun closed 3 years ago

lengyijun commented 3 years ago

My operation:

  1. After configure .zshrc, I open the terminal for the first time
  2. mcfly is importing .zsh_history for the first time. At the same time I open another terminal. The new terminal is also trying to import .zsh_history
  3. I close two terminals when two importing process is still in progress(waiting for a long time)
  4. open terminal again, I meet following error:
    McFly: Upgrading McFly DB to version 3, please wait...thread 'main' panicked at 'McFly error: Unable to add cmd_tpl tocommands (duplicate column name: cmd_tpl)', src/history/schema.rs:41:17
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Question:

How can I remove old sqlite and rebuild the new sqlite?

lengyijun commented 3 years ago

rm ~/.mcfly -rf