mattmc3 / antidote

https://getantidote.github.io - the cure to slow zsh plugin management
MIT License
916 stars 22 forks source link

__antidote_setup:10: bad output format specification #154

Closed Peaches491 closed 1 year ago

Peaches491 commented 1 year ago

With a fresh ZSH install (zsh 5.8 (x86_64-ubuntu-linux-gnu)) on Ubuntu 20.04 (5.15.0-73-generic) I get the following error dump when running source $antidote_dir/antidote.zsh:

> source ~/.local/share/github-repos/mattmc3/antidote/antidote.zsh
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification
__antidote_setup:10: bad output format specification

Any clues what I might be doing wrong?

mattmc3 commented 1 year ago

I just did a fresh install of Ubuntu via Multipass on MacOS and ran apt-get to pull zsh 5.8.1. I'm not seeing anything that would cause the error you're seeing. Do you have your dotfiles posted anywhere? If not, can you post here or make a temporary gist to provide details of your config?

Peaches491 commented 1 year ago

Eureka! Apparently my setup wasn't as vanilla as I'd thought! I'm stealing a coworker's dotfiles and they had KSH_ARRAYS set: https://zsh.sourceforge.io/Doc/Release/Options.html#:~:text=Emulate%20ksh%20array%20handling

After weeding through all my settings commenting out the set KSH_ARRAYS fixed the problem.

mattmc3 commented 1 year ago

I added better support for KSH_ARRAYS and tests in v1.9.3.