rikhuijzer / ata

Ask the Terminal Anything (ATA): ChatGPT in the terminal
MIT License
274 stars 17 forks source link

ata crashes when an old file is available #41

Closed rikhuijzer closed 5 months ago

rikhuijzer commented 5 months ago

Bug report by vintage-hack at Reddit (https://www.reddit.com/r/commandline/comments/10u9g7q/comment/kuvl3x2):

~/ ata
Ask the Terminal Anything
thread 'main' panicked at ata/src/main.rs:88:10:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
rikhuijzer commented 5 months ago

To fix this without updating ata, run

$ rm "/Users/<YOUR USERNAME>/Library/Application Support/ata.Ask-the-Terminal-Anything-(ATA)-Project-Authors.ata/ata.toml"

where <YOUR USERNAME> is replaced by your username.

This will remove the old configuration file. Then v2.0.3 of ata won't crash anymore and it will ask you to make a new file.

rikhuijzer commented 5 months ago

Brew update is at https://github.com/Homebrew/homebrew-core/pull/166217.