ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:120035] [Ruby master Bug#20918] Prism error indicates line number of `-e` that does not exist
@ 2024-11-28  4:38 mame (Yusuke Endoh) via ruby-core
  2024-11-30 23:04 ` [ruby-core:120072] " ydah (Yudai Takada) via ruby-core
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: mame (Yusuke Endoh) via ruby-core @ 2024-11-28  4:38 UTC (permalink / raw)
  To: ruby-core; +Cc: mame (Yusuke Endoh)

Issue #20918 has been reported by mame (Yusuke Endoh).

----------------------------------------
Bug #20918: Prism error indicates line number of `-e` that does not exist
https://bugs.ruby-lang.org/issues/20918

* Author: mame (Yusuke Endoh)
* Status: Open
* Assignee: prism
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
```
$ ruby -e 'foo('
-e: -e:2: syntax error found (SyntaxError)
  1 | foo(
> 2 |
    | ^ unexpected end-of-input; expected a `)` to close the arguments
```

It says `-e:2`, but there is no line 2 in `-e 'foo('`.

`eval("foo(")` reports line 1, so I guess this issue is only for `-e`.



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-12-12 18:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-28  4:38 [ruby-core:120035] [Ruby master Bug#20918] Prism error indicates line number of `-e` that does not exist mame (Yusuke Endoh) via ruby-core
2024-11-30 23:04 ` [ruby-core:120072] " ydah (Yudai Takada) via ruby-core
2024-12-04 14:58 ` [ruby-core:120101] " kddnewton (Kevin Newton) via ruby-core
2024-12-04 16:15 ` [ruby-core:120103] " tenderlovemaking (Aaron Patterson) via ruby-core
2024-12-12 10:56 ` [ruby-core:120210] " mame (Yusuke Endoh) via ruby-core
2024-12-12 18:44 ` [ruby-core:120222] " tenderlovemaking (Aaron Patterson) via ruby-core

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).