Hi guys,

Because I have little knowledge about how vim integrates with ruby
interpreter especially at the compile time I'm asking for help. The
problem I have is that I'm trying to compile the last version of vim
(from the mercurial repository) with ruby 1.9.2 support. While the
whole compilation process goes without any complaints, it seems that
some ruby features do not work as expected. For example, running:

vim -c ':ruby p RUBY_VERSION; require "pty"; $r, $w, $p =
PTY.spawn("ls -al")'

it gives the following:

"1.9.2"
Error detected while processing command line:
NoMethodError: undefined method `flush' for #<Object:0x00000001d26f80>

However, trying the same with a plain ruby interpreter everything is
fine:

[talek@home ~]$ which ruby
/usr/local/rvm/rubies/ruby-1.9.2-p180/bin/ruby

[talek@home ~]$ ruby -e 'p RUBY_VERSION; require "pty"; $r, $w, $p =
PTY.spawn("ls -al")'
"1.9.2"

I really don't have any clues about the strange NoMethodError and why
it is raised from the vim environment only. I've tried also with the
last HEAD ruby 1.9.2 version but without any luck. Interestingly
enough, it's working with ruby 1.9.1-p431 and the latest HEAD 1.9.1
version but not with ruby 1.9.1-p378 and any ruby 1.9.2 I tried. As
far as the OS platforms are concerned, my attempts were on a Linux
Mint and Fedora 14.

Any ideas how to solve this? Is it ruby or vim fault? I develop/
maintain a vim plugin which relies on the PTY functionality and it's
quite frustrating that I cannot figure out the cause of this strange
error.

Many thanks!

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to