Project

General

Profile

Actions

Bug #18434

closed

error_highlight does not work for -e option

Added by mame (Yusuke Endoh) 6 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [x86_64-linux]
[ruby-core:106826]

Description

$ ruby -ve '1.time'
ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [x86_64-linux]
-e:1:in `<main>': undefined method `time' for 1:Integer (NoMethodError)
Did you mean?  times
Actions #2

Updated by mame (Yusuke Endoh) 6 months ago

  • Backport changed from 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN to 2.6: DONTNEED, 2.7: DONTNEED, 3.0: DONTNEED, 3.1: REQUIRED
Actions #3

Updated by mame (Yusuke Endoh) 6 months ago

  • Status changed from Open to Closed

Applied in changeset git|0dc7816c4350683ccd020f5759eee4914de0085d.


Make RubyVM::AST.of work with code written in -e command-line option

[Bug #18434]

Updated by naruse (Yui NARUSE) 5 months ago

  • Backport changed from 2.6: DONTNEED, 2.7: DONTNEED, 3.0: DONTNEED, 3.1: REQUIRED to 2.6: DONTNEED, 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONE

ruby_3_1 20091ccad34904cb5ded13a8787f6662a8e2df68 merged revision(s) 0dc7816c4350683ccd020f5759eee4914de0085d.

Actions

Also available in: Atom PDF