Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command-line linguist throws NoMethodError “undefined method instrument #2223

Closed
roryokane opened this issue Mar 12, 2015 · 0 comments · Fixed by #2224
Closed

Command-line linguist throws NoMethodError “undefined method instrument #2223

roryokane opened this issue Mar 12, 2015 · 0 comments · Fixed by #2224

Comments

@roryokane
Copy link

I just installed Linguist and tried to run linguist on the directory of a software project cloned from GitHub. Straight away, it throws a NoMethodError:

undefined method `instrument' for Linguist:Module (NoMethodError)

A summarized transcript, including a stack trace:

$ git clone git@github.com:evalEmpire/perl5i.git
Cloning into 'perl5i'...
…
$ rbenv version
2.1.4 (set by /Users/roryokane/.ruby-version)
$ gem install github-linguist
…
Fetching: github-linguist-4.4.3.gem (100%)
Successfully installed github-linguist-4.4.3
…
4 gems installed
$ linguist perl5i/
/Users/roryokane/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/github-linguist-4.4.3/lib/linguist/language.rb:108:in `detect': undefined method `instrument' for Linguist:Module (NoMethodError)
    from /Users/roryokane/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/github-linguist-4.4.3/lib/linguist/blob_helper.rb:328:in `language'
    from /Users/roryokane/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/github-linguist-4.4.3/lib/linguist/lazy_blob.rb:54:in `language'
    from /Users/roryokane/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/github-linguist-4.4.3/lib/linguist/blob_helper.rb:343:in `include_in_language_stats?'
    from /Users/roryokane/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/github-linguist-4.4.3/lib/linguist/repository.rb:159:in `block in compute_stats'
    from /Users/roryokane/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/github-linguist-4.4.3/lib/linguist/repository.rb:145:in `each_delta'
    from /Users/roryokane/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/github-linguist-4.4.3/lib/linguist/repository.rb:145:in `compute_stats'
    from /Users/roryokane/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/github-linguist-4.4.3/lib/linguist/repository.rb:113:in `cache'
    from /Users/roryokane/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/github-linguist-4.4.3/lib/linguist/repository.rb:65:in `languages'
    from /Users/roryokane/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/github-linguist-4.4.3/bin/linguist:25:in `<top (required)>'
    from /Users/roryokane/.rbenv/versions/2.1.4/bin/linguist:23:in `load'
    from /Users/roryokane/.rbenv/versions/2.1.4/bin/linguist:23:in `<main>'

I still get the error if I cd into perl5i and then run linguist without passing a directory argument. I also get the error if I pass --breakdown to linguist.

@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant