≡

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 #1836

Bug #1836: versions >= 1.1b give 'NoMethodError'

Kind bug
Product Command-T
When Created 2011-06-28T02:52:25Z, updated 2015-04-10T05:35:15Z
Status closed
Reporter EspadaV8
Tags no tags

Description

I've just switched to having Command-T as a submodule instead of a manual install and tried to get the latest git version working, however, anything after 1.0.1 gives the following error why running :CommandT (<Leader>t)

Error detected while processing function <SNR>17_CommandTShowFileFinder:
line    2:
NoMethodError: undefined method `show_file_finder' for #<CommandT::Controller:0x1015bacc8>

I've just run some git bisects and found that the 'bad' commit was

3edf8eabd8eb0d6af9f2edf32188a1552ba55d70

Before that things work, with it I get the above error.

Comments

  1. anonymous 2011-08-14T18:25:06Z

    Check if you don't have an older version of command-t in ~/.vim/plugin. I had, and it disrupted my installation via pathogen; after clearing ~/.vim/plugin everything works fine.

  2. anonymous 2011-08-27T12:32:13Z

    No, i have nothing in .vim/plugin and still have the same problem

  3. Greg Hurrell 2011-08-27T16:06:13Z

    Would be interesting for you to look at the contents of the command-t/ruby/command-t/controller.rb file. It should have define the show_file_finder method (ie. def show_file_finder). If it doesn't, as the error message is suggesting, then you somehow have the wrong version of the file.

  4. Greg Hurrell 2011-09-14T05:47:36Z

    Ticket #1872 marked as a duplicate of this one.

  5. protoiyer 2011-09-14T12:01:40Z

    I saw that 1872 was closed and so don't want to open a new one and adding my issue in this thread:

    I am on Ubuntu 10.10 and am having ruby 1.9.2 installed in my system, then installed RVM and have both 1.8.7 and 1.9.2 (several patches). I installed Command-T** but am running into the following issue when I try to run Command-T (using <Leader>-t) the following appears in the vim command bar (at the bottom):

    Error detected while processing function <SNR>32_CommandTShowFileFinder line 2: [There is nothing after the colon] NoMethodError: undefined method 'match' for nil:NilClass

    • * The only thing I didn't do is to ensure my system Ruby is 1.8.7. Instead I went to root folder, issued

    rvm use ruby-1.8.7 --default ensured it was on 1.8.7 ("which ruby") and proceeded with the installation (go to ~/.vim/ruby/command-t ....)

    I badly want to use this awesome plugin, but I am not sure what I need to do to get this working in my box.

    Will this work only if my system Ruby is 1.8.7? I ran a command to check how vim was compiled and it showed "1.8.7". I was not having 1.8.7 till today (either in system or rvm) and when I ran into the segfault error (that occurs when you install command-T using 1.9.2 and vim was compiled using 1.8.7), I then installed 1.8.7 using rvm hoping it would help. Apparently, it doesn't.

  6. Greg Hurrell 2011-09-14T16:41:10Z

    Command-T will work with either 1.8.7 or 1.9.2 with two provisos:

    • both Command-T and Vim must be built with the same version
    • the version of Vim that comes on 11.04 has a known bug in its Ruby support — not sure whether the same issue exists in Ubuntu 10.10 — so you may need to update your Vim to get a version without buggy Ruby support

    I built Vim from source and Command-T on Ubuntu the other day using RVM and 1.8.7 without any problems.

  7. Greg Hurrell 2015-04-10T05:35:01Z

    Status changed:

    • From: new
    • To: closed
  8. Greg Hurrell 2015-04-10T05:35:15Z

    Closed due to staleness.

Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets