genome / gms

The Genome Modeling System installer
https://github.com/genome/gms/wiki
GNU Lesser General Public License v3.0
78 stars 23 forks source link

Use of qw(...) as parentheses is deprecated #168

Closed gatoravi closed 9 years ago

gatoravi commented 9 years ago

Starting a ref-align build gives this error.

gmsuser@clia1 /opt/gms/TB3QU62/sw/genome/lib/perl/Genome/Model/Build (gms-pub-2015.02.22)> genome model build start hcc1395-tumor-refalign-wgs
Using libraries at /opt/gms/TB3QU62/sw/genome/lib/perl
'models' may require verification...
Resolving parameter 'models' from command argument 'hcc1395-tumor-refalign-wgs'... found 1
Trying to start #1: hcc1395-tumor-refalign-wgs (2891325873)...
Exception is Error while autoloading with 'use Genome::Model::Build::ReferenceAlignment': Error while autoloading with 'use Genome::Model::Build::RunsDV2': Use of qw(...) as parentheses is deprecated at /opt/gms/TB3QU62/sw/genome/lib/perl/Genome/Model/Build/RunsDV2.pm line 46.
Compilation failed in require at (eval 2024) line 2.
BEGIN failed--compilation aborted at (eval 2024) line 2.
 at /opt/gms/TB3QU62/sw/ur/lib/UR/ModuleLoader.pm line 83
Compilation failed in require at (eval 2021) line 2.
BEGIN failed--compilation aborted at (eval 2021) line 2.
 at /opt/gms/TB3QU62/sw/ur/lib/UR/ModuleLoader.pm line 83
ERROR: Died at /opt/gms/TB3QU62/sw/ur/lib/Command/V2.pm line 332.
Removing remaining resource lock: 'build_requested/2891325873' at /opt/gms/TB3QU62/sw/genome/lib/perl/Genome/Sys/Lock/FileBackend.pm line 244.
sakoht commented 9 years ago

Fatal warnings turned-on?

On Feb 28, 2015, at 8:12 PM, Avinash Ramu notifications@github.com wrote:

Starting a ref-align build gives this error.

gmsuser@clia1 ~/gms (ubuntu-12.04-2015.02.22)> genome model build start hcc1395-normal-refalign-exome 'models' may require verification... Resolving parameter 'models' from command argument 'hcc1395-normal-refalign-exome'... found 1 Trying to start #1: hcc1395-normal-refalign-exome (2891377978)... Exception is Error while autoloading with 'use Genome::Model::Build::ReferenceAlignment': Error while autoloading with 'use Genome::Model::Build::RunsDV2': Use of qw(...) as parentheses is deprecated at /opt/gms/TB3QU62/sw/genome/lib/perl/Genome/Model/Build/RunsDV2.pm line 46. Compilation failed in require at (eval 2023) line 2. — Reply to this email directly or view it on GitHub.

gatoravi commented 9 years ago

this is a bit cryptic to me. perhaps someone from APIPE would know better. @mkiwala any ideas ? Were fatal warnings turned-on recently or is this something completely unrelated to the qw() warning.

gatoravi commented 9 years ago

This commit https://github.com/genome/genome/commit/f4c429d52584a3ad69f5a88b788865a7b68a3cc4 by @davidlmorton does turn fatal warnings on in lib/perl/Genome/Model/Build/RunsDV2.pm, why is this an issue on SGMS and not inside TGI ?

susannasiebert commented 9 years ago

Looks like this is a warning starting with Perl 5.14 which is what SGMS is using. TGI is on an older Perl version

tmooney commented 9 years ago

genome/genome#529 should fix this.

malachig commented 9 years ago

Ok then, any objections to changing this code to: for $x (qw(a b c)) { ... } ?

I believe this will be compatible with both old and new versions of Perl...

malachig commented 9 years ago

Looks like @tmooney has resolved this while we were thinking about it. ;). Thanks!

gatoravi commented 9 years ago

this change will need to be merged from master. are we planning on another merge to get these in ?

gatoravi commented 9 years ago

these awesome changes from master were merged into gms-pub-2015.03.04 , thanks Tom.