Replies: 1 comment
-
🤔 The method causing the issue is: ... specifically the last return line. It would indicate there is an empty file with a Sure enough, I can reproduce this: $ git init -q foo
$ cd foo
$ touch foo.g
$ git add foo.g
$ git commit -m 'Add foo'
[main (root-commit) 1fbefd7] Add foo
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 foo.g
$ github-linguist .
Traceback (most recent call last):
13: from /Users/lildude/.asdf/installs/ruby/2.7.2/bin/github-linguist:23:in `<main>'
12: from /Users/lildude/.asdf/installs/ruby/2.7.2/bin/github-linguist:23:in `load'
11: from /Users/lildude/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/github-linguist-7.13.0/bin/github-linguist:31:in `<top (required)>'
10: from /Users/lildude/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/github-linguist-7.13.0/lib/linguist/repository.rb:68:in `languages'
9: from /Users/lildude/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/github-linguist-7.13.0/lib/linguist/repository.rb:116:in `cache'
8: from /Users/lildude/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/github-linguist-7.13.0/lib/linguist/repository.rb:149:in `compute_stats'
7: from /Users/lildude/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/github-linguist-7.13.0/lib/linguist/repository.rb:149:in `each_delta'
6: from /Users/lildude/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/github-linguist-7.13.0/lib/linguist/repository.rb:164:in `block in compute_stats'
5: from /Users/lildude/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/github-linguist-7.13.0/lib/linguist/blob_helper.rb:382:in `include_in_language_stats?'
4: from /Users/lildude/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/github-linguist-7.13.0/lib/linguist/lazy_blob.rb:52:in `generated?'
3: from /Users/lildude/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/github-linguist-7.13.0/lib/linguist/blob_helper.rb:359:in `generated?'
2: from /Users/lildude/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/github-linguist-7.13.0/lib/linguist/generated.rb:12:in `generated?'
1: from /Users/lildude/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/github-linguist-7.13.0/lib/linguist/generated.rb:86:in `generated?'
/Users/lildude/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/github-linguist-7.13.0/lib/linguist/generated.rb:451:in `generated_antlr?': undefined method `include?' for nil:NilClass (NoMethodError)
$ echo "foo" > foo.g
$ git commit -am 'Goo'
[main f180e5d] Goo
1 file changed, 1 insertion(+)
$ github-linguist .
100.00% GAP
$ I've just opened #5268 to fix this. Thanks for bringing this to our attention 🙇 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am getting NoMethodError for some repos after upgrading to v7.13.0. Any idea how to fix it?
Beta Was this translation helpful? Give feedback.
All reactions