Error: maximum nested function level reached #209
-
Checks
Expected behaviourno error when I hit keyboard. Actual behaviourThe following error shown.
Steps to reproducelet amazon q add the blocks in zshrc, the error shows every time I hit the keyboard. Environment[q-details]
version = "1.2.0"
hash = "5f3cdc12ac743fe04cbef94421772f228fbd146b"
date = "2024-06-03T20:42:04.296133Z (15d ago)"
[system-info]
os = "macOS 14.5.0 (23F79)"
chip = "Apple M2"
total-cores = 8
memory = "8.00 GB"
[environment]
cwd = "/Users/USER"
cli-path = "/Users/USER/.local/bin/q"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "Wezterm"
install-method = "unknown"
[env-vars]
PATH = "/Users/USER/.cabal/bin:/Users/USER/.ghcup/bin:/Users/USER/.local/goup/current/go/bin:/Users/USER/.cargo/bin:/Users/USER/.pyenv/shims:/Users/USER/.bun/bin:/Users/USER/.volta/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/USER/.local/bin:/Users/USER/go/bin:/Users/USER/Library/Application Support/JetBrains/Toolbox/scripts:/Users/USER/.orbstack/bin"
QTERM_SESSION_ID = "4ea4b31a367f452db431426121deaacc"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.2.0"
SHELL = "/bin/zsh"
TERM = "wezterm"
__CFBundleIdentifier = "com.github.wez.wezterm" |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey, does this happen when tested on a minimal .zshrc file as well? Otherwise, would you mind sharing your .zshrc? There might be some other conflict occurring in your dotfiles causing this. |
Beta Was this translation helpful? Give feedback.
-
i don't think this happens on a minimal before (zsh_plugins.txt): zsh-users/zsh-autosuggestions kind:defer
zsh-users/zsh-history-substring-search kind:defer after: zsh-users/zsh-autosuggestions
zsh-users/zsh-history-substring-search |
Beta Was this translation helpful? Give feedback.
i don't think this happens on a minimal
.zshrc
file. @fang2hou in my case the error above was caused by deferred loading of some zsh plugins. Removingkind:defer
option from plugins fixed the issue for me.before (zsh_plugins.txt):
after: