You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing, I get errors every time I open a new iTerm window:
/Users/bengolder/.zsh/functions/_git_delete_branch.zwc:1: parse error near `)'
/Users/bengolder/.zsh/functions/change-extension.zwc:1: no such file or directory: ^G^F^E^D^A^H^A
/Users/bengolder/.zsh/functions/envup.zwc:1: no such file or directory: ^G^F^E^D^Ax^A
[3] 75334
/Users/bengolder/.zsh/functions/g.zwc:1: no such file or directory: ^G^F^E^D^A
[4] 75335
/Users/bengolder/.zsh/functions/g.zwc:1: no such file or directory:
[4] + exit 127 ��
[3] + exit 127 �A
/Users/bengolder/.zsh/functions/g.zwc:1: command not found: A
/Users/bengolder/.zsh/functions/mcd.zwc:1: no such file or directory: ^G^F^E^D^A\M-T
Wed Apr 24 10:42 AM ~ %
It's clear that these are occurring when the zshrc file runs this loop to source all the files in .zsh/functions:
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: #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. 🤔
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!
The text was updated successfully, but these errors were encountered: