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

An error occurred while LineEndConcatenation... #1036

Closed
tmornini opened this issue Apr 25, 2014 · 1 comment
Closed

An error occurred while LineEndConcatenation... #1036

tmornini opened this issue Apr 25, 2014 · 1 comment
Assignees

Comments

@tmornini
Copy link

Just updated to:

0.21.0 (using Parser 2.1.9, running on ruby 2.1.1 x86_64-darwin13.0)
v3 $ rubocop -d
<snip>
.Scanning /Users/tmornini/subledger/v3/Rakefile
An error occurred while LineEndConcatenation cop was inspecting /Users/tmornini/subledger/v3/Rakefile.
undefined method `begin' for #<Parser::Source::Map:0x007fc2619698c8>
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/style/line_end_concatenation.rb:61:in `string_type?'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/style/line_end_concatenation.rb:44:in `offending_node?'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/style/line_end_concatenation.rb:26:in `on_send'
(eval):5:in `block (2 levels) in on_send'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/commissioner.rb:98:in `with_cop_error_handling'
(eval):4:in `block in on_send'
(eval):2:in `each'
(eval):2:in `on_send'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:255:in `block in process_all'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `map'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `process_all'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/parser-2.1.9/lib/parser/ast/processor.rb:142:in `on_send'
(eval):9:in `on_send'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/parser-2.1.9/lib/parser/ast/processor.rb:140:in `on_send'
(eval):9:in `on_send'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:255:in `block in process_all'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `map'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `process_all'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/parser-2.1.9/lib/parser/ast/processor.rb:142:in `on_send'
(eval):9:in `on_send'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/parser-2.1.9/lib/parser/ast/processor.rb:140:in `on_send'
(eval):9:in `on_send'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:255:in `block in process_all'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `map'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `process_all'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/parser-2.1.9/lib/parser/ast/processor.rb:9:in `process_regular_node'
(eval):9:in `on_block'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/commissioner.rb:58:in `investigate'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/team.rb:36:in `inspect_file'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:101:in `inspect_file'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:69:in `block in process_file'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:67:in `loop'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:67:in `process_file'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:23:in `block in process_files'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:21:in `each'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:21:in `process_files'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cli.rb:31:in `run'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/bin/rubocop:14:in `block in <top (required)>'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
/Users/tmornini/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/bin/rubocop:13:in `<top (required)>'
/Users/tmornini/.rbenv/versions/2.1.1/bin/rubocop:23:in `load'
/Users/tmornini/.rbenv/versions/2.1.1/bin/rubocop:23:in `<main>'

<snip/>

137 files inspected, no offenses detected

1 error occurred:
An error occurred while LineEndConcatenation cop was inspecting /Users/tmornini/subledger/v3/Rakefile.
Errors are usually caused by RuboCop bugs.
Please, report your problems to RuboCop's issue tracker.
Mention the following information in the issue report:
0.21.0 (using Parser 2.1.9, running on ruby 2.1.1 x86_64-darwin13.0)
Finished in 6.711056 seconds

Rakefile:

# -*- encoding : utf-8 -*-
# DO NOT EDIT THIS FILE! (Create new task(s) using lib/tasks/*.rake convention

Dir[File.expand_path(__FILE__ + '/..') + '/tasks/*.rake' ].each do |f|
  load f
end
@bbatsov
Copy link
Collaborator

bbatsov commented Apr 27, 2014

I'll have this fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants