Skip to content
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

unhandled ZLE widget #951

Open
fame-odoo opened this issue Apr 17, 2024 · 14 comments
Open

unhandled ZLE widget #951

fame-odoo opened this issue Apr 17, 2024 · 14 comments

Comments

@fame-odoo
Copy link

zsh-syntax-highlighting: unhandled ZLE widget 'insert-unambiguous-or-complete'
zsh-syntax-highlighting: (This is sometimes caused by doing bindkey <keys> insert-unambiguous-or-complete without creating the 'insert-unambiguous-or-complete' widget with zle -N or zle -C.)
zsh-syntax-highlighting: unhandled ZLE widget 'menu-search'
zsh-syntax-highlighting: (This is sometimes caused by doing bindkey <keys> menu-search without creating the 'menu-search' widget with zle -N or zle -C.)
zsh-syntax-highlighting: unhandled ZLE widget 'recent-paths'
zsh-syntax-highlighting: (This is sometimes caused by doing bindkey <keys> recent-paths without creating the 'recent-paths' widget with zle -N or zle -C.)

I am using ubuntu with oh-my-zsh, and keeping receiving this issue. Searched for so long and still cannot find a way to solve

@VINTX2
Copy link

VINTX2 commented Apr 20, 2024

I have the same issue. I do not use oh-my-zsh.
I have found out that it happens in combination with the zsh-autocomplete plugin.

Edit:
I need to correct myself.
It happens with zsh-autocomplete and fast-syntax-highlighting, so not related to this plugin.

@randombenj
Copy link

I got the same issue:

Describe the bug

Since a recent update of (any) of my oh-my-zsh plugins, zsh-autosuggestions complains about missing ZLE widgets.
How can I debug such an issue?

To Reproduce

Steps to reproduce the behavior:

Probably using my zsh config (and running update-shell):
https://gist.github.com/randombenj/3d1d6e7d9d382f643848

Expected behavior

Screenshots

zsh-syntax-highlighting: unhandled ZLE widget 'menu-search'
zsh-syntax-highlighting: (This is sometimes caused by doing `bindkey <keys> menu-search` without creating the 'menu-search' widget with `zle -N` or `zle -C`.)
zsh-syntax-highlighting: unhandled ZLE widget 'recent-paths'
zsh-syntax-highlighting: (This is sometimes caused by doing `bindkey <keys> recent-paths` without creating the 'recent-paths' widget with `zle -N` or `zle -C`.)

Desktop

  • OS + distribution: Ubuntu 22.04
  • Zsh version: zsh 5.8.1 (x86_64-ubuntu-linux-gnu)
  • Plugin version: e0165ea

Additional context

@kissge
Copy link

kissge commented Apr 25, 2024

I don't know why but manually reverting zsh-autocomplete to 87a0c5a (this is just a random pick) made the warnings disappear, to me.

@aatinubu
Copy link

aatinubu commented May 2, 2024

I have the same issue. I do not use oh-my-zsh. I have found out that it happens in combination with the zsh-autocomplete plugin.

Edit: I need to correct myself. It happens with zsh-autocomplete and fast-syntax-highlighting, so not related to this plugin.

Following @VINTX2 rearranging the order of the plugins solved it for me. I placed zsh-autocomplete after zsh-syntax-highlighting

@randombenj
Copy link

@aatinubu Thanks this actually helped, for some reason i was not loading zsh-autocomplete as a plugin but manually. So changin from this:

plugins=(git asdf zsh-syntax-highlighting zsh-autosuggestions)
source ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autocomplete/zsh-autocomplete.plugin.zsh

To this:

plugins=(git asdf zsh-syntax-highlighting zsh-autosuggestions zsh-autocomplete)

solved the issue for me.

@tonymet
Copy link

tonymet commented May 2, 2024

I encountered this error due to using debian dpkg /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh . Here's how I fixed

  1. load zsh-syntax-highlighting before zsh-autocomplete (thanks @aatinubu )
  2. use znap source zsh-users/zsh-syntax-highlighting instead of the debian dpkg

full diff https://gist.github.com/tonymet/257603dc775bc68cf5ffd1463f49a37a

@tomszar
Copy link

tomszar commented May 9, 2024

I have the same issue. I do not use oh-my-zsh. I have found out that it happens in combination with the zsh-autocomplete plugin.
Edit: I need to correct myself. It happens with zsh-autocomplete and fast-syntax-highlighting, so not related to this plugin.

Following @VINTX2 rearranging the order of the plugins solved it for me. I placed zsh-autocomplete after zsh-syntax-highlighting

Rearranging the order also worked for me, using oh-my-zsh

@samuel-andres
Copy link

samuel-andres commented May 29, 2024

This is happening to me using it along zsh-autosuggestions. It happens on my ubuntu box but not on fedora, no idea why. (I'm NOT using oh-my-zsh)

deuwin added a commit to deuwin/dotfiles that referenced this issue May 30, 2024
After submodule update the following error is seen:
"zsh-syntax-highlighting: unhandled ZLE widget 'insert-unambiguous-or-complete'"

Rearranging plugin order appears to fix it. As noted in the following
issue:
zsh-users/zsh-syntax-highlighting#951
@i3d
Copy link

i3d commented Jun 2, 2024

getting the same problem. reordering the load does not seem to work... :(

@i3d
Copy link

i3d commented Jun 2, 2024

so basically seems like I could manually add zle -N menu-search and zle -N recent-paths before loading the plugin and it worked.

@YSawc
Copy link

YSawc commented Jul 8, 2024

I don't know why another zsh plugin occurs this error, but in may case when marlonrichert/zsh-autocomplete reverted tag to 23.07.13, the issue resolved.

@DemonicAK
Copy link

I have the same issue. I do not use oh-my-zsh. I have found out that it happens in combination with the zsh-autocomplete plugin.
Edit: I need to correct myself. It happens with zsh-autocomplete and fast-syntax-highlighting, so not related to this plugin.

Following @VINTX2 rearranging the order of the plugins solved it for me. I placed zsh-autocomplete after zsh-syntax-highlighting

it works

@Ayushsinghig
Copy link

[WARNING]: Console output during zsh initialization detected.

When using Powerlevel10k with instant prompt, console output during zsh
initialization may indicate issues.

You can:

  - Recommended: Change ~/.zshrc so that it does not perform console I/O
    after the instant prompt preamble. See the link below for details.

    * You will not see this error message again.
    * Zsh will start quickly and prompt will update smoothly.

  - Suppress this warning either by running p10k configure or by manually
    defining the following parameter:

      typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet

    * You will not see this error message again.
    * Zsh will start quickly but prompt will jump down after initialization.

  - Disable instant prompt either by running p10k configure or by manually
    defining the following parameter:

      typeset -g POWERLEVEL9K_INSTANT_PROMPT=off

    * You will not see this error message again.
    * Zsh will start slowly.

  - Do nothing.

    * You will see this error message every time you start zsh.
    * Zsh will start quickly but prompt will jump down after initialization.

For details, see:
https://github.com/romkatv/powerlevel10k#instant-prompt

-- console output produced during zsh initialization follows --

zsh-syntax-highlighting: unhandled ZLE widget 'insert-unambiguous-or-complete'
zsh-syntax-highlighting: unhandled ZLE widget 'menu-search'
zsh-syntax-highlighting: unhandled ZLE widget 'recent-paths'

How to fix it -->

My .zshrc plugins line looked like this -

plugins=(git zsh-autosuggestions zsh-syntax-highlighting zsh-autocomplete fast-syntax-highlighting)

i changed it to -

plugins=(git zsh-autosuggestions zsh-syntax-highlighting fast-syntax-highlighting zsh-autocomplete)

then -

source .zshrc

it fixed my issue

after rearranging the zsh-autocomplete close the terminal and restart it again it will work fine

@aatinubu Thanks 🙏

@VoodaGod
Copy link

VoodaGod commented Sep 17, 2024

originally i had this issue, but reordering zsh-autocomplete after zsh-syntax-highlighting in plugins did not fix it for me.

this however did:

I don't know why another zsh plugin occurs this error, but in may case when marlonrichert/zsh-autocomplete reverted tag to 23.07.13, the issue resolved.

but i then realized that i had a line like

source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

in my .zshrc, likely from an old attempt at installing it manually.
after removing it, the reordering works with the current master of zsh-autocomplete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests