Project

General

Profile

Bug #13594

rubocop failing with undefined method `[]' for nil:Nilclass

Added by Dominic Cleal over 3 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Tests
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

+ bundle exec rake jenkins:rubocop TESTOPTS=-v
undefined method `[]' for nil:NilClass
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/parser-2.3.0.3/lib/parser/source/buffer.rb:203:in `line_for_position'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/parser-2.3.0.3/lib/parser/source/range.rb:80:in `line'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/parser-2.3.0.3/lib/parser/source/map.rb:98:in `line'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/rubocop-0.35.1/lib/rubocop/cop/lint/unneeded_disable.rb:25:in `block (3 levels) in check'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/rubocop-0.35.1/lib/rubocop/cop/lint/unneeded_disable.rb:25:in `each'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/rubocop-0.35.1/lib/rubocop/cop/lint/unneeded_disable.rb:25:in `find'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/rubocop-0.35.1/lib/rubocop/cop/lint/unneeded_disable.rb:25:in `block (2 levels) in check'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/rubocop-0.35.1/lib/rubocop/cop/lint/unneeded_disable.rb:24:in `each'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/rubocop-0.35.1/lib/rubocop/cop/lint/unneeded_disable.rb:24:in `block in check'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/rubocop-0.35.1/lib/rubocop/cop/lint/unneeded_disable.rb:22:in `each'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/rubocop-0.35.1/lib/rubocop/cop/lint/unneeded_disable.rb:22:in `check'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/rubocop-0.35.1/lib/rubocop/formatter/formatter_set.rb:48:in `file_finished'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/rubocop-0.35.1/lib/rubocop/runner.rb:98:in `process_file'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/rubocop-0.35.1/lib/rubocop/runner.rb:58:in `block in inspect_files'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/rubocop-0.35.1/lib/rubocop/runner.rb:56:in `each'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/rubocop-0.35.1/lib/rubocop/runner.rb:56:in `inspect_files'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/rubocop-0.35.1/lib/rubocop/runner.rb:34:in `run'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/rubocop-0.35.1/lib/rubocop/cli.rb:26:in `run'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/rubocop-0.35.1/bin/rubocop:13:in `block in <top (required)>'
/usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/gems/rubocop-0.35.1/bin/rubocop:12:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/bin/rubocop:23:in `load'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/bin/rubocop:23:in `<main>'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop_pr_rubocop-1/bin/ruby_executable_hooks:15:in `<main>'

Associated revisions

Revision 9dfe1feb (diff)
Added by Shlomi Zadok over 3 years ago

Fixes #13594 - Pin parser gem to 2.3

History

#1 Updated by Shlomi Zadok over 3 years ago

  • Assignee set to Shlomi Zadok

#2 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3164 added

#3 Updated by Shlomi Zadok over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF