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

No longer matches after vim upgrade #41

Open
sj26 opened this issue May 1, 2018 · 5 comments
Open

No longer matches after vim upgrade #41

sj26 opened this issue May 1, 2018 · 5 comments

Comments

@sj26
Copy link

sj26 commented May 1, 2018

Upgrading to the latest vim via homebrew recently seems to have broken this matcher. Starting a search in ctrlp now yields no results, no matter the search term.

image

image

$ brew info vim
vim: stable 8.0.1750 (bottled), HEAD

$ vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 24 2018 05:16:21)
macOS version
Included patches: 1-1750
Compiled by Homebrew
Huge version without GUI.  Features included (+) or not (-):
+acl               +farsi             +mouse_sgr         -tag_any_white
+arabic            +file_in_path      -mouse_sysmouse    -tcl
+autocmd           +find_in_path      +mouse_urxvt       +termguicolors
-autoservername    +float             +mouse_xterm       +terminal
-balloon_eval      +folding           +multi_byte        +terminfo
+balloon_eval_term -footer            +multi_lang        +termresponse
-browse            +fork()            -mzscheme          +textobjects
++builtin_terms    -gettext           +netbeans_intg     +timers
+byte_offset       -hangul_input      +num64             +title
+channel           +iconv             +packages          -toolbar
+cindent           +insert_expand     +path_extra        +user_commands
-clientserver      +job               +perl              +vertsplit
+clipboard         +jumplist          +persistent_undo   +virtualedit
+cmdline_compl     +keymap            +postscript        +visual
+cmdline_hist      +lambda            +printer           +visualextra
+cmdline_info      +langmap           +profile           +viminfo
+comments          +libcall           -python            +vreplace
+conceal           +linebreak         +python3           +wildignore
+cryptv            +lispindent        +quickfix          +wildmenu
+cscope            +listcmds          +reltime           +windows
+cursorbind        +localmap          +rightleft         +writebackup
+cursorshape       -lua               +ruby              -X11
+dialog_con        +menu              +scrollbind        -xfontset
+diff              +mksession         +signs             -xim
+digraphs          +modify_fname      +smartindent       -xpm
-dnd               +mouse             +startuptime       -xsmp
-ebcdic            -mouseshape        +statusline        -xterm_clipboard
+emacs_tags        +mouse_dec         -sun_workshop      -xterm_save
+eval              -mouse_gpm         +syntax
+ex_extra          -mouse_jsbterm     +tag_binary
+extra_search      +mouse_netterm     +tag_old_static
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H   -D_DARWIN_C_SOURCE -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang   -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib  -L/usr/local/lib -o vim        -lncurses -liconv -framework AppKit   -mmacosx-version-min=10.13 -fstack-protector-strong -L/usr/local/lib  -L/usr/local/Cellar/perl/5.26.2/lib/perl5/5.26.2/darwin-thread-multi-2level/CORE -lperl -lm -lutil -lc  -L/usr/local/opt/python/Frameworks/Python.framework/Versions/3.6/lib/python3.6/config-3.6m-darwin -lpython3.6m -framework CoreFoundation  -lruby.2.5.1 -lobjc
@sj26
Copy link
Author

sj26 commented May 1, 2018

I tried importing the python module, based on the compiled-in python:

$ /usr/local/opt/python/bin/python3
Python 3.6.5 (default, Apr 16 2018, 12:19:07)
[GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import fuzzycomt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dlopen(/Users/sj26/.home/.vim/bundle/ctrlp-cmatcher/autoload/fuzzycomt.so, 2): Symbol not found: _PyString_AsString
  Referenced from: /Users/sj26/.home/.vim/bundle/ctrlp-cmatcher/autoload/fuzzycomt.so
  Expected in: flat namespace
 in /Users/sj26/.home/.vim/bundle/ctrlp-cmatcher/autoload/fuzzycomt.so
>>>

:-(

@sj26
Copy link
Author

sj26 commented May 1, 2018

I see this is because the module was written for python 2, not 3. I'll see if I can upgrade.

@jondavidjohn
Copy link

Seeing the same thing 😕

Any luck getting it to work?

@sj26
Copy link
Author

sj26 commented Jun 1, 2018

Honestly I switched to fzf 😅

@jondavidjohn
Copy link

Was able to get it to work by uninstalling and installing with the --with-python@2 flag

brew install vim --with-python@2

Just make sure your ruby dependency links correctly to those out there running rbenv or similar. 😁

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

No branches or pull requests

2 participants