{"action":"opened","issue":{"url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/issues/53","repository_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall","labels_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/issues/53/comments","events_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/issues/53/events","html_url":"https://github.com/houseabsolute/perl-code-tidyall/issues/53","id":138919512,"number":53,"title":"Plugin loading fails with Code::TidyAll 0.41","user":{"login":"mgruner","id":211281,"avatar_url":"https://avatars.githubusercontent.com/u/211281?v=3","gravatar_id":"","url":"https://api.github.com/users/mgruner","html_url":"https://github.com/mgruner","followers_url":"https://api.github.com/users/mgruner/followers","following_url":"https://api.github.com/users/mgruner/following{/other_user}","gists_url":"https://api.github.com/users/mgruner/gists{/gist_id}","starred_url":"https://api.github.com/users/mgruner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgruner/subscriptions","organizations_url":"https://api.github.com/users/mgruner/orgs","repos_url":"https://api.github.com/users/mgruner/repos","events_url":"https://api.github.com/users/mgruner/events{/privacy}","received_events_url":"https://api.github.com/users/mgruner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-07T08:37:28Z","updated_at":"2016-03-07T08:37:28Z","closed_at":null,"body":"Hello.\r\n\r\nSince v. 0.41 we have failing unit tests for some custom TidyAll plugins. Our unit test loads them with \r\n```\r\nmy $Plugin = $PluginModule->new(\r\n                    class   => $PluginModule,\r\n                    name    => $PluginModule,\r\n                    tidyall => $TidyAll,\r\n\r\n                    #%$plugin_conf\r\n                );\r\n```\r\n\r\nwhich worked fine until 0.40, and now fails in 0.41. I can confirm this for Ubuntu 12.04 and Mac OS. There is an unclear message:\r\n\r\n```\r\n Message: Attempt to reload TidyAll/Plugin/OTRS/Base.pm aborted.\r\nCompilation failed in require at (eval 432) line 2.\r\n\t...propagated at /System/Library/Perl/5.18/base.pm line 84.\r\nBEGIN failed--compilation aborted at /ws/otrs5/Kernel//TidyAll/Plugin/OTRS/PO/Lint.pm line 18.\r\n```\r\n\r\nOur plugins use a common base class via ```use base qw(TidyAll::Plugin::OTRS::Base);``` and this class also just does a ```use base qw(Code::TidyAll::Plugin);```. There the compiler seems to choke, even though I don't see any big changes from 0.40 to 0.41 in the code.\r\n\r\nAll code is available at https://github.com/OTRS/otrscodepolicy/tree/master/Kernel/TidyAll/Plugin/OTRS. A failing test run can be seen at https://travis-ci.org/OTRS/otrs/jobs/113671840.\r\n\r\nI would be grateful for any hints about this problem. Do we need to adapt something in our source code?\r\n\r\nThanks and best regards, \r\nMartin"}}