Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Error reporting in Function::Parameters -- or by Moo?

by Discipulus (Abbot)
on May 31, 2018 at 19:42 UTC ( #1215569=note: print w/replies, xml ) Need Help??


in reply to Error reporting in Function::Parameters

Hello golux,

If I'm permitted to do some wild guess, the problem you are facing does not rely within Method::Signatures nor Function::Parameters but with Moo on it's own.

Moo does a lot of code generation and a syntax error makes everything go messy.

Also compiletime/runtime timing must play a role in this: as you discovered perl -c Moo_with_syntax_errors_module.pm reveals the right point where the error happens: 'Bareword "nnext" not allowed.. '

I'd try to change use module into require module or using Module::Load as side experiment.

I hope this can be useful for you even if my English is easily misunderstandable and my OO experience is very very limited.

See also this Moo report

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Error reporting in Function::Parameters -- or by Moo?
by Haarg (Curate) on Jun 01, 2018 at 03:36 UTC
    The error reported doesn't change if use of Moo is removed from the code. Moo doesn't change how the rest of your code is parsed. This is definitely an issue in Function::Parameters. It seems to be getting confused about how to continue parsing after a compilation error.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1215569]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2020-11-26 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?