* [ruby-core:119522] [Ruby master Bug#20798] Missing spaces/punctuation in SyntaxError message.
@ 2024-10-14 16:49 sanjioh (Fabio Sangiovanni) via ruby-core
2024-10-14 16:55 ` [ruby-core:119523] " kddnewton (Kevin Newton) via ruby-core
2024-10-14 17:00 ` [ruby-core:119524] " sanjioh (Fabio Sangiovanni) via ruby-core
0 siblings, 2 replies; 3+ messages in thread
From: sanjioh (Fabio Sangiovanni) via ruby-core @ 2024-10-14 16:49 UTC (permalink / raw)
To: ruby-core; +Cc: sanjioh (Fabio Sangiovanni)
Issue #20798 has been reported by sanjioh (Fabio Sangiovanni).
----------------------------------------
Bug #20798: Missing spaces/punctuation in SyntaxError message.
https://bugs.ruby-lang.org/issues/20798
* Author: sanjioh (Fabio Sangiovanni)
* Status: Open
* ruby -v: ruby 3.4.0dev (2024-10-14T07:01:30Z master 1001ea9606) +PRISM [x86_64-darwin23]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
Hi all,
with the following simple snippet of Ruby code:
``` ruby
def x.y.z
end
```
the interpreter raises a `SyntaxError`, whose message is made up of two sentences with no spaces or punctuation in between (see line no. 2 of the output):
``` shell
scratch2.rb: --> scratch2.rb
expected a delimiter to close the parametersunexpected '.', ignoring it
> 1 def x.y.z
> 2 end
scratch2.rb:1: syntax errors found (SyntaxError)
> 1 | def x.y.z
| ^ unexpected '.', ignoring it
| ^ expected a delimiter to close the parameters
2 | end
3 |
```
This happens on master with the sentences reported above, but also on 3.3.5 with the sentences:
`expected a delimiter to close the parameterscannot parse the expression`.
Unfortunately I can't tell if the same glitch occurs with other error messages.
Thanks!
--
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] 3+ messages in thread
* [ruby-core:119523] [Ruby master Bug#20798] Missing spaces/punctuation in SyntaxError message.
2024-10-14 16:49 [ruby-core:119522] [Ruby master Bug#20798] Missing spaces/punctuation in SyntaxError message sanjioh (Fabio Sangiovanni) via ruby-core
@ 2024-10-14 16:55 ` kddnewton (Kevin Newton) via ruby-core
2024-10-14 17:00 ` [ruby-core:119524] " sanjioh (Fabio Sangiovanni) via ruby-core
1 sibling, 0 replies; 3+ messages in thread
From: kddnewton (Kevin Newton) via ruby-core @ 2024-10-14 16:55 UTC (permalink / raw)
To: ruby-core; +Cc: kddnewton (Kevin Newton)
Issue #20798 has been updated by kddnewton (Kevin Newton).
This is an issue with the syntax suggest gem. Could you open an issue here please? https://github.com/ruby/syntax_suggest/issues
----------------------------------------
Bug #20798: Missing spaces/punctuation in SyntaxError message.
https://bugs.ruby-lang.org/issues/20798#change-110137
* Author: sanjioh (Fabio Sangiovanni)
* Status: Open
* ruby -v: ruby 3.4.0dev (2024-10-14T07:01:30Z master 1001ea9606) +PRISM [x86_64-darwin23]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
Hi all,
with the following simple snippet of Ruby code:
``` ruby
def x.y.z
end
```
the interpreter raises a `SyntaxError`, whose message is made up of two sentences with no spaces or punctuation in between (see line no. 2 of the output):
``` shell
scratch2.rb: --> scratch2.rb
expected a delimiter to close the parametersunexpected '.', ignoring it
> 1 def x.y.z
> 2 end
scratch2.rb:1: syntax errors found (SyntaxError)
> 1 | def x.y.z
| ^ unexpected '.', ignoring it
| ^ expected a delimiter to close the parameters
2 | end
3 |
```
This happens on master with the sentences reported above, but also on 3.3.5 with the sentences:
`expected a delimiter to close the parameterscannot parse the expression`.
Unfortunately I can't tell if the same glitch occurs with other error messages.
Thanks!
--
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] 3+ messages in thread
* [ruby-core:119524] [Ruby master Bug#20798] Missing spaces/punctuation in SyntaxError message.
2024-10-14 16:49 [ruby-core:119522] [Ruby master Bug#20798] Missing spaces/punctuation in SyntaxError message sanjioh (Fabio Sangiovanni) via ruby-core
2024-10-14 16:55 ` [ruby-core:119523] " kddnewton (Kevin Newton) via ruby-core
@ 2024-10-14 17:00 ` sanjioh (Fabio Sangiovanni) via ruby-core
1 sibling, 0 replies; 3+ messages in thread
From: sanjioh (Fabio Sangiovanni) via ruby-core @ 2024-10-14 17:00 UTC (permalink / raw)
To: ruby-core; +Cc: sanjioh (Fabio Sangiovanni)
Issue #20798 has been updated by sanjioh (Fabio Sangiovanni).
kddnewton (Kevin Newton) wrote in #note-1:
> This is an issue with the syntax suggest gem. Could you open an issue here please? https://github.com/ruby/syntax_suggest/issues
Oh of course! Thanks for letting me know.
This can be closed then.
Cheers
----------------------------------------
Bug #20798: Missing spaces/punctuation in SyntaxError message.
https://bugs.ruby-lang.org/issues/20798#change-110138
* Author: sanjioh (Fabio Sangiovanni)
* Status: Open
* ruby -v: ruby 3.4.0dev (2024-10-14T07:01:30Z master 1001ea9606) +PRISM [x86_64-darwin23]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
Hi all,
with the following simple snippet of Ruby code:
``` ruby
def x.y.z
end
```
the interpreter raises a `SyntaxError`, whose message is made up of two sentences with no spaces or punctuation in between (see line no. 2 of the output):
``` shell
scratch2.rb: --> scratch2.rb
expected a delimiter to close the parametersunexpected '.', ignoring it
> 1 def x.y.z
> 2 end
scratch2.rb:1: syntax errors found (SyntaxError)
> 1 | def x.y.z
| ^ unexpected '.', ignoring it
| ^ expected a delimiter to close the parameters
2 | end
3 |
```
This happens on master with the sentences reported above, but also on 3.3.5 with the sentences:
`expected a delimiter to close the parameterscannot parse the expression`.
Unfortunately I can't tell if the same glitch occurs with other error messages.
Thanks!
--
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] 3+ messages in thread
end of thread, other threads:[~2024-10-14 17:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-14 16:49 [ruby-core:119522] [Ruby master Bug#20798] Missing spaces/punctuation in SyntaxError message sanjioh (Fabio Sangiovanni) via ruby-core
2024-10-14 16:55 ` [ruby-core:119523] " kddnewton (Kevin Newton) via ruby-core
2024-10-14 17:00 ` [ruby-core:119524] " sanjioh (Fabio Sangiovanni) 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).