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

Error after opening terminal #338

Closed
pbosab opened this issue Sep 13, 2021 · 4 comments
Closed

Error after opening terminal #338

pbosab opened this issue Sep 13, 2021 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@pbosab
Copy link

pbosab commented Sep 13, 2021

  • zsh-autocomplete version: latest
  • zsh version: zsh-5.8-0-g77d203f
  • Framework: none
  • Plugin manager: none
  • Operating system: linux-gnu

hello, since the latest update (this morning), i am getting these errors when opening a terminal:

.autocomplete.init:92: array parameter precmd_functions set in enclosing scope in function .autocomplete.init
.autocomplete.init:92: array parameter precmd_functions set in enclosing scope in function .autocomplete.init

but everything seems working fine, let me know if you need to know something else.

my .zshrc:

# PLUGINS
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
source /usr/share/zsh/plugins/zsh-autocomplete/zsh-autocomplete.plugin.zsh
source ~/tools/git/zcolors/zcolors.plugin.zsh
source ~/.zcolors
powerline-daemon -q
source  /usr/share/powerline/bindings/zsh/powerline.zsh

# PLUGINS OPTIONS
zstyle ':autocomplete:*' recent-dirs no
# HISTORY VARIABLES
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory

# GTK/QT THEMES OPTIONS
export QT_QPA_PLATFORMTHEME="qt5ct"
export RANGER_LOAD_DEFAULT_RC="FALSE"

# KEYBINDINGS
autoload -Uz history-search-end
zle -N history-beginning-search-backward-end \
                history-search-end
zle -N history-beginning-search-forward-end \
                history-search-end
bindkey "^[[5~" history-beginning-search-backward-end
bindkey "^[[6~" history-beginning-search-forward-end
bindkey "^[[7~" beginning-of-line
bindkey "^[[8~" end-of-line
bindkey "^[[3~" delete-char
# PuTTy home & end keys
bindkey "\033[1~" beginning-of-line
bindkey "\033[4~" `end-of-line

edit: found this in the logs

Sep 13 10:10:00 systemd-coredump[3351]: Process 3347 (zsh) of user 1000 dumped core.

Found module linux-vdso.so.1 with build-id: 6d14dba72451bc56adac09b965198845fb58b8a0
Found module regex.so with build-id: 2fe468bd30e0183d7a9ff03294fe2774916e7c5f
Found module computil.so with build-id: f3cdefb295c7d93bdde4d7ad2b29fcf475d2ddfa
Found module files.so with build-id: cf6f837062eb392fcbc38671b2de23252821bcd4
Found module zselect.so with build-id: 9006a461c441bbbc3de21370431a938352fa743b
Found module zpty.so with build-id: 6f6cdc3bd0434ed7660a97d8472efc16d9776b0e
Found module terminfo.so with build-id: 5c63117a377a17f8d6e525b8696c96e6ad0babbf
Found module complist.so with build-id: 798121d1642cf365894cee888bb4595fc0883166
Found module zutil.so with build-id: d723be5d357d5d4af04bb05a77217aeb1338e01a
Found module complete.so with build-id: 8b24049fa482999331a2a947439b61f6762ac686
Found module system.so with build-id: b14c78c94da645219d5cacd7b7450a879d925ca8
Found module private.so with build-id: a12a810cef6730428aac62a86b6a91f65a7d8d18
Found module parameter.so with build-id: 83942b546b02c4565c1dac4ca6d1d94abe819e37
Found module zleparameter.so with build-id: cf2558117b4a9bfae2dcccd3fbdbf3b74039686b
Found module zle.so with build-id: f3517e5f93f5b263159c9d8afdac1ec836feb776
Found module libnss_files.so.2 with build-id: 1a36dfc01d3a1010b2ee79766a24a8090a3266d5
Found module ld-linux-x86-64.so.2 with build-id: 040cc3dd10461562f177df39e3be2f3704258c3c
Found module libc.so.6 with build-id: 4b406737057708c0e4c642345a703c47a61c73dc
Found module libm.so.6 with build-id: 2b8fd1f869ecab4e0b55e92f2f151897f6818acf
Found module libncursesw.so.6 with build-id: 4118a7b0a2a0de8f6359df5b61c6c59a9e13a4d5
Found module libdl.so.2 with build-id: 5abc547e7b0949f89f3c0e21ab0c8331a7440a8a
Found module libcap.so.2 with build-id: fbc4826df09e807891a0db6a4a4bb85cd7b1914c
Found module zsh with build-id: d03c8b04eaa98dbba8ff2ad39c9d42656bfed2ab
Stack trace of thread 3347:
#0  0x00007fcb1984c114 n/a (private.so + 0x1114)
#1  0x0000563cac06943e unsetparam_pm (zsh + 0x7543e)
#2  0x0000563cac03b68b scanmatchtable (zsh + 0x4768b)
#3  0x0000563cac03b7f7 scanhashtable (zsh + 0x477f7)
#4  0x0000563cac06d1b8 endparamscope (zsh + 0x791b8)
#5  0x0000563cac02f49b runshfunc (zsh + 0x3b49b)
#6  0x00007fcb1984c64e n/a (private.so + 0x164e)
#7  0x0000563cac02f29d runshfunc (zsh + 0x3b29d)
#8  0x0000563cac02f9c7 doshfunc (zsh + 0x3b9c7)
#9  0x0000563cac0302f0 n/a (zsh + 0x3c2f0)
#10 0x0000563cac02c18b n/a (zsh + 0x3818b)
#11 0x0000563cac02c32f n/a (zsh + 0x3832f)
#12 0x0000563cac02c6d1 n/a (zsh + 0x386d1)
#13 0x0000563cac02e051 execlist (zsh + 0x3a051)
#14 0x0000563cac02e564 execode (zsh + 0x3a564)
#15 0x0000563cac02f17c getproc (zsh + 0x3b17c)
#16 0x0000563cac0871ce n/a (zsh + 0x931ce)
#17 0x0000563cac08d61e prefork (zsh + 0x9961e)
#18 0x0000563cac029229 n/a (zsh + 0x35229)
#19 0x0000563cac02c32f n/a (zsh + 0x3832f)
#20 0x0000563cac02c6d1 n/a (zsh + 0x386d1)
#21 0x0000563cac02e051 execlist (zsh + 0x3a051)
#22 0x0000563cac02e564 execode (zsh + 0x3a564)
#23 0x0000563cac02f47c runshfunc (zsh + 0x3b47c)
#24 0x00007fcb1984c64e n/a (private.so + 0x164e)
#25 0x0000563cac02f29d runshfunc (zsh + 0x3b29d)
#26 0x0000563cac02f9c7 doshfunc (zsh + 0x3b9c7)
#27 0x0000563cac0302f0 n/a (zsh + 0x3c2f0)
#28 0x0000563cac02c18b n/a (zsh + 0x3818b)
#29 0x0000563cac02c32f n/a (zsh + 0x3832f)
#30 0x0000563cac02c6d1 n/a (zsh + 0x386d1)
#31 0x0000563cac02e051 execlist (zsh + 0x3a051)
#32 0x0000563cac02e564 execode (zsh + 0x3a564)
#33 0x0000563cac02f47c runshfunc (zsh + 0x3b47c)
#34 0x00007fcb1984c64e n/a (private.so + 0x164e)
#35 0x0000563cac02f29d runshfunc (zsh + 0x3b29d)
#36 0x0000563cac02f9c7 doshfunc (zsh + 0x3b9c7)
#37 0x00007fcb1917003d execzlefunc (zle.so + 0x2003d)
#38 0x00007fcb19180738 n/a (zle.so + 0x30738)
#39 0x0000563cac01abdd execbuiltin (zsh + 0x26bdd)
#40 0x0000563cac02bd33 n/a (zsh + 0x37d33)
#41 0x0000563cac02c32f n/a (zsh + 0x3832f)
#42 0x0000563cac02c6d1 n/a (zsh + 0x386d1)
#43 0x0000563cac02e051 execlist (zsh + 0x3a051)
#44 0x0000563cac054ef2 execif (zsh + 0x60ef2)
#45 0x0000563cac02aa8b n/a (zsh + 0x36a8b)
#46 0x0000563cac02c32f n/a (zsh + 0x3832f)
#47 0x0000563cac02c6d1 n/a (zsh + 0x386d1)
#48 0x0000563cac02e0d3 execlist (zsh + 0x3a0d3)
#49 0x0000563cac053f55 execfor (zsh + 0x5ff55)
#50 0x0000563cac02aa8b n/a (zsh + 0x36a8b)
#51 0x0000563cac02c32f n/a (zsh + 0x3832f)
#52 0x0000563cac02c6d1 n/a (zsh + 0x386d1)
#53 0x0000563cac02e051 execlist (zsh + 0x3a051)
#54 0x0000563cac02e564 execode (zsh + 0x3a564)
#55 0x0000563cac02f47c runshfunc (zsh + 0x3b47c)
#56 0x00007fcb1984c64e n/a (private.so + 0x164e)
#57 0x0000563cac02f29d runshfunc (zsh + 0x3b29d)
#58 0x0000563cac02f9c7 doshfunc (zsh + 0x3b9c7)
#59 0x00007fcb1917003d execzlefunc (zle.so + 0x2003d)
#60 0x00007fcb191705dd redrawhook (zle.so + 0x205dd)
#61 0x00007fcb191706f6 zlecore (zle.so + 0x206f6)
#62 0x00007fcb191717a4 zleread (zle.so + 0x217a4)
#63 0x0000563cac0476e8 zleentry (zsh + 0x536e8)
@pbosab pbosab added the bug Something isn't working label Sep 13, 2021
@marlonrichert marlonrichert self-assigned this Sep 13, 2021
@pbosab
Copy link
Author

pbosab commented Sep 13, 2021

@marlonrichert
update: im not an expert, but after disabling every plugin and re-enabling them one by one, i've ended up with this:
only zsh-autocomplete on: no errors.
only zsh-autosuggestions on: no errors.
both of them on cause the issue.

@marlonrichert
Copy link
Owner

hello, since the latest update (this morning), i am getting these errors when opening a terminal:

.autocomplete.init:92: array parameter precmd_functions set in enclosing scope in function .autocomplete.init
.autocomplete.init:92: array parameter precmd_functions set in enclosing scope in function .autocomplete.init

@pbosab It's not an actual error, just a warning. But thanks for reporting it! This helps me improve the quality of the code. I will release a fix soon that will make the warning go away. 🙂

edit: found this in the logs

That's a core dump from a ZSH subshell that crashed. It's not really useful to me (since it signifies a bug, not in my code, but in zsh), but it might be of interest to the developers of ZSH, if you can find a reliable way to reproduce it.

@pbosab
Copy link
Author

pbosab commented Sep 13, 2021

@pbosab It's not an actual error, just a warning. But thanks for reporting it! This helps me improve the quality of the code. I will release a fix soon that will make the warning go away. 🙂

That's a core dump from a ZSH subshell that crashed. It's not really useful to me (since it signifies a bug, not in my code, but in zsh), but it might be of interest to the developers of ZSH, if you can find a reliable way to reproduce it.

@marlonrichert thanks for the reply, but the warnings and the subshell crash appear only when both plugins are enabled (autocomplete & autosuggestions). they coexisted and worked till today.

@marlonrichert
Copy link
Owner

The warnings should be gone now.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants