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

LTA error message when misspelling type names in signatures in Rakudo #2075

Closed
p6rt opened this issue Aug 17, 2010 · 5 comments
Closed

LTA error message when misspelling type names in signatures in Rakudo #2075

p6rt opened this issue Aug 17, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Aug 17, 2010

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

Searchable as RT77270$

@p6rt
Copy link
Author

p6rt commented Aug 17, 2010

From @masak

<masak> rakudo​: sub foo(--> NoSuchType) { say "OH HAI" }
<p6eval> rakudo b64718​: OUTPUT«===SORRY!===␤Unable to parse
postcircumfix​:sym<( )>, couldn't find final ')' [...]
<masak> rakudo​: class A { method foo(--> NoSuchType) { say "OH HAI" } }
<p6eval> rakudo b64718​: OUTPUT«===SORRY!===␤Malformed method at line
22, near "foo(--> No"␤»
<masak> both these error messages could be improved to indicate the
actual problem.
<moritz_> agreed
* masak submits rakudobug
<masak> std​: sub foo(--> NoSuchType) { say "OH HAI" }
<p6eval> std 32024​: OUTPUT«�[31m===�[0mSORRY!�[31m===�[0m␤No type
found after --> [...]
<masak> std​: class A { method foo(--> NoSuchType) { say "OH HAI" } }
<p6eval> std 32024​: OUTPUT«�[31m===�[0mSORRY!�[31m===�[0m␤No type
found after --> [...]
<masak> 'No type found' isn't spot on either, but it's much better.

@p6rt
Copy link
Author

p6rt commented Jun 10, 2013

From @coke

On Tue Aug 17 05​:38​:17 2010, masak wrote​:

<masak> rakudo​: sub foo(--> NoSuchType) { say "OH HAI" }
<p6eval> rakudo b64718​: OUTPUT«===SORRY!===␤Unable to parse
postcircumfix​:sym<( )>, couldn't find final ')' [...]
<masak> rakudo​: class A { method foo(--> NoSuchType) { say "OH HAI" } }
<p6eval> rakudo b64718​: OUTPUT«===SORRY!===␤Malformed method at line
22, near "foo(--> No"␤»
<masak> both these error messages could be improved to indicate the
actual problem.
<moritz_> agreed
* masak submits rakudobug
<masak> std​: sub foo(--> NoSuchType) { say "OH HAI" }
<p6eval> std 32024​: OUTPUT«�[31m===�[0mSORRY!�[31m===�[0m␤No type
found after --> [...]
<masak> std​: class A { method foo(--> NoSuchType) { say "OH HAI" } }
<p6eval> std 32024​: OUTPUT«�[31m===�[0mSORRY!�[31m===�[0m␤No type
found after --> [...]
<masak> 'No type found' isn't spot on either, but it's much better.

Current behavior​:

09​:14 < [Coke]> rakudo​: sub foo(--> NoSuchType) { say "OH HAI" } # RT 77270
09​:14 <+camelia> rakudo b2072f​: OUTPUT«===SORRY!===␤Type 'NoSuchType' is not
  declared␤at /tmp/uAYz4pTVgd​:1␤------> sub foo(--> NoSuchType⏏)
  { say "OH HAI" } # RT 77270␤»

Closable with tests.
--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jun 10, 2013

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

@p6rt
Copy link
Author

p6rt commented Jan 25, 2014

From @peschwa

Am Mo 10. Jun 2013, 06​:15​:12, coke schrieb​:

On Tue Aug 17 05​:38​:17 2010, masak wrote​:

<masak> rakudo​: sub foo(--> NoSuchType) { say "OH HAI" }
<p6eval> rakudo b64718​: OUTPUT«===SORRY!===␤Unable to parse
postcircumfix​:sym<( )>, couldn't find final ')' [...]
<masak> rakudo​: class A { method foo(--> NoSuchType) { say "OH HAI" }
}
<p6eval> rakudo b64718​: OUTPUT«===SORRY!===␤Malformed method at line
22, near "foo(--> No"␤»
<masak> both these error messages could be improved to indicate the
actual problem.
<moritz_> agreed
* masak submits rakudobug
<masak> std​: sub foo(--> NoSuchType) { say "OH HAI" }
<p6eval> std 32024​: OUTPUT«�[31m===�[0mSORRY!�[31m===�[0m␤No type
found after --> [...]
<masak> std​: class A { method foo(--> NoSuchType) { say "OH HAI" } }
<p6eval> std 32024​: OUTPUT«�[31m===�[0mSORRY!�[31m===�[0m␤No type
found after --> [...]
<masak> 'No type found' isn't spot on either, but it's much better.

Current behavior​:

09​:14 < [Coke]> rakudo​: sub foo(--> NoSuchType) { say "OH HAI" } # RT
77270
09​:14 <+camelia> rakudo b2072f​: OUTPUT«===SORRY!===␤Type 'NoSuchType'
is not
declared␤at /tmp/uAYz4pTVgd​:1␤------> sub foo(-->
NoSuchType⏏)
{ say "OH HAI" } # RT 77270␤»

Closable with tests.

Added a test to roast in comit a984324 as per the example above.

@p6rt p6rt closed this as completed Jan 26, 2014
@p6rt
Copy link
Author

p6rt commented Jan 26, 2014

@FROGGS - 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