tmm1 / ripper-tags

fast, accurate ctags generator for ruby source code using Ripper
MIT License
550 stars 43 forks source link

/usr/lib/ruby/gems/2.4.0/gems/ripper-tags-0.4.2/lib/ripper-tags/parser.rb:343:in `process': undefined method `on_assoc' #74

Closed lilole closed 6 years ago

lilole commented 6 years ago

It looks like an Array of { key: value } Hashes blows up the parser if the key: value parts don't have { } around them. It's valid Ruby either way, but the parser requires the braces.

To reproduce:

  1. Create a file with these lines:
    module MyModule
      TEST_DATA = [
        { foo_id1: '1111' }, # Works
        foo_id2: '2222', # Fails
      ]
    end
  2. Run ripper-tags PATH_TO_FILE_ABOVE
  3. See parser error.
mislav commented 6 years ago

Thanks for reporting! New version released.

lilole commented 6 years ago

Works! Thanks much for being so fast!