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

bug #5367

Open
p6rt opened this issue Jun 10, 2016 · 8 comments
Open

bug #5367

p6rt opened this issue Jun 10, 2016 · 8 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jun 10, 2016

Migrated from rt.perl.org#128371 (status was 'open')

Searchable as RT128371$

@p6rt
Copy link
Author

p6rt commented Jun 10, 2016

From @drforr

This bug is a touch complex.

First, file layout -

bug/bin/perl6-prolog-lrep
bug/lib/Prolog/{Actions.pm6,Grammar.pm6,LREP.pm6}

As it stands, running​:

perl6 -Ilib bin/perl6-prolog-lrep

# displays the prompt '> ' with Linenoise.

Perl6 precompiles the .pm6 modules so things will run faster next time.
Now, open Grammar.pm and add a '#" comment at the point marked '#^-- Add
a comment here, rerun bin/perl6-prolog-lrep'.

Rerun bin/perl6-prolog-lrep, and now you get this random-seeming error
message​:

--cut here--
Could not find symbol '&here'
  in block <unit> at bin/perl6-prolog-lrep line 5

Actually thrown at​:
  in block <unit> at bin/perl6-prolog-lrep line 5
--cut here--

Delete the lib/.precomp directory and the problem goes away.

I suspect the precompilation routines should expire the old .precomp
files, but aren't because the change is in a 'grammar' block, and not a
'class' block. I have no proof of that, but that's my suspicion.

If you have questions, the easiest way to get hold of me is on IRC.

@p6rt
Copy link
Author

p6rt commented Jun 10, 2016

From @drforr

perl6-prolog-lrep

@p6rt
Copy link
Author

p6rt commented Jun 10, 2016

From @drforr

Actions.pm6

@p6rt
Copy link
Author

p6rt commented Jun 10, 2016

From @drforr

Grammar.pm6

@p6rt
Copy link
Author

p6rt commented Jun 10, 2016

From @drforr

LREP.pm6

@p6rt
Copy link
Author

p6rt commented Jun 10, 2016

From @LLFourn

This is another of RT #​128156

https://rt.perl.org/Public/Bug/Display.html?id=128156

On Sat, Jun 11, 2016 at 4​:27 AM via RT <perl6-bugs-followup@​perl.org> wrote​:

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

This bug is a touch complex.

First, file layout -

bug/bin/perl6-prolog-lrep
bug/lib/Prolog/{Actions.pm6,Grammar.pm6,LREP.pm6}

As it stands, running​:

perl6 -Ilib bin/perl6-prolog-lrep

# displays the prompt '> ' with Linenoise.

Perl6 precompiles the .pm6 modules so things will run faster next time.
Now, open Grammar.pm and add a '#" comment at the point marked '#^-- Add
a comment here, rerun bin/perl6-prolog-lrep'.

Rerun bin/perl6-prolog-lrep, and now you get this random-seeming error
message​:

--cut here--
Could not find symbol '&here'
in block <unit> at bin/perl6-prolog-lrep line 5

Actually thrown at​:
in block <unit> at bin/perl6-prolog-lrep line 5
--cut here--

Delete the lib/.precomp directory and the problem goes away.

I suspect the precompilation routines should expire the old .precomp
files, but aren't because the change is in a 'grammar' block, and not a
'class' block. I have no proof of that, but that's my suspicion.

If you have questions, the easiest way to get hold of me is on IRC.

@p6rt
Copy link
Author

p6rt commented Jun 10, 2016

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

@p6rt
Copy link
Author

p6rt commented Jul 15, 2016

From @niner

DrForr, can you please re-test this issue? Should be fixed along with #​128156 but I cannot test, since I'm missing Prolog​::Query.

@p6rt p6rt added the precomp 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
Development

No branches or pull requests

1 participant