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

when i use leaderf and type in "fix" or "abc" or others, errors appear. #17

Closed
linguanyuanA opened this issue Aug 26, 2016 · 1 comment
Labels

Comments

@linguanyuanA
Copy link

fi
Error detected while processing function leaderf#startFileExpl..leaderf#LfPy:
line 2:
Traceback (most recent call last):
File "", line 1, in
File "/home/fps/exvim/vimfiles/plugged/LeaderF/autoload/leaderf/manager.py", line 450, in startExplorer
self.input(False)
File "/home/fps/exvim/vimfiles/plugged/LeaderF/autoload/leaderf/manager.py", line 463, in input
self._search(self._content)
File "/home/fps/exvim/vimfiles/plugged/LeaderF/autoload/leaderf/manager.py", line 198, in _search
self._fuzzySearch(content)
File "/home/fps/exvim/vimfiles/plugged/LeaderF/autoload/leaderf/manager.py", line 276, in _fuzzySearch
pairs = self._filter(30000, filter_method, content)
File "/home/fps/exvim/vimfiles/plugged/LeaderF/autoload/leaderf/manager.py", line 221, in _filter
result.extend(filter_method(cb[:]))
File "/home/fps/exvim/vimfiles/plugged/LeaderF/autoload/leaderf/manager.py", line 243, in
return (p for p in pairs if p[0])
File "/home/fps/exvim/vimfiles/plugged/LeaderF/autoload/leaderf/manager.py", line 242, in
for line in iterable)
File "/home/fps/exvim/vimfiles/plugged/LeaderF/autoload/leaderf/fuzzyMatch.py", line 308, in getWeight
val)
File "/home/fps/exvim/vimfiles/plugged/LeaderF/autoload/leaderf/fuzzyMatch.py", line 41, in evaluate
i = ((x & -x) - 1).bit_length()
AttributeError: 'int' object has no attribute 'bit_length'


vim --version | grep python

+cryptv +linebreak +python/dyn +viminfo
+cscope +lispindent -python3 +vreplace
i also tried to install python 3.4.3, but the errors still exist.
my os is cenos 6.5.
fix.txt is a file in my project.

@Yggdroot
Copy link
Owner

Yggdroot commented Aug 26, 2016

Since your vim compiled with '-python3', this plugin will use python2, however int.bit_length() was first introduced in python2.7, so I conclude that your python2 version is lower than 2.7.
If you want to use python3, make sure your vim compiled with '+python3'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants