Open bengolder opened 7 months ago
I googled the zwc file extension because those look like they shouldn't be there.
https://www.reddit.com/r/zsh/comments/k1yaa1/help_me_understand_errors_in_zwc_files/
Apparently zsh can compile scripts into zwc files. News to me. Sourcing those files breaks things. I wonder why you have those zwc files in there. 🤔
Here's a previous PR in this repo to skip zwc files in another context: https://github.com/thoughtbot/dotfiles/pull/526 Perhaps we should bring the same technique to sourcing the functions directory?
I don't know what is creating the .zwc files. They seem to be autogenerated after the first time the functions are accessed in zsh. I've taken no intentional steps to compile them, and I assumed they were just part of a default zsh or dotfiles setup. 🤔
It seems that .zwc files are skipped throughout load_settings, so I can add a PR to do that for these additional function files.
After installing, I get errors every time I open a new iTerm window:
It's clear that these are occurring when the
zshrc
file runs this loop to source all the files in.zsh/functions
:If I delete the
~/.zsh
directory and rerunrcup
, the errors are absent until new.zwc
files are autogenerated for each file in~/.zsh/functions
:System details:
Any questions or debugging suggestions welcome!