Yggdroot / LeaderF

An efficient fuzzy finder that helps to locate files, buffers, mrus, gtags, etc. on the fly for both vim and neovim.
Apache License 2.0
2.14k stars 178 forks source link

Does not work in MSYS2 #946

Open feipeng8848 opened 2 years ago

feipeng8848 commented 2 years ago

let g:Lf_ShortcutF = ''

set pythonthreedll=/mingw64/bin/libpython3.10.dll

### Describe your question, feature request, or bug.
vim and python is installed by command : `pacman -S vim` `pacman -S python`

in vim, enter Ctrl+p, will get this error:
```bash
Error detected while processing /home/kun/.vim/plugged/LeaderF/autoload/leaderf/Any.vim:
line   14:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'leaderf'
Error detected while processing function leaderf#Any#start[4]..leaderf#LfPy:
line    1:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'anyHub' is not defined

Steps to reproduce

Actual behaviour

Expected behaviour

Yggdroot commented 1 year ago

Duplicate of #720.

arozehnal commented 1 year ago

I'm new here - I apologize for the silly question... Could reinstalling the LeaderF plugin solve my problem?

I've performed a reinstallation of the plugin, including the C extension, but the result is still the same.

Based on messages like: "Symbol PyBool_FromLong (number 1) is not exported from the dependent module vim." I assume the problem lies in the configuration or availability of some symbols during the vim->leaderf->python communication.

I've compiled Vim to have Python3 support statically linked, but the result remains the same. :-(

Vim reports that it has Python3 support, and the installation of LeaderF went fine...

Question: Is there a way to verify the functionality of LeaderF outside of Vim? Does the LeaderF plugin call any C or Python functions?