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

Key not present in Dictionary:rhs #101

Open
chenlihui0223 opened this issue Oct 31, 2023 · 1 comment
Open

Key not present in Dictionary:rhs #101

chenlihui0223 opened this issue Oct 31, 2023 · 1 comment

Comments

@chenlihui0223
Copy link

E5108: Error executing lua: /home/clh/.local/share/nvim/lazy/wf.nvim/lua/wf/init.lua:146: BufEnter Autocommands for "*"..function AutoPairsTryInit, line 27: Vim(let):E716: Key not present in Dictionary: "rhs"
stack traceback:
[C]: in function 'nvim_set_current_win'
/home/xxx/.local/share/nvim/lazy/wf.nvim/lua/wf/init.lua:146: in function </home/xxx/.local/share/nvim/lazy/wf.nvim/lua/wf/init.lua:145>

@Cassin01
Copy link
Owner

Cassin01 commented Nov 11, 2023

Thank you for issuing.

I think that the dictionary object in your vimrc at line 27 is references the key "rhs" that is not present in the dictionary.
I think if you fix not to reference by the key "rhs", the error will disappear.

The function AutoPairsTryInit is run the above series of procedures.
The function AutoPairsTryInit is called after entering a buffer.
The Autocommand when nvim_set_current_win is called at wf.nvim.
Therefore, I think there is not direct relevance between the error you issued and wf.nvim.

The above is only a speculation and there is a possibility that your vimrc revealed wf.nvims hidden bug.
So I want you to show me your vimrc if you can.
I tried to open your vimrc but could not open this.

:h E716

<							*E713* *E716* *E717*
A key is always a String.  You can use a Number, it will be converted to a
String automatically.  Thus the String '4' and the number 4 will find the same
entry.  Note that the String '04' and the Number 04 are different, since the
Number will be converted to the String '4', leading zeros are dropped.  The
empty string can also be used as a key.

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

2 participants