Closed Cueball closed 1 year ago
Sorry to hear you had a bad experience with antidote @Cueball. I thought I had thoroughly tested with every one of the zillions of setopts enabled, but clearly I missed being thorough with this one. I've added a test specifically for this and have published a fix. Let me know if it works for you. If so, I'll tag a new release.
LGTM. š¢
Did need to switch from the brew
version to the git version, but I don't see that making a difference. I had patched the local version enough to keep me rolling, but your test coverage looks like it's picked up a lot more changes that I hadn't even considered. (Honest, that's an useful test framework there; I'll have to check it out next time I have to build something script-based.)
Thanks for the prompt fix for my shell option weirdness lol š
Once I bump the version, I will republish to brew so you will be switch back once that goes live.
Just in the midst of redoing my dotfiles and moving to antidote.
Installed antidote, launched it for the first time and it generated the following errors when invoking the
antidote
command:After some hunting, I found that having the zsh option
POSIX_IDENTIFIERS
set will reliably reproduce this issue. Runningsetopt NO_POSIX_IDENTIFIERS; antidote
immediately works without issue.In the
antidote.zsh
file, it's due to lines like:if (( $#o_version )); then
where$#
is, according to the man page:The way I read that is that expressions like
$#o_version
needs to be changed to${#o_version}
. I expect this change should have no effect upon the code withPOSIX_IDENTIFIERS
unset?[I've had this collection of zsh options set for ages without issue (worked with zinit and whatever I used before that). I'm pretty sure I've isolated this properly but I'm also way overdue for bed, so... š]