hi Rob,
On Mon, Mar 12, 2012 at 9:30 PM, Rob Messer <rmes...@intellisurvey.com> wrote: > I just built and installed Padre 0.94 on a Centos 5.x virtual machine and it > generally seems to work pretty well. We have a team of 8 Perl developers at > my company and I'm experimenting with Padre to see if I think it would help > our team in general. > > So anyway, one minor but significant annoyance is that the syntax checker > tends to report a lot of "subroutine undefined" messages when checking .pm > files. This is presumably because it does a simple "perl -c Foo.pm" on the > file, and if Foo.pm contains a "use Bar", and Bar.pm does a "use Foo", then > perl -c sees it as re-use. The same thing happens in the eclipse IDE, and > this perlmonks posting explains it a bit more, as well as a possible > solution: http://www.perlmonks.org/?node_id=700546 > > In addition, when our modules use Moose and namespace::autoclean, then the > "subtype" lines show up as syntax errors when we have circular "use" lines, > even though they execute just fine. I'm not sure the cause of that one, and > it seems to go away when the circular references are gone. > > Are there any possible solutions to make the syntax checker avoid these > issues? The solution at perlmonks (doing "perl -c -e 'use Foo'") doesn't > seem to entirely do the trick, although it does help in some cases. > I guess you meant "Subroutine redefined" there as it says in the PerlMonks post. Let us know if not. I see the discussion there and I don't think Padre could provide anything else than what was recommended in that post. Well, Padre could be taught to hide specific warnings for specific files but I don't think it supports this currently. OTOH I am surprised no one on Perl Monks started to tell you that circular loading of modules is not good. It points to some bad design of the code. Actually such circular loading comes up when the code just evolved without specific design. So maybe instead of hiding this warning a better approach would be to ensure you have no circular loads in your code. It would also make it easier to test it. regards Gabor _______________________________________________ Padre-dev mailing list Padre-dev@perlide.org http://mail.perlide.org/mailman/listinfo/padre-dev