Closed bquorning closed 10 months ago
With Ruby 3.2 RuboCop gives such output (not breaking itself at least):
> bundle exec rubocop
Inspecting 8 files
...F...F
Offenses:
lib/static_files_toys/template.rb:10:18: F: Lint/Syntax: unterminated string meets end of file
(Using Ruby 3.0 parser; configure using TargetRubyVersion parameter, under AllCops)
GREP_OPTIONS = <<~STR.chomp
^
static_files_toys.gemspec:12:23: F: Lint/Syntax: unterminated string meets end of file
(Using Ruby 3.0 parser; configure using TargetRubyVersion parameter, under AllCops)
spec.description = <<~DESC
^
8 files inspected, 2 offenses detected
Thanks for reporting, that's definitely a regression introduced in 3.3.0.0
, I'll make a fix soon.
I can confirm that version 3.3.0.3
fixes the problem. Great thank you.
parser 3.3.0.3
has been released (and it seems to fix the issue, thanks @AlexWayfer )
Thank you for the quick fix ❤️
An error report in rubocop-rspec led me all the way via rubocop-ast into this gem. I wrote the following test case for test/test_parser.rb, and it fails (seemingly in all ruby versions and not just 3.3.0 as in the linked issue) with
Parser::SyntaxError: (2.3) unterminated string meets end of file