Closed RobinClowers closed 10 years ago
Go to autoload folder (when you placed fuzzycomt.so
), fire up a python shell and run this:
import fuzzycomt
fuzzycomt.match(['test','estro','asdf'],'et',0,"")
See if this gives you any output. And please provide some simple test case (e.g. folder and file structure when matching fails).
Thanks for the response. Here is the output from the match command you provided:
[{'line': 'test', 'value': 0.75}, {'line': 'estro', 'value': 0.7}, {'line': 'asdf', 'value': 0.0}]
As for the testcase, the autoload folder is a simple example, when I run ctrl-p I see fuzzcomt.h, fuzzycomt.c and setup.py. Typing any letter clears the list completely, as if there are no matches.
Matcher works correctly, hm. Please post your .vimrc
I use my coworker's vimrc, this is it: https://github.com/aaronjensen/vimfiles/blob/master/vimrc
You maybe thinks it's stupid but try to recompile it. I has a similar issue and recompile resolve my problem.
@JonathanDaSilva I have tried that several times... No luck.
Hey, I finally got around to doing some more debugging on this. I removed some calls to sil!
from ctrl-p, and now when I try to execute ctrl-p this happens:
Traceback (most recent call last):
File "<string>", line 3, in <module>
ImportError: dlopen(/Users/robinclowers/.vim/bundle/ctrlp-cmatcher/autoload/fuzzycomt.so, 2): no suitable image found. Did find:
^I/Users/robinclowers/.vim/bundle/ctrlp-cmatcher/autoload/fuzzycomt.so: mach-o, but wrong architecture
I also upgraded python, here is the version information:
Python 2.7.6 (default, Feb 3 2014, 11:19:16)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Seems like I need to set some flags when compiling maybe? Any ideas?
I finally figured it out! I needed to reinstall macvim (I upgraded from Lion to Mavericks, which I suspect was the cause of all this).
Glad that you've got this sorted out. Closing this issue then.
I ran the install_linux.sh script, it appeared to complete successfully (the fuzzycomt.so file is generated and copied to /autoload), but when I search, I get no matches. Any ideas?
I'm running: OSX 10.9 Python 2.7.5 Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)