From: Greg.mpls@... Date: 2019-06-15T15:58:24+00:00 Subject: [ruby-core:93162] [Ruby trunk Bug#15924] Ripper FATAL - master/trunk Issue #15924 has been updated by MSP-Greg (Greg L). Found the issue, below is a repo, which in MinGW master, generates RuntimeError... ```ruby require 'ripper' temp = "<<\"EOS\n\" # This has been warned since 2.4\nEOS" puts '', temp, '' lexer = Ripper::Lexer.new temp lexer.lex.each { |t| pp t } puts "lexer.error? #{lexer.error?}" ``` ---------------------------------------- Bug #15924: Ripper FATAL - master/trunk https://bugs.ruby-lang.org/issues/15924#change-78602 * Author: MSP-Greg (Greg L) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.7.0dev (2019-06-15T03:04:16Z master 5d79054906) [x64-mingw32] * Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- YARD based docs systems use Ripper for highlighting both source code and 'code snippets' in comments and rdoc/md files. Using the build shown, I have an error as shown: ``` lib/ruby/2.7.0/ripper/lexer.rb:101:in `lex' lib/ruby/2.7.0/ripper/lexer.rb:123:in `parse' lib/ruby/2.7.0/ripper/lexer.rb:123:in `parse': [Ripper FATAL] unknown token -1 (RuntimeError) ``` A quick look shows that it was parsing the rdoc files in the doc folder. Sorry for not being able to check further tonite, I'll look more tomorrow... -- https://bugs.ruby-lang.org/ Unsubscribe: