New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to 0.10.0 issue: "(eval):1: command not found: _bat" #503
Comments
Thank you for the feedback. There shouldn't be any shell completion files for bat 0.10 (see release notes). Maybe you just have to restart your terminal? If that doesn't help, could you please check if there is a |
I had the same problem. I believe the issue is that the completion file is cached by zsh but then it cannot find it. Try checking in |
I had this problem as well and @lavifb's comment above helped. |
Thanks @lavifb That worked for me. |
For me the bug is still present even after purging the |
Same, unfortunately 🙁 - deleted the .zcompdump file and just the line with |
Make sure to restart your shell after deleting the files. Also make sure you have the latest version of bat. If the problem persists could you tell us your OS, zsh, versions as above along with how you installed/upgraded bat? That way we can better help troubleshoot your issue. |
@lavifb
|
Restarted the shell as well. I have the exact same setup as @nshtg actually. Maybe its homebrew related? |
Well I also used homebrew and I would guess most Mac users also do too. My guess it has something to do with any zsh frameworks you might be using. Either it is setting a different file from |
#503 (comment) works! Cheers! |
Homebrew installation, no |
What about this:
|
Sorry, forgot to mention, yeah to no avail. |
Maybe this comment #503 (comment) by @lavifb can help. You could try to search your home folder for files containing
|
then maybe search root? that error message has to come from somewhere 😄 |
Huh!
Guess because zplug was homebrew-installed. Really appreciate the help. |
For me it was
that had the offending entry. Thanks for all of your help! |
It was |
I've been having the same problem on Debian Linux for years, but with
Finally, I found the answer here for a different command! Decided to write it down, because otherwise searching on Google for "command not found: _nano" is absolutely useless -- maybe it will pick up this thread for "nano" as well. Also, for reference, in general, the answer would be to search for all "zcompdump" files you may have anywhere, depending on your installation. So, do something like this: find / -regex '.*/\.?zcompdump$' 2>/dev/null Then check everything it returns, and try to delete or (safe!) rename them and start a new shell to check if the problem is solved. In my case, this results in
and the offensive one was |
After doing a
brew upgrade bat
to get version 0.10.0, when I try to tab complete a filename, I get the error output "(eval):1: command not found: _bat" (and it prints 3 times)Using:
Mac OSX
iTerm2 3.2.7
zsh 5.3 (x86_64-apple-darwin18.0)
bat 0.10.0
I'm not sure how to debug this further, any input or guidance would be appreciated
The text was updated successfully, but these errors were encountered: