vigoux / azy.nvim

Simple and fast fuzzy finder for neovim
BSD 3-Clause "New" or "Revised" License
28 stars 0 forks source link

attempt to call field 'create' (a nil value) #5

Closed vsedov closed 2 years ago

vsedov commented 2 years ago
E5108: Error executing lua: ...hare/nvim/site/pack/packer/start/azy.nvim/lua/azy/ui.lua:118: a
ttempt to call field 'create' (a nil value)                                                   
stack traceback:                                                                              
        ...hare/nvim/site/pack/packer/start/azy.nvim/lua/azy/ui.lua:118: in function 'create' 
        ...vim/site/pack/packer/start/azy.nvim/lua/azy/builtins.lua:45: in function <...vim/si
te/pack/packer/start/azy.nvim/lua/azy/builtins.lua:44>

This is on latest neovim,Would you like a min config ?

haolian9 commented 2 years ago

have you ran this command, make lib, manually or by a plugin manager hook?

vigoux commented 2 years ago

It is indeed pretty weird. Did you get any error when starting up ? Something about fzy not being found ?

If not, there may be another plugin named fzy that leads to a name collision

vigoux commented 2 years ago

For the record, if you have nvim-fzy installed, this may lead to issues as both plugins collide.

This is not notified in the docs since 76dc36cba3f0a15ceeef2a04ff33b7fdd361cf47

unansweredocd commented 2 years ago

I get the same error on a different context, I'm on neovim 0.7.2, can I provide more details to help you out? I don't have nvim-fzy installed.

Screen Shot 2022-09-20 at 16 17 45

vigoux commented 2 years ago

That's not the same error. You are using an older version of neovim, this plugin is meant to work with neovim 0.8 (pre-release for now).

unansweredocd commented 2 years ago

Ah I see, sorry for bothering you in that case. Looking forward to using the plugin when 0.8 releases 👍🏻

vigoux commented 2 years ago

Should be in the following month or so, so I'll gladly take your feedback then !

vsedov commented 2 years ago

Did you get any error when starting up ? Something about fzy not being found ?

Yeah pretty much

For the record, if you have nvim-fzy installed, this may lead to issues as both plugins collide.

This is not notified in the docs since 76dc36c

Ah that could be it, I have fzf-lua installed atm. But even without it, I seem to get the same error ? I don't seem to have any fzy related plugins installed though

Recent update 513cf70576b37b0f1f776003e33ffaa7837acce2 make lib stoped working btw.

vsedov commented 2 years ago

Il keep playing around and see if there is a plugin causing this issue.

vsedov commented 2 years ago

Alright so I figured out the problem: guihua Seems to be causing it. Seems to be working, but I'm on b3e6577318ec496f22204ee9eed32656c6c3156a atm, master doesn't want to make lib >.<

vigoux commented 2 years ago

Yeah I discovered guihua just now, and it may lead to issues because of fzy-lua-native.

Regarding master being broken, I am going to setup CI at the same time, to avoid breaking things more in the future :wink:

vigoux commented 2 years ago

master should be fixed now. Sorry for the unstability, I am going to setup CI today, and the testing infrastructure, so that should be gone soon.

vigoux commented 2 years ago

For the record: master is now fixed, and everything is ensured on CI !

Furthermore @unansweredocd the CI will enforce the use of the latest released version of neovim (that is 0.7 for now), so you'll be able to use the plugin as soon as that's fixed.

EDIT: Nevermind this plugin uses neovim 0.8 functionnalities too much, we'll have to wait for it to release.

unansweredocd commented 2 years ago

No worries, thank you for putting in so much work on this and neovim itself, it makes my day job way easier.

vigoux commented 2 years ago

And thanks for using all this, I really appreciate it !