Closed xtaran closed 5 years ago
@xtaran : does it work for you now?
@xtaran : does it work for you now?
I expected so, but if I replace my patch with your patch in the Debian package of 2.10.1 which I'm currently preparing, it's failing again:
Argument "" isn't numeric in numeric ne (!=) at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 276.
TheWML::Frontends::Wml::Runner::_handle_opt_M_stdin(TheWML::Frontends::Wml::Runner=HASH(0x55ca8e6fb458)) called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 926
TheWML::Frontends::Wml::Runner::run_with_ARGV(TheWML::Frontends::Wml::Runner=HASH(0x55ca8e6fb458), HASH(0x55ca8eb21d18)) called at /usr/bin/wml line 47
/usr/bin/wml -n '-o(ALL-LANG_*)+LANG_EN:geekcode.en.html' '-o(ALL-LANG_*)+LANG_DE:geekcode.de.html' geekcode.wml (skipped)
I think the issue is that $_pass_mgr->pass1(…)
returns neither undef nor a number but an empty string.
The following change makes it working for me, but since I don't know what the pass1
method is expected to return, I'm not sure if that's the proper fix for it:
- if ( defined $rc )
+ if ( defined $rc and $rc ne '' )
That fixed it, thanks!
In my setup,
wml
called bywmk
(after having fixed #10) bails out as follows once per skipped (!) file:My
.wmlrc
:My
.wmkrc
:Here's a patch, but I'm not sure if it catches all cases properly:
A proper pull request will probably follow soon.