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

Running pessimize after fresh install, undefined method `[]' for nil:NilClass #26

Open
joemsak opened this issue Mar 13, 2020 · 0 comments

Comments

@joemsak
Copy link
Contributor

joemsak commented Mar 13, 2020

Hello

I'm unable to use the gem suddenly. Please let me know if I am missing something, or what I should inspect? Thanks!

[DEPRECATION] The trollop gem has been renamed to optimist and will no longer be supported. Please switch to optimist as soon as possible.
Backing up Gemfile and Gemfile.lock
 + cp Gemfile Gemfile.backup
 + cp Gemfile.lock Gemfile.lock.backup

Traceback (most recent call last):
        13: from /Users/joemsak/.asdf/installs/ruby/2.6.5/bin/pessimize:23:in `<main>'
        12: from /Users/joemsak/.asdf/installs/ruby/2.6.5/bin/pessimize:23:in `load'
        11: from /Users/joemsak/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/pessimize-0.4.0/bin/pessimize:5:in `<top (required)>'
        10: from /Users/joemsak/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/pessimize-0.4.0/lib/pessimize/shell.rb:15:in `run'
         9: from /Users/joemsak/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/pessimize-0.4.0/lib/pessimize/pessimizer.rb:14:in `run'
         8: from /Users/joemsak/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/pessimize-0.4.0/lib/pessimize/pessimizer.rb:28:in `collect_gems_and_versions'
         7: from /Users/joemsak/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/pessimize-0.4.0/lib/pessimize/pessimizer.rb:28:in `new'
         6: from /Users/joemsak/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/pessimize-0.4.0/lib/pessimize/gemfile.rb:13:in `initialize'
         5: from /Users/joemsak/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/pessimize-0.4.0/lib/pessimize/gemfile.rb:27:in `parse_gems_from_tokens!'
         4: from /Users/joemsak/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/pessimize-0.4.0/lib/pessimize/gemfile.rb:27:in `loop'
         3: from /Users/joemsak/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/pessimize-0.4.0/lib/pessimize/gemfile.rb:37:in `block in parse_gems_from_tokens!'
         2: from /Users/joemsak/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/pessimize-0.4.0/lib/pessimize/gemfile.rb:37:in `new'
         1: from /Users/joemsak/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/pessimize-0.4.0/lib/pessimize/gem.rb:9:in `initialize'
/Users/joemsak/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/pessimize-0.4.0/lib/pessimize/gem.rb:52:in `parse_version': undefined method `[]' for nil:NilClass (NoMethodError)
kadenzeweb develop % ruby -v
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin19]```
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

1 participant