develooper Front page | perl.perl6.compiler | Postings from February 2018

[perl #125299] [BUG] LTA error message when forgetting to closeblock inside string in Rakudo

From:
Aleks-Daniel Jakimenko-Aleksejev via RT
Date:
February 4, 2018 00:59
Subject:
[perl #125299] [BUG] LTA error message when forgetting to closeblock inside string in Rakudo
Message ID:
rt-4.0.24-22199-1517705961-1493.125299-80-0@perl.org
Tests here:
https://github.com/perl6/roast/commit/2dd5ee1b5935fce03eb815f8336ed26e019d4413

Resolved.

Further discussion on https://github.com/rakudo/rakudo/issues/1475

On 2017-12-02 14:39:07, alex.jakimenko@gmail.com wrote:
> https://irclog.perlgeek.de/perl6/2017-12-02#i_15524141
>
> Marking as 「testneeded」
>
> On 2017-12-01 14:31:15, alex.jakimenko@gmail.com wrote:
> > https://irclog.perlgeek.de/perl6/2017-12-01#i_15520545
> >
> > On 2015-06-01 04:26:37, masak wrote:
> > > On Mon Jun 01 01:15:07 2015, FROGGS.de wrote:
> > > > FROGGS: m: say "#={ 42 }" # DrForr: your ticket is invalid
> > > > camelia: rakudo-moar c2a57e: OUTPUT«#=42␤»
> > > > FROGGS: DrForr: I am closing your ticket now
> > > > DrForr: The error was about the closing quotes, not the
> > > > interpolation.
> > > > FROGGS: DrForr: you mean that '"' is mentioned in the error message?
> > > > DrForr: Yes.
> > > > FROGGS: ahh
> > > > * FROGGS adds that to the ticket
> > > >
> > > > So, we'd like to see that a closing curly is expected I think.
> > >
> > > Also, as long as we're wishing for ponies and butterflies in the error
> > > message: one thing that Perl 5 still does better is to say where the
> > > runaway thing *began*, in this case the block. Because it's often a
> > > mistake, the programmer may not be aware of which thing it is that is
> > > unbalanced.
> > >
> > > My ideal error message would look something like this:
> > >
> > > Opening curly without closing curly in string -- did you forget to
> > > close the block?
> > > Opening curly found at line 22, col 17
> > > Expected '"' line 58, col 5, found EOF




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About