Issue #6 resolved

fuzzyfinder not working in gvim 7.2

Anonymous created an issue

I am using fuzzyfinder 3.3 and it's working perfectly in vim via console. Sadly under gvim the same configuration doesn't work. Every call of a fuzzyfinder function (FufBuffer, FufDir, FufFile ...) ends up in an error like:

function fuf#onComplete..143..136..fuf#filterMatchesAndMapToSet Ranks..<SNR>28_setRanks..<SNR>28_scoreBoundaryMatching": line 4: E806: using Float as a String

I am working on a 64bit gentoo linux.

gvim --version: VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Oct 18 2009 20:35:20) Included patches: 1-264 Modified by Gentoo-7.2.264 Compiled by kongo@gregor Huge version with GTK2 GUI. Features included (+) or not (-): +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +cryptv -cscope +cursorshape +dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +float +folding -footer +fork() +gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +menu +mksession +modify_fname +mouse +mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte +multi_lang -mzscheme -netbeans_intg -osfiletype +path_extra +perl +postscript +printer +profile +python +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent -sniff +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup +X11 -xfontset +xim +xsmp_interact +xterm_clipboard -xterm_save system vimrc file: "/etc/vim/vimrc" user vimrc file: "$HOME/.vimrc" user exrc file: "$HOME/.exrc" system gvimrc file: "/etc/vim/gvimrc" user gvimrc file: "$HOME/.gvimrc" system menu file: "$VIMRUNTIME/menu.vim" fall-back for $VIM: "/usr/share/vim" Compilation: x86_64-pc-linux-gnu-gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -march=athlon64 -O2 -pipe -D_FORTIFY_SOURCE=1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE -I/usr/include/python2.6 -pthread
Linking: x86_64-pc-linux-gnu-gcc -rdynamic -Wl,-O1 -L/usr/local/lib -o gvim -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lXt -lcurses -lacl -lgpm -rdynamic -L/usr/local/lib64 /usr/lib64/perl5/5.8.8/x86_64-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib64/perl5/5.8.8/x86_64-linux/CORE -lperl -lutil -lc -L/usr/lib/python2.6/config -lpython2.6 -lutil -lm -Xlinker -export-dynamic

Comments (27)

  1. Anonymous

    the errors are repeating themselves:

    E806: using Float as a String
    Fehler beim Ausführen von "function fuf#onComplete..143..165..fuf#filterMatchesAndMapToSet
    Ranks..<SNR>28_setRanks..<SNR>28_scoreSequentialMatching":
    Zeile    3:
    E15: ungültiger Ausdruck: 0.0
    Fehler beim Ausführen von "function fuf#onComplete..143..165..fuf#filterMatchesAndMapToSet
    Ranks..<SNR>28_setRanks..<SNR>28_scoreBoundaryMatching":
    Zeile    4:
    E806: using Float as a String
    Fehler beim Ausführen von "function fuf#onComplete..143..165..fuf#filterMatchesAndMapToSet
    Ranks..<SNR>28_setRanks..<SNR>28_scoreBoundaryMatching":
    Zeile    4:
    E15: ungültiger Ausdruck: 0.5 + 0.5 * s:scoreSequentialMatching(a:word, a:patternPartial)
    Fehler beim Ausführen von "function fuf#onComplete..143..165..fuf#filterMatchesAndMapToSet
    Ranks..<SNR>28_setRanks..<SNR>28_scoreSequentialMatching":
    Zeile    3:
    

    I also just discovered that it works without problems when I launch gvim with: LC_ALL=C gvim

    So maybe it's a problem with locales or languages ... Usually I am working with german language. I hope this helps.

  2. Anonymous

    This is a block of errors that is repeated several times:

    E806: using Float as a String
    Fehler beim Ausführen von "function fuf#onComplete..143..165..fuf#filterMatchesAndMapToSet
    Ranks..<SNR>28_setRanks..<SNR>28_scoreSequentialMatching":
    Zeile    3:
    E15: ungültiger Ausdruck: 0.0
    Fehler beim Ausführen von "function fuf#onComplete..143..165..fuf#filterMatchesAndMapToSet
    Ranks..<SNR>28_setRanks..<SNR>28_scoreBoundaryMatching":
    Zeile    4:
    E806: using Float as a String
    Fehler beim Ausführen von "function fuf#onComplete..143..165..fuf#filterMatchesAndMapToSet
    Ranks..<SNR>28_setRanks..<SNR>28_scoreBoundaryMatching":
    Zeile    4:
    E15: ungültiger Ausdruck: 0.5 + 0.5 * s:scoreSequentialMatching(a:word, a:patternPartial)
    Fehler beim Ausführen von "function fuf#onComplete..143..165..fuf#filterMatchesAndMapToSet
    Ranks..<SNR>28_setRanks..<SNR>28_scoreSequentialMatching":
    Zeile    3:
    

    I also just noticed that there are no problems when I launch gvim with LC_ALL=C gvim

    So maybe there is a problem with locales or languages...

    Usually I am working with german language - I hope this helps

  3. Takeshi NISHIDA repo owner

    Then could you modify the form of autoload/fuf.vim line 524 which is causing the error?

    The line is now:

    return 0.0
    

    Modify it to:

    return (0.0)
    

    or:

    return 0
    

    or:

    return 1.0 - 1.0
    

    and so on.

  4. Anonymous

    I tried several combination of these but none of them worked. Maybe you have got another idea?

  5. Anonymous

    The error is obviously caused by a bug in vim itself - a wrong locale breaks floating point numbers in gvim. The bug is fixed with vim patch 7.2.318

  6. Anonymous

    I just compiled the latest Vim version on Ubuntu and everything is running fine. Seems that it's really the float bug pointed above. The FuzzyFinder files are the same and now all is fine.

  7. Anonymous

    Also happens to me but in a strange way. I use OS X 10.6. If I start from console the Vim version bundled with OSX (7.2.108) , FuzziFinder work well. If I start MacVim from terminal with command "open /Applications/PATH-TO-MACVIM.APP/" or with the mvim script that comes with MacVim FuzzyFinder work well. But if I start MacVim from Finder, or Dock, or Spotlight and do ":FuzzyBookmark" FuzzyFinder print a lot of time the error reported, before open the buffer. I'm not alone, the same error here: http://vim.1045645.n5.nabble.com/FuzzyFinder-both-works-and-don-t-td1213913.html#none _Antonio_

  8. Anonymous

    This still happens to me on ubuntu (10.04) with gvim 7.2.

    Could you set up a virtual machine with ubuntu to test this out?

    Might it be relevant to the locale? Mine is it_IT.

  9. Takeshi NISHIDA repo owner

    I can use VirtualBox. Can you form steps to build an environment which can reproduce the problem on VirtualBox, or upload the image to somewhere I can download?

  10. Log in to comment