s:rubypath in ftplugin/ruby.vim

Mark Guzman segfault at hasno.info
Tue Jan 23 14:54:28 EST 2007

Jason LaRiviere wrote:
> I believe we're discussing my particular problem here. I've had some
> conference with Tim Pope about the aforementioned.
> Here's my situation:
> brand new macbook, osx 10.4.8
> ruby 1.8.5. from source, --enable-pthreads
> --with-readline-dir=/usr/local --prefix=/usr/local
> vim 7.0.183 from source, --disable-gui --enable-rubyinterp
> --prefix=/usr/local
> rails 1.2.1, rubygems 0.9.0
> Before Tim fixed up his rails.vim, as noted, vim trapped and died:
> (from gdb)
> dyld: Symbol not found: _rb_path2class
> Referenced from:
> /usr/local/lib/ruby/1.8.i686-darwin8.8.3/digest/sha2.bundle
> The stock rubycomplete.vim works, as long as I don't attempt a rails
> completion, straight up ruby omni works. The most recent
> rubycomplete.vim from cvs kill it straight away, as did the version of
> ftplugin before tpope messed with it.
> As it stands, with the recently updated ftplugin, rails, and stock
> rubycomplete vim scripts, I'm alright, as long as I don't attempt a
> rails completion or try including 'rubygems' anywhere. Manually doing
> :ruby require 'rubygems' traps vim immediately, always with the same
> error from gdb.
> I'm currently hassling friends with osx to attempt a replication of this
> issue, as I'm quite sure it's the build of ruby within osx.
Have you tried this without having rails.vim in the plugins directory? 
AFAIK plugins are loaded before ftplugin is run... I am testing on the 
same platform, the only difference being that I used macports to build 
both ruby and vim.

More information about the vim-ruby-devel mailing list