zdharma-continuum / fast-syntax-highlighting

Feature-rich syntax highlighting for ZSH
BSD 3-Clause "New" or "Revised" License
1.19k stars 76 forks source link

[bug]: maximum nested function level reached #65

Open p1r473 opened 6 months ago

p1r473 commented 6 months ago

Describe the bug

looks like its recursively calling itself/something? _zsh_autosuggest_highlight_reset:3: maximum nested function level reached; increase FUNCNEST?
_zsh_highlight_widget_orig-s000-r513-user:zle-line-init:9: maximum nested function level reached; increase FUNCNEST?

Steps to reproduce

enable plugin via oh my zsh plugin list. seems to work fine when you regularly source it

Expected behavior

does not produce this error

Screenshots and recordings

image

Operating System & Version

bookworm

Zsh version

5.9

Terminal emulator

putty

If using WSL on Windows, which version of WSL

None

Additional context

No response

p1r473 commented 6 months ago

Appears to be conflicting with https://github.com/marlonrichert/zsh-hist specifically this line: https://github.com/marlonrichert/zsh-hist/blob/main/zsh-hist.plugin.zsh#L27 add-zle-hook-widget line-finish .hist.format.hook even if i zero out the entire .hist.format.hook file it still causes this error. only if i comment out the add-zle-hook-widget line-finish .hist.format.hook hook itself does it fix it

p1r473 commented 6 months ago

I added a workaround here: https://github.com/marlonrichert/zsh-hist/pull/28 But not sure the best way to actually fix the incompatability also, sorry for the incorrect reference to a non-related project above.... cant figure out how to delete it