chrisant996 / clink-fzf

Fzf integration for Clink
MIT License
77 stars 10 forks source link

can't execute 'fzf_directory'; not a function #4

Closed theperiscope closed 2 years ago

theperiscope commented 2 years ago

I get a can't execute 'fzf_directory'; not a function error using latest fzf.lua source (2022-06-18). When I revert to one from around March 30th error disappears -- any idea what may be causing it? Same happened on a different PC (Windows 11 on one, Windows 10 on the other). I think my setup is fairly vanilla Cmder/Clink with latest versions. I attached here the two versions I have.

fzf-mar30.lua.txt fzf-jun18.lua.txt

chrisant996 commented 2 years ago

I'm not able to reproduce that with Clink v1.3.24. The Alt-c for fzf_directory works fine for me.

What version of Clink are you using? Might you have more than one fzf.lua file that's getting loaded? Or might another .lua file be interfering somehow?

The fzf_directory function exists in both of the Lua files you attached.

theperiscope commented 2 years ago

My clink is version 1.3.13.24b02e (latest installed using chocolatey) and I have just one copy of fzf.lua. It is interesting issue -- because just swap of the file fixes it -- and at the same time I do see that the function is in both. I'll keep digging later today and report back any discoveries... one thing I wanted to check/compare file encodings -- in the past that has been a source of difficult bugs for me. Another test I want to try is with almost blank file and/or simple blank function stubs.

theperiscope commented 2 years ago

Started working with new version without me clearly understanding 'why', as I was starting to play with the files. I'll close issue for now, thank you for responding and spending time on it.