zsh-autosuggestions icon indicating copy to clipboard operation
zsh-autosuggestions copied to clipboard

Tab results in 'bad math expression' error message

Open bbugyi200 opened this issue 3 years ago • 2 comments

Describe the bug

The following error message is printed to STDERR anytime I press the TAB key:

_zsh_autosuggest_highlight_apply:3: bad math expression: operator expected at `POSTDISPLA...'

To Reproduce

Steps to reproduce the behavior:

  1. Open my zsh shell.
  2. Press TAB
  3. Watch error message print to console.

Expected behavior

No error message.

Desktop

  • OS + distribution: Debian GNU/Linux 11 (bullseye)
  • Zsh version: zsh 5.8 (x86_64-debian-linux-gnu)
  • Plugin version: v0.7.0 / a411ef3e0992d4839f0732ebeb9823024afaaaa8

Additional Context

This just started happening yesterday seemingly at random (I did not update zsh, this plugin, or oh-my-zsh).

bbugyi200 avatar Apr 03 '22 17:04 bbugyi200

Have this as well on OS X 13.2.1, but only with gcloud

kylechadha avatar Mar 27 '23 20:03 kylechadha

This will need more specific reproduction instructions. Please try zsh -df and source the plugin manually and try to reproduce. If you cannot reproduce with that, please add components from your .zshrc file one at a time until you see which one is responsible for the error.

ericfreese avatar May 26 '23 20:05 ericfreese