nvim-telescope / telescope-fzf-native.nvim

FZF sorter for telescope written in c
1.36k stars 45 forks source link

Error executing Lua callback | libfzf.dll was built #70

Closed markguzzo closed 1 year ago

markguzzo commented 2 years ago

Hello, my first github issue, not too sure where to file this.

I followed the steps and installed the latest build that supports Windows and I've checked and indeed the dll is created in "\Local\nvim-data\site\pack\packer\start\telescope-fzf-native.nvim\build\libfzf.dll". When I relaunch nvim (version 0.7) I still get the following error:

Error executing Lua callback: ...ck\packer\start\telescope.nvim/lua/telescope/command.lua:193: attempt to call a nil value stack traceback: ...ck\packer\start\telescope.nvim/lua/telescope/command.lua:193: in function 'run_command' ...ck\packer\start\telescope.nvim/lua/telescope/command.lua:253: in function 'load_command' ...te\pack\packer\start\telescope.nvim\plugin\telescope.lua:109: in function <...te\pack\packer\start\telescope.nvim\plugin\telescope.lua:108>

If this is not the place to ask, thats cool.. just tell me to go pound sand.

I did my best trying to look at the error and look at the calls provided by the error msg, but I just don't know Lua (at all) and nothing really jumped out at me. So it's not the fact that the dll isn't being created, because it is...

really wanted to try this plugin/addon

Conni2461 commented 2 years ago

No worries this is the right place to ask :)

Did you get the error as soon as you open neovim or did you only get this error after calling :Telescope fzf (the error message points to the latter).

This extension isn't another builtin to call but rather an extension for all builtins that hooks into them by replacing the sorter. It should allow you to perform searches like main.c$ | lib with :Telescope find_files. It should just work after compiling and putting this call require('telescope').load_extension('fzf') after your require('telescope').setup call

markguzzo commented 2 years ago

Well then.. I didn't realize that fact.

Yes.. I get that error when calling :Telescope fzf

I thought that was the way due to fzf showing up as a picker in the :Telescope list.

Thanks for being helpful.

Conni2461 commented 1 year ago

To fix this, we need to rewrite the extension interface in telescope. Closing in favor of https://github.com/nvim-telescope/telescope.nvim/issues/2146