【发布时间】:2015-10-22 09:07:51
【问题描述】:
我正在尝试为 Windows perl v5.20 创建 DWIM 所以我为 Padre 1.0 安装了所有依赖项 Padre-ide github repo, dwimperl-windows
我在 dmake 测试中有错误
你有什么修复方法的想法吗?
所有错误都让我感到困惑, 我无法想象如何开始调试 padre 以找到错误的核心(根本原因)
即使是第一个错误
t/02_new.t ................. 1/62 # Looks like you planned 62 tests but ran 1.
# Looks like your test exited with 255 just after 1.
或第二个
t/05_project.t ............. 1/16 Invalid version format (non-numeric data) at C
:\Users\TOSH\Documents\GitHub\padre-mi\blib\lib/Padre/Wx/Menu/Debug.pm line 5.
BEGIN failed--compilation aborted at C:\Users\TOSH\Documents\GitHub\padre-mi\blib\lib/Padre/Wx/Menu/Debug.pm line 5.
Compilation failed in require at C:\Users\TOSH\Documents\GitHub\padre-mi\blib\lib/Padre/Wx/Menubar.pm line 72.
# Looks like you planned 16 tests but ran 2.
好吧,我尝试使用 Padre 0.94 做同样的事情 这里build.log
错误更有趣 Possible precedence issue with control flow operator at
我一步一步开始调试
perl -Ilib -MCarp::Always -e "use Test::More;use_ok('Padre::Config');done_testing()" > error.log 2>&1
我得到了
Error: Failed to find share dir for dist 'Padre' at C:/Users/TOSH/Documents/GitHub/dwimperl-windows/strawberry-perl-5.20.0.1-32bit-portable/perl/vendor/lib/File/ShareDir.pm line 173.
【问题讨论】:
-
那么
blib\lib/Padre/Wx/Menu/Debug.pm第 5 行是什么? -
听起来你的 Perl 构建很疯狂。您是否收到以下错误:
perl -e"use 5.008;"您可以尝试升级version -
我还要确保
blib\lib/Padre/Wx/Menu/Debug.pm使用 Windows 行尾。
标签: windows perl testing padre dmake