Project

General

Profile

Actions

Bug #11932

closed

Ripper.sexp can't parse some files from ruby repository and returns nil

Added by radarek (Radosław Bułat) over 8 years ago. Updated about 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.0dev (2015-12-31 trunk 53395) [x86_64-darwin15]
[ruby-core:72638]

Description

Test file bug.rb:

require "ripper"

puts Dir['**/**.rb'].find_all { |f| Ripper.sexp(File.read(f)) == nil }
$ make runruby TESTRUN_SCRIPT=bug.rb
./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems bug.rb
lib/net/imap.rb
lib/open-uri.rb
lib/rexml/text.rb
test/ruby/test_m17n.rb
test/ruby/test_regexp.rb

I didn't find any info in documentation anout returning nil so I assume this is not intended behavior.


Files

bug.rb (90 Bytes) bug.rb radarek (Radosław Bułat), 12/31/2015 02:05 PM
reduced_imap.rb (132 Bytes) reduced_imap.rb radarek (Radosław Bułat), 12/31/2015 07:27 PM
reduced_m17n.rb (79 Bytes) reduced_m17n.rb radarek (Radosław Bułat), 12/31/2015 07:27 PM
reduced_regexp.rb (42 Bytes) reduced_regexp.rb radarek (Radosław Bułat), 12/31/2015 07:27 PM
reduced_open-uri.rb (95 Bytes) reduced_open-uri.rb radarek (Radosław Bułat), 12/31/2015 07:27 PM
reduced_text.rb (64 Bytes) reduced_text.rb radarek (Radosław Bułat), 12/31/2015 07:27 PM

Updated by radarek (Radosław Bułat) over 8 years ago

  • Subject changed from Ripper.sexp can't parse some files from it's repository and returns nil to Ripper.sexp can't parse some files from ruby repository and returns nil
Actions #3

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

  • Status changed from Open to Closed

Applied in changeset r53409.


parse.y: yylval.num should be u3

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

  • Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED, 2.3: REQUIRED

Updated by nagachika (Tomoyuki Chikanaga) about 8 years ago

  • Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED, 2.3: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE, 2.3: REQUIRED

r53411 and r53425 were backported into ruby_2_2 branch at r53824.

Updated by naruse (Yui NARUSE) about 8 years ago

  • Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE, 2.3: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE, 2.3: DONE

ruby_2_3 r54350 merged revision(s) 53411,53425.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0