marlonrichert / zsh-autocomplete

🤖 Real-time type-ahead completion for Zsh. Asynchronous find-as-you-type autocompletion.
MIT License
5.41k stars 150 forks source link

Incompatibility with bunjs completions #632

Closed pesterhazy closed 1 year ago

pesterhazy commented 1 year ago

It appears there's a conflict with zsh-autocomplete

With bun completions enabled, when I type l<TAB>, I get:

~$ % arch(eval):1: command not found: _autocomplete.command
(eval):1: command not found: _autocomplete.command
(eval):1: command not found: _autocomplete.command
(eval):1: command not found: _autocomplete.command
(eval):1: command not found: _autocomplete.command
(eval):1: command not found: _autocomplete.command
(eval):1: command not found: _autocomplete.command
(eval):1: command not found: _autocomplete.command

The probably disappears when I remove this line from my zshrc

[ -s "/Users/user/.bun/_bun" ] && source "/Users/user/.bun/_bun"

I suspect the problem is with bunjs so I'm filing the issue here for completeness only, so that people may find this bug report if they search for the error string. Feel free to close if there's nothing actionable on your side.

pesterhazy commented 1 year ago

See also https://github.com/oven-sh/bun/issues/1272#issuecomment-1676343857

pesterhazy commented 1 year ago

Please see @marlonrichert's comment here https://github.com/oven-sh/bun/issues/1272#issuecomment-1681018321

marlonrichert commented 1 year ago

@pesterhazy Let me know when Bun's completion has been updated, if it's still a problem then.