Can't run any command after MacOS update
I'm getting this:
mktemp: mkstemp failed on /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T//mcfly.AGPRxtdf: Permission denied
-bash: : No such file or directory
thread 'main' panicked at src/shell_history.rs:17:45:
McFly error: "" file not found
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
after running any command.
Last time it worked was before I updated my OS (to 15.7 (24G222)), so I'm guessing this is related.
After searching a bit, it looks like this is supposed to be a temporary folder, but MacOS is "managing" it, whatever that means, and I have no permissions to it.
Not sure if there's a way to land to a working state again?
Setting TMPDIR to a different directory seems to fix it ¯\_(ツ)_/¯
May be related to #377
Same here, after upgrading macOS to 15.7.1 (24G231) mcfly stops working with:
mkstemp failed on /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T//mcfly.hxxeGAzJ: Permission denied
Is there an mcfly env var I can use to change temp to a different dir?
@stefanprodan You can set TMPDIR, which worked for me. But I later got another MacOS update, left it unset again, and McFly was working without an issue. Or maybe it just needed a reboot? :)
You can set TMPDIR, which worked for me.
This would change it for all, I would not want that, just for mcfly to avoid this bug.
@BoD I did applied the latest macOS update, restarted and now the issue is gone YEY