From felixgallo at gmail.com Fri Apr 29 15:08:23 2011 From: felixgallo at gmail.com (Felix Gallo) Date: Fri, 29 Apr 2011 12:08:23 -0700 Subject: rubycomplete unusual gem behavior? Message-ID: system: ubuntu linux 10.10 ruby: 1.9.2p180 manually compiled from source vim: 7.3 manually compiled from source with +ruby option enabled vim-ruby: latest installed, plus the 0.9 rubycomplete version from the rubycomplete_updates branch. $ vi x.rb #!/usr/local/bin/ruby x = String.new x.^X^O -> many correct methods found ^[:q! $ sudo gem install redis Successfully installed redis-2.2.0 1 gem installed Installing ri documentation for redis-2.2.0... Installing RDoc documentation for redis-2.2.0... $ vi y.rb #!/usr/local/bin/ruby require 'redis' x = Redis.new x.^X^O -> no methods found Note that p x.methods does in fact show all of the methods one might hope from the Redis class, so it's not a syntax error or no-method problem. I started trying to debug rubycomplete but unfortunately left my necronomicon in the tower of mad Alzhazred in the doomed isles and now my house is infested with shoggoths; thanks Mark Guzman. F. From segfault at hasno.info Sat Apr 30 15:52:00 2011 From: segfault at hasno.info (Mark Guzman) Date: Sat, 30 Apr 2011 15:52:00 -0400 Subject: rubycomplete unusual gem =?UTF-8?Q?behavior=3F?= In-Reply-To: References: Message-ID: <6b6de6c6adc3b137c5ed68bc8cf22def@localhost> On Fri, 29 Apr 2011 12:08:23 -0700, Felix Gallo wrote: > > Note that > > p x.methods I'm guessing this was run from a script or irb, I'll take a look but rubycomplete operates inside Vim's embedded ruby environment which has some unique quirks last I checked. > > does in fact show all of the methods one might hope from the Redis > class, so it's not a syntax error or no-method problem. > > I started trying to debug rubycomplete but unfortunately left my > necronomicon in the tower of mad Alzhazred in the doomed isles and now > my house is infested with shoggoths; thanks Mark Guzman. I should just toss in "hic sunt dracones" as a prefacing comment. --mg From segfault at hasno.info Sun May 1 23:13:52 2011 From: segfault at hasno.info (Mark Guzman) Date: Sun, 01 May 2011 23:13:52 -0400 Subject: rubycomplete unusual gem =?UTF-8?Q?behavior=3F?= In-Reply-To: References: Message-ID: On Fri, 29 Apr 2011 12:08:23 -0700, Felix Gallo wrote: > system: ubuntu linux 10.10 > ruby: 1.9.2p180 manually compiled from source > vim: 7.3 manually compiled from source with +ruby option enabled > vim-ruby: latest installed, plus the 0.9 rubycomplete version from the > rubycomplete_updates branch. > I can't replicate this with a similar setup. Please confirm that vim is actually using the ruby install you expect. Here are some vim command outputs you should probably provide if that isn't the issue: version ruby puts RUBY_VERSION ruby puts $: messages --mg