greyblake / vim-preview

Vim plugin for previewing markup files(markdown,rdoc,textile,html)
GNU General Public License v2.0
209 stars 29 forks source link

Error on OSX #10

Closed jmcantrell closed 12 years ago

jmcantrell commented 13 years ago

Error detected while processing function 105_Preview..preview#show: line 4: NoMethodError: undefined method `flush' for #Object:0x00000102064f20

OSX 10.6.7 MacVim compiled with: --with-features=huge --enable-rubyinterp --enable-pythoninterp --enable-perlinterp --enable-cscope

Ruby version is 1.9.2p180

greyblake commented 13 years ago

Unfortunately I don't have an appropriate environment to reproduce it.

jmcantrell commented 13 years ago

Can you at least confirm that you don't get this error with ruby 1.9.2? I'm trying to rule that out.

greyblake commented 13 years ago

I don't know how to build vim with ruby1.9.2 built in. There was an issue related to ruby1.9 a few months ago and I tried to build vim that way, but I did not have a success. Could you describe this process please? It would be very helpful for me. Thanks.

ghost commented 13 years ago

I'm getting the same error with the same build of Ruby (1.9.2p180).

VIM build:

Big 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 +conceal +cryptv +cscope +cursorbind +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 -lua +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 +persistent_undo +postscript +printer -profile +python -python3 +quickfix +reltime +rightleft +ruby +scrollbind +signs +smartindent -sniff +startuptime +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

greyblake commented 12 years ago

I built Vim with Ruby 1.9.2. It's probably bug in Vim. It can't not do any fork through ruby code(fork, spawn, system and so on) It's easy to reproduce:

ruby <<RB
  fork{}
RB

And :so %

greyblake commented 12 years ago

Fixed.

ghost commented 12 years ago

Grabbed the latest version, tried running <leader>P on a .md file:

Error detected while processing function 24_Preview..preview#show..60_PreviewPythonSpawn: line 7: Traceback (most recent call last): File "", line 2, in NameError: name 'vim' is not defined