#572 Compile errors when using MooseX

open
nobody
None
5
2009-11-09
2009-11-09
Anonymous
No

Compile errors produced when files 'use' each other and use MooseX classes and has statements.

Discussion


  • Anonymous
    2009-11-09

    WM_Utilities

     
    Attachments

  • Anonymous
    2009-11-09

    Generic_Pattern_Matching

     

  • Anonymous
    2009-11-09

    When viewed in Eclipse/EPIC the attached files report a comiple error, and yet the code runs OK. The problem occurs only with the recursive 'uses' statements and the 'has' statement.
    EPIC debug 0.6.27
    EPIC Editor 0.6.24
    EPIC source pluin 0.6.35

     
  • Nigel Dyer
    Nigel Dyer
    2010-06-25

    As our project grows, this is getting to be a significant annoyance, in that many of the files are marked as errored. All of the perl code does however run with no errors. I have rechecked with EPIC 0.6.36 in windows, and with the latest Perl 5.10.1 (with and without the cwd.pm file fix) and all packages at the current release as of 26/6/2010.

     
  • Nigel Dyer
    Nigel Dyer
    2010-06-25

    Workaround found. Strictly this is probably a Perl::MooseX issue in that the error also occurs if the pm file is built outside of Eclipse, which is why Eclipse flags it up as an error. The fix is to insert a 'use Moose;' line immediately before the has statement in those modules where the error occurs.