PadreIDE / Debug-Client

Debug::Client
1 stars 4 forks source link

Debug-Client-0.31: Error: given is deprecated at ... on Strawberry Perl 3.38.0 #13

Closed twata1 closed 2 weeks ago

twata1 commented 1 year ago

Hello,

Running Strawberry Perl 5.38.0, I noticed the following message.

C:\home\skyfish>cpan MANWAR/Debug-Client-0.31.tar.gz

(snip)

t/00-report-prereqs.t .. ok

#   Failed test 'use Debug::Client;'
#   at t/01-compile.t line 10.
#     Tried to use 'Debug::Client'.
#     Error:  given is deprecated at C:\strawberry-perl-5.38.0.1-64bit-portable\cpan\build\Debug-Client-0.31-1\blib\lib/Debug/Client.pm line 237.
# Compilation failed in require at t/01-compile.t line 10.
# BEGIN failed--compilation aborted at t/01-compile.t line 10.
Use of uninitialized value $Debug::Client::VERSION in concatenation (.) or string at t/01-compile.t line 32.
# Looks like your test exited with 255 just after 18.
t/01-compile.t .........
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/18 subtests

#   Failed test 'use Debug::Client;'
#   at t/02-exports.t line 10.
#     Tried to use 'Debug::Client'.
#     Error:  given is deprecated at C:\strawberry-perl-5.38.0.1-64bit-portable\cpan\build\Debug-Client-0.31-1\blib\lib/Debug/Client.pm line 237.
# Compilation failed in require at t/02-exports.t line 10.
# BEGIN failed--compilation aborted at t/02-exports.t line 10.

#   Failed test 'Debug::Client->can(...)'
#   at t/02-exports.t line 24.
#     Debug::Client->can('get_filename') failed
#     Debug::Client->can('get') failed
#     Debug::Client->can('get_h_var') failed
#     Debug::Client->can('get_options') failed
#     Debug::Client->can('get_p_exp') failed
#     Debug::Client->can('get_v_vars') failed
#     Debug::Client->can('get_value') failed
#     Debug::Client->can('get_x_vars') failed
#     Debug::Client->can('get_y_zero') failed
#     Debug::Client->can('module') failed
#     Debug::Client->can('remove_breakpoint') failed
#     Debug::Client->can('get_row') failed
#     Debug::Client->can('set_breakpoint') failed
#     Debug::Client->can('set_option') failed
#     Debug::Client->can('show_breakpoints') failed
# Looks like you failed 2 tests of 2.
t/02-exports.t .........
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests
t/03-pod.t ............. skipped: Author tests, not required for installation.
t/04-pod-coverage.t .... skipped: Author tests, not required for installation.

(snip)

Thank you,

szabgab commented 1 year ago

thanks for reporting

viy2 commented 11 months ago

patch for given ... when

viy2 commented 11 months ago

perl-Debug-Client-0.31-perl5.38-no-given-when.patch.gz

eserte commented 3 weeks ago

With perl 5.41.x and the removal of switch and smartmatch, this is now fatal:

#   Failed test 'use Debug::Client;'
#   at t/01-compile.t line 10.
#     Tried to use 'Debug::Client'.
#     Error:  syntax error at /home/cpansand/.cpan/build/2024102011/Debug-Client-0.31-0/blib/lib/Debug/Client.pm line 237, near ") {"
# Execution of /home/cpansand/.cpan/build/2024102011/Debug-Client-0.31-0/blib/lib/Debug/Client.pm aborted due to compilation errors.
# Compilation failed in require at t/01-compile.t line 10.
# BEGIN failed--compilation aborted at t/01-compile.t line 10.
Use of uninitialized value $Debug::Client::VERSION in concatenation (.) or string at t/01-compile.t line 32.
# Looks like your test exited with 255 just after 18.
t/01-compile.t ......... 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/18 subtests 
szabgab commented 2 weeks ago

0.32 released fixing this. Thanks for the reports.