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

Duplicate Compilation Errors (suggestive of precompilation done twice) #5003

Closed
p6rt opened this issue Jan 5, 2016 · 5 comments
Closed

Duplicate Compilation Errors (suggestive of precompilation done twice) #5003

p6rt opened this issue Jan 5, 2016 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Jan 5, 2016

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

Searchable as RT127176$

@p6rt
Copy link
Author

p6rt commented Jan 5, 2016

From @zoffixznet

If I `use` a class with a compile error, the message about it is displayed on the terminal twice. This does not happen if the syntax error is inside a script or -e ''​:

$ cat Foo.pm
class Foo { blarg! }
$ perl6 -I. -MFoo -e ''
===SORRY!=== Error while compiling /tmp/tmp.Fc0CJT1rlv/Foo.pm
Negation metaoperator not followed by valid infix
at /tmp/tmp.Fc0CJT1rlv/Foo.pm​:1
------> class Foo { blarg!⏏ }
  expecting any of​:
  infix
  infix stopper
===SORRY!=== Error while compiling /tmp/tmp.Fc0CJT1rlv/Foo.pm
Negation metaoperator not followed by valid infix
at /tmp/tmp.Fc0CJT1rlv/Foo.pm​:1
------> class Foo { blarg!⏏ }
  expecting any of​:
  infix
  infix stopper

$ perl6 -e 'class Foo { blarg! }'
===SORRY!=== Error while compiling -e
Negation metaoperator not followed by valid infix
at -e​:1
------> class Foo { blarg!⏏ }
  expecting any of​:
  infix
  infix stopper

@p6rt
Copy link
Author

p6rt commented Feb 25, 2016

From @lizmat

Fixed with 4f338014ae662c790f964 , tests are still needed

On 05 Jan 2016, at 21​:03, Zoffix Znet (via RT) <perl6-bugs-followup@​perl.org> wrote​:

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

If I `use` a class with a compile error, the message about it is displayed on the terminal twice. This does not happen if the syntax error is inside a script or -e ''​:

$ cat Foo.pm
class Foo { blarg! }
$ perl6 -I. -MFoo -e ''
===SORRY!=== Error while compiling /tmp/tmp.Fc0CJT1rlv/Foo.pm
Negation metaoperator not followed by valid infix
at /tmp/tmp.Fc0CJT1rlv/Foo.pm​:1
------> class Foo { blarg!⏏ }
expecting any of​:
infix
infix stopper
===SORRY!=== Error while compiling /tmp/tmp.Fc0CJT1rlv/Foo.pm
Negation metaoperator not followed by valid infix
at /tmp/tmp.Fc0CJT1rlv/Foo.pm​:1
------> class Foo { blarg!⏏ }
expecting any of​:
infix
infix stopper

$ perl6 -e 'class Foo { blarg! }'
===SORRY!=== Error while compiling -e
Negation metaoperator not followed by valid infix
at -e​:1
------> class Foo { blarg!⏏ }
expecting any of​:
infix
infix stopper

@p6rt
Copy link
Author

p6rt commented Feb 25, 2016

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

@p6rt
Copy link
Author

p6rt commented May 8, 2016

From @usev6

On Thu Feb 25 10​:58​:44 2016, elizabeth wrote​:

Fixed with 4f338014ae662c790f964 , tests are still needed

Great! I added a test to S10-packages/precompilation.t with commit Raku/roast@d2eb961cec

I'm closing this ticket as 'resolved'.

@p6rt p6rt closed this as completed May 8, 2016
@p6rt
Copy link
Author

p6rt commented May 8, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant