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

Rakudo mentions non-existent .ins method when attempting to use $. variable ( say $. ) #5285

Closed
p6rt opened this issue May 1, 2016 · 6 comments
Closed
Labels

Comments

@p6rt
Copy link

@p6rt p6rt commented May 1, 2016

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

Searchable as RT128045$

@p6rt
Copy link
Author

@p6rt p6rt commented May 1, 2016

From @AlexDaniel

Code​:
say $.

Result​:
===SORRY!=== Error while compiling -e
Unsupported use of $. variable; in Perl 6 please use the filehandle's .ins method
at -e​:1
------> say $.<EOL>

<AlexDaniel> what is .ins ?
<dogbert2> a no longer existing method, removed around Christmas
<timotimo> "number of input seperators encountered"

This is where this error message comes from​: https://github.com/rakudo/rakudo/blob/nom/src/core/Exception.pm#L1359

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented May 1, 2016

From @lizmat

Fixed with 1e54c52 , not sure whether tests are needed.

On 01 May 2016, at 11​:48, Alex Jakimenko (via RT) <perl6-bugs-followup@​perl.org> wrote​:

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

Code​:
say $.

Result​:
===SORRY!=== Error while compiling -e
Unsupported use of $. variable; in Perl 6 please use the filehandle's .ins method
at -e​:1
------> say $.<EOL>

<AlexDaniel> what is .ins ?
<dogbert2> a no longer existing method, removed around Christmas
<timotimo> "number of input seperators encountered"

This is where this error message comes from​: https://github.com/rakudo/rakudo/blob/nom/src/core/Exception.pm#L1359

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented May 1, 2016

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

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented May 22, 2016

From @AlexDaniel

The test is indeed not needed. However, I've noticed that the error messages for $. and some other variables are not tested at all.

I've added such tests in Raku/roast@0a1da1a

Some of them are todo-ed, but $. works fine, so I am closing this.

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented May 22, 2016

From [Unknown Contact. See original ticket]

The test is indeed not needed. However, I've noticed that the error messages for $. and some other variables are not tested at all.

I've added such tests in Raku/roast@0a1da1a

Some of them are todo-ed, but $. works fine, so I am closing this.

Loading

@p6rt p6rt closed this May 22, 2016
@p6rt
Copy link
Author

@p6rt p6rt commented May 22, 2016

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

Loading

@p6rt p6rt added the LHF label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant