≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #1526

Bug #1526: NoMethodError: undefined method `show' for nil:NilClass

Kind bug
Product Command-T
When Created 2010-03-30T09:14:25Z, updated 2010-04-03T18:11:14Z
Status closed
Reporter patrickod
Tags no tags

Description

I'm running MacVim (compiled with --enable-rubyinterp) and ruby 1.9.1p243 but unfortunately can't get CommandT to work. I can install the .vba and compile the ruby extension no problem but when I try and call the plugin from Vim I get the following error

Error detected while processing function <SNR>13_CommandTShow: line 2: NoMethodError: undefined method show' for nil:NilClass

Any help would be greatly appreciated.

thanks

Patrick

Comments

  1. Greg Hurrell 2010-03-30T10:33:38Z

    Check out ticket #1524 for a fairly detailed discussion of this point.

    The short version seems to be that:

    • VIM doesn't officially support Ruby 1.9.1 yet, although their is a patch for it in the Subversion repo
    • As support hasn't made it into a released version yet, "your mileage may vary" depending on which operating system you use
    • Even if you think you compiled VIM with 1.9.1 you probably didn't:
      • Run otool -L on the MacVim.app/Contents/MacOS/Vim and MacVim.app/Contents/MacOS/Vims executables to see if they linked against the system Ruby.framework (which is 1.8.7) (it probably did link against it)
      • Run :ruby p RUBY_VERSION from inside MacVim to see what version it is actually running (probably will print 1.8.7)
    • In order to build MacVim with real 1.9.1 support you have to hack the src/auto/config.mk file, and it's not straightforward to do so

    So I am assuming that your MacVim is actually linked against 1.8.7, so you'll have to build the Command-T plug-in under 1.8.7, even if you normally use Ruby 1.9.1 from the command line.

  2. Greg Hurrell 2010-04-03T18:10:41Z

    I gather from the lack of response that you've satisfactorily solved your problem by compiling under 1.8.7, so I'm going to mark this one as closed. Feel free to post another comment if you want me to re-open it.

  3. Greg Hurrell 2010-04-03T18:11:14Z

    Status changed:

    • From: new
    • To: closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets