Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too-short indent in HEREDOCs produces gut-referencing error #5739

Closed
p6rt opened this issue Oct 10, 2016 · 8 comments
Closed

Too-short indent in HEREDOCs produces gut-referencing error #5739

p6rt opened this issue Oct 10, 2016 · 8 comments
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Oct 10, 2016

Migrated from rt.perl.org#129838 (status was 'resolved')

Searchable as RT129838$

@p6rt
Copy link
Author

p6rt commented Oct 10, 2016

From bioduds@gmail.com

Hi guys,

Friends on IRC kindly asked me to submit this error report​:

Asked to remove 2 spaces, but the shortest indent is 0 spaces in any
descend at gen/moar/m-Perl6-Actions.nqp line 473
Asked to remove 2 spaces, but the shortest indent is 0 spaces in any
descend at gen/moar/m-Perl6-Actions.nqp line 468
Use of uninitialized value $conditions of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if
needed. in sub MAIN at create-table.pl line 29
Use of uninitialized value $hash-values of type Any in string context

tx

@p6rt
Copy link
Author

p6rt commented Oct 10, 2016

From @zoffixznet

The error references guts, but should reference user's code​:

m​: q​:to/x/;␤y␤ x
rakudo-moar 3b5ef0​: OUTPUT«Asked to remove 2 spaces, but the shortest indent is 0 spaces␤ in any trim_heredoc at gen/moar/m-Perl6-Actions.nqp line 499␤»

https://irclog.perlgeek.de/perl6/2016-10-10#i_13368956

@p6rt
Copy link
Author

p6rt commented Oct 10, 2016

From @lizmat

When does this happen exactly?

On 10 Oct 2016, at 04​:14, Eduardo CAPANEMA (via RT) <perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by Eduardo CAPANEMA
# Please include the string​: [perl #​129838]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=129838 >

Hi guys,

Friends on IRC kindly asked me to submit this error report​:

Asked to remove 2 spaces, but the shortest indent is 0 spaces in any
descend at gen/moar/m-Perl6-Actions.nqp line 473
Asked to remove 2 spaces, but the shortest indent is 0 spaces in any
descend at gen/moar/m-Perl6-Actions.nqp line 468
Use of uninitialized value $conditions of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if
needed. in sub MAIN at create-table.pl line 29
Use of uninitialized value $hash-values of type Any in string context

@p6rt
Copy link
Author

p6rt commented Oct 10, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Oct 10, 2016

From bioduds@gmail.com

I solved it. I actually sent the report cause they said I should at the IRC
chat. Apparently, it was considered a poor error notification.

I had a quote with END and two spaces on the line. Removed the 2 spaces and
worked.

att,

On Mon, Oct 10, 2016 at 8​:30 AM, Elizabeth Mattijsen via RT <
perl6-bugs-followup@​perl.org> wrote​:

When does this happen exactly?

On 10 Oct 2016, at 04​:14, Eduardo CAPANEMA (via RT) <
perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by Eduardo CAPANEMA
# Please include the string​: [perl #​129838]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=129838 >

Hi guys,

Friends on IRC kindly asked me to submit this error report​:

Asked to remove 2 spaces, but the shortest indent is 0 spaces in any
descend at gen/moar/m-Perl6-Actions.nqp line 473
Asked to remove 2 spaces, but the shortest indent is 0 spaces in any
descend at gen/moar/m-Perl6-Actions.nqp line 468
Use of uninitialized value $conditions of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if
needed. in sub MAIN at create-table.pl line 29
Use of uninitialized value $hash-values of type Any in string context

@p6rt
Copy link
Author

p6rt commented Oct 11, 2016

From @zoffixznet

Gave it a go by adding more files to Backtrace.is-setting, but gave up because it looked kinda smelly.

I added a check for m-Perl6-Actions.nqp, then for Perl6/Grammar.nqp, and at that point it started referencing Perl6/Grammar.moarvm, so I gave up.

On Mon Oct 10 11​:47​:33 2016, bioduds@​gmail.com wrote​:

I solved it. I actually sent the report cause they said I should at the IRC
chat. Apparently, it was considered a poor error notification.

I had a quote with END and two spaces on the line. Removed the 2 spaces and
worked.

att,

On Mon, Oct 10, 2016 at 8​:30 AM, Elizabeth Mattijsen via RT <
perl6-bugs-followup@​perl.org> wrote​:

When does this happen exactly?

On 10 Oct 2016, at 04​:14, Eduardo CAPANEMA (via RT) <
perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by Eduardo CAPANEMA
# Please include the string​: [perl #​129838]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=129838 >

Hi guys,

Friends on IRC kindly asked me to submit this error report​:

Asked to remove 2 spaces, but the shortest indent is 0 spaces in any
descend at gen/moar/m-Perl6-Actions.nqp line 473
Asked to remove 2 spaces, but the shortest indent is 0 spaces in any
descend at gen/moar/m-Perl6-Actions.nqp line 468
Use of uninitialized value $conditions of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if
needed. in sub MAIN at create-table.pl line 29
Use of uninitialized value $hash-values of type Any in string context

@p6rt
Copy link
Author

p6rt commented Dec 14, 2016

From @zoffixznet

On Sun, 09 Oct 2016 19​:14​:30 -0700, bioduds@​gmail.com wrote​:

Hi guys,

Friends on IRC kindly asked me to submit this error report​:

Asked to remove 2 spaces, but the shortest indent is 0 spaces in any
descend at gen/moar/m-Perl6-Actions.nqp line 473
Asked to remove 2 spaces, but the shortest indent is 0 spaces in any
descend at gen/moar/m-Perl6-Actions.nqp line 468
Use of uninitialized value $conditions of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if
needed. in sub MAIN at create-table.pl line 29
Use of uninitialized value $hash-values of type Any in string context

tx

Thank you for the report. This is now fixed.

Fix​: rakudo/rakudo@7345e08c9b
Test​: Raku/roast@171d5c6fa9

@p6rt
Copy link
Author

p6rt commented Dec 14, 2016

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Dec 14, 2016
@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant