Skip to content

Error while parsing Gemfile #6917

@ryz310

Description

@ryz310

An error occurred executing RuboCop v0.67.2.
Outputs error as following:

/usr/local/bundle/gems/rubocop-0.67.2/exe/rubocop:16:in `[]': no implicit conversion of String into Integer (TypeError)
	from /usr/local/bundle/gems/rubocop-0.67.2/exe/rubocop:16:in `<top (required)>'
	from /usr/local/bundle/bin/rubocop:29:in `load'
	from /usr/local/bundle/bin/rubocop:29:in `<main>'

And the related code is following:

https://github.com/rubocop-hq/rubocop/blob/1ec76b9251edb0e3edd159a72ec7fde58e1a22f8/exe/rubocop#L12-L16

I'm using Bundler in version v1.14 and the implement of LockFileParser#dependencies looks different between v1.14 and v1.15.

rubygems/bundler@9febe9a#diff-3c625d3cd7d7604b3e2e3c5487a5ede6L64

So I thought it should be changed requirement version for bundler in RuboCop gemspec.

https://github.com/rubocop-hq/rubocop/blob/1ec76b9251edb0e3edd159a72ec7fde58e1a22f8/rubocop.gemspec#L44

Activity

added a commit that references this issue on Apr 10, 2019

[#5977] Warn for Performance Cops

bbatsov

bbatsov commented on Apr 10, 2019

@bbatsov
Collaborator

@koic Can you check this out?

added a commit that references this issue on Apr 11, 2019

[Fix rubocop#6917] Bump Bundler dependency to >= 1.15.0

a5f68cc
koic

koic commented on Apr 11, 2019

@koic
Member

I checked this issue and I opened a PR #6919.

added a commit that references this issue on Apr 11, 2019

[Fix #6917] Bump Bundler dependency to >= 1.15.0

cdf442b
added a commit that references this issue on Apr 17, 2019

[Fixes rubocop#6939] Remove warn for rubocop-performance

d78e20d
added a commit that references this issue on Apr 17, 2019

[Fix #6939] Remove warn for rubocop-performance (#6944)

b6b9ae1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @koic@bbatsov@ryz310

      Issue actions

        Error while parsing Gemfile · Issue #6917 · rubocop/rubocop