thewml / website-meta-language

An old offline HTML preprocessor (which can be used for static site generation), written in Perl and C that is still maintained for legacy reasons, but probably not recommended for new sites.
https://www.shlomifish.org/open-source/projects/website-meta-language/
GNU General Public License v2.0
14 stars 8 forks source link

wml throws several "uninitialized value" warnings on input from STDIN #24

Closed xtaran closed 5 years ago

xtaran commented 5 years ago

wml 2.0.12 does what I'd expect on empty input — it gives an empty output:

$ echo '' | wml
$

wml 2.12.0 throws a bunch of "uninitialized value" warnings:

$ echo '' | wml
Use of uninitialized value in pattern match (m//) at /usr/share/wml/TheWML/Frontends/Wml/WmlRc.pm line 48.
        TheWML::Frontends::Wml::WmlRc::_process_wmlrc(TheWML::Frontends::Wml::WmlRc=HASH(0x55bf8d3acbc8)) called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 858
        TheWML::Frontends::Wml::Runner::run_with_ARGV(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458), HASH(0x55bf8d15a308)) called at /usr/bin/wml line 47
Use of uninitialized value in string eq at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 698.
        TheWML::Frontends::Wml::Runner::_set_src(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458)) called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 872
        TheWML::Frontends::Wml::Runner::run_with_ARGV(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458), HASH(0x55bf8d15a308)) called at /usr/bin/wml line 47
Use of uninitialized value in string ne at /usr/share/wml/TheWML/Backends/IPP/Line.pm line 151, <GEN13> line 1.
        TheWML::Backends::IPP::Line::_process_line(TheWML::Backends::IPP::Line=HASH(0x55bf8d59d9f0), SCALAR(0x55bf8d70b420), 0, Path::Tiny=ARRAY(0x55bf8d582248)) called at /usr/share/wml/TheWML/Backends/IPP/File.pm line 261
        TheWML::Backends::IPP::File::_process_file(TheWML::Backends::IPP::File=HASH(0x55bf8d74e1f8), Path::Tiny=ARRAY(0x55bf8d582248), "", HASH(0x55bf8d72b980)) called at /usr/share/wml/TheWML/Backends/IPP/Main.pm line 100
        TheWML::Backends::IPP::Main::_process_file(TheWML::Backends::IPP::Main=HASH(0x55bf8d47bbb8), "include", TheWML::Backends::IPP::Delimit=HASH(0x55bf8d72b530), Path::Tiny=ARRAY(0x55bf8d582248), "", 0, 1, HASH(0x55bf8d72b980)) called at /usr/share/wml/TheWML/Backends/IPP/Main.pm line 236
        TheWML::Backends::IPP::Main::main(TheWML::Backends::IPP::Main=HASH(0x55bf8d47bbb8)) called at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 177
        TheWML::Frontends::Wml::PassesManager::__ANON__("-DWML_SRC_DIRNAME=", "-DWML_SRC_FILENAME=STDIN", "-DWML_SRC_BASENAME=STDIN", "-DWML_SRC_TIME=1546757192", "-DWML_SRC_CTIME=Sun Jan  6 07:46:32 2019", "-DWML_SRC_ISOTIME=2019-01-06 07:46:32", "-DWML_SRC_GMT_CTIME=Sun Jan  6 06:46:32 2019", "-DWML_SRC_GMT_ISOTIME=2019-01-06 06:46:32", ...) called at /usr/share/wml/TheWML/Frontends/Wml/PassObj.pm line 86
        TheWML::Frontends::Wml::PassObj::dosource(TheWML::Frontends::Wml::PassObj=HASH(0x55bf8ceeb6a8), TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8), "/usr/share/wml/exec/wml_p1_ipp", " \"-DWML_SRC_DIRNAME=\" \"-DWML_SRC_FILENAME=STDIN\" \"-DWML_SRC_B"..., CODE(0x55bf8d39d628)) called at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 161
        TheWML::Frontends::Wml::PassesManager::_generic_do(TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8), HASH(0x55bf8d5673e0)) called at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 180
        TheWML::Frontends::Wml::PassesManager::pass1(TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8), " \"-DWML_SRC_DIRNAME=\" \"-DWML_SRC_FILENAME=STDIN\" \"-DWML_SRC_B"..., "/tmp/wml.input.23183.tmp", "/tmp/wml.23183.tmp1", "/tmp/wml.23183.tmp3") called at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 72
        TheWML::Frontends::Wml::PassesManager::__ANON__(TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8), " \"-DWML_SRC_DIRNAME=\" \"-DWML_SRC_FILENAME=STDIN\" \"-DWML_SRC_B"..., "/tmp/wml.input.23183.tmp", "/tmp/wml.23183.tmp1", "/tmp/wml.23183.tmp3") called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 381
        TheWML::Frontends::Wml::Runner::_run_pass(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458), 1, SCALAR(0x55bf8d41b680), SCALAR(0x55bf8d41b650), SCALAR(0x55bf8d41b668)) called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 441
        TheWML::Frontends::Wml::Runner::_passes_loop(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458)) called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 726
        TheWML::Frontends::Wml::Runner::_output_and_cleanup(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458)) called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 930
        TheWML::Frontends::Wml::Runner::run_with_ARGV(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458), HASH(0x55bf8d15a308)) called at /usr/bin/wml line 47
Use of uninitialized value in string ne at /usr/share/wml/TheWML/Backends/IPP/Line.pm line 151, <GEN13> line 2.
        TheWML::Backends::IPP::Line::_process_line(TheWML::Backends::IPP::Line=HASH(0x55bf8d5824a0), SCALAR(0x55bf8d70b420), 0, Path::Tiny=ARRAY(0x55bf8d582248)) called at /usr/share/wml/TheWML/Backends/IPP/File.pm line 261
        TheWML::Backends::IPP::File::_process_file(TheWML::Backends::IPP::File=HASH(0x55bf8d74e1f8), Path::Tiny=ARRAY(0x55bf8d582248), "", HASH(0x55bf8d72b980)) called at /usr/share/wml/TheWML/Backends/IPP/Main.pm line 100
        TheWML::Backends::IPP::Main::_process_file(TheWML::Backends::IPP::Main=HASH(0x55bf8d47bbb8), "include", TheWML::Backends::IPP::Delimit=HASH(0x55bf8d72b530), Path::Tiny=ARRAY(0x55bf8d582248), "", 0, 1, HASH(0x55bf8d72b980)) called at /usr/share/wml/TheWML/Backends/IPP/Main.pm line 236
        TheWML::Backends::IPP::Main::main(TheWML::Backends::IPP::Main=HASH(0x55bf8d47bbb8)) called at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 177
        TheWML::Frontends::Wml::PassesManager::__ANON__("-DWML_SRC_DIRNAME=", "-DWML_SRC_FILENAME=STDIN", "-DWML_SRC_BASENAME=STDIN", "-DWML_SRC_TIME=1546757192", "-DWML_SRC_CTIME=Sun Jan  6 07:46:32 2019", "-DWML_SRC_ISOTIME=2019-01-06 07:46:32", "-DWML_SRC_GMT_CTIME=Sun Jan  6 06:46:32 2019", "-DWML_SRC_GMT_ISOTIME=2019-01-06 06:46:32", ...) called at /usr/share/wml/TheWML/Frontends/Wml/PassObj.pm line 86
        TheWML::Frontends::Wml::PassObj::dosource(TheWML::Frontends::Wml::PassObj=HASH(0x55bf8ceeb6a8), TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8), "/usr/share/wml/exec/wml_p1_ipp", " \"-DWML_SRC_DIRNAME=\" \"-DWML_SRC_FILENAME=STDIN\" \"-DWML_SRC_B"..., CODE(0x55bf8d39d628)) called at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 161
        TheWML::Frontends::Wml::PassesManager::_generic_do(TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8), HASH(0x55bf8d5673e0)) called at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 180
        TheWML::Frontends::Wml::PassesManager::pass1(TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8), " \"-DWML_SRC_DIRNAME=\" \"-DWML_SRC_FILENAME=STDIN\" \"-DWML_SRC_B"..., "/tmp/wml.input.23183.tmp", "/tmp/wml.23183.tmp1", "/tmp/wml.23183.tmp3") called at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 72
        TheWML::Frontends::Wml::PassesManager::__ANON__(TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8), " \"-DWML_SRC_DIRNAME=\" \"-DWML_SRC_FILENAME=STDIN\" \"-DWML_SRC_B"..., "/tmp/wml.input.23183.tmp", "/tmp/wml.23183.tmp1", "/tmp/wml.23183.tmp3") called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 381
        TheWML::Frontends::Wml::Runner::_run_pass(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458), 1, SCALAR(0x55bf8d41b680), SCALAR(0x55bf8d41b650), SCALAR(0x55bf8d41b668)) called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 441
        TheWML::Frontends::Wml::Runner::_passes_loop(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458)) called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 726
        TheWML::Frontends::Wml::Runner::_output_and_cleanup(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458)) called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 930
        TheWML::Frontends::Wml::Runner::run_with_ARGV(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458), HASH(0x55bf8d15a308)) called at /usr/bin/wml line 47
Use of uninitialized value in string ne at /usr/share/wml/TheWML/Backends/IPP/Line.pm line 151, <GEN23> line 1.
        TheWML::Backends::IPP::Line::_process_line(TheWML::Backends::IPP::Line=HASH(0x55bf8d841fb8), SCALAR(0x55bf8d70b420), 0, Path::Tiny=ARRAY(0x55bf8d582248)) called at /usr/share/wml/TheWML/Backends/IPP/File.pm line 261
        TheWML::Backends::IPP::File::_process_file(TheWML::Backends::IPP::File=HASH(0x55bf8d7b30c8), Path::Tiny=ARRAY(0x55bf8d582248), "/tmp/wml.input.23183.tmp", HASH(0x55bf8d72b980)) called at /usr/share/wml/TheWML/Backends/IPP/Main.pm line 100
        TheWML::Backends::IPP::Main::_process_file(TheWML::Backends::IPP::Main=HASH(0x55bf8d47bbb8), "include", TheWML::Backends::IPP::Delimit=HASH(0x55bf8d74e138), Path::Tiny=ARRAY(0x55bf8d582248), "/tmp/wml.input.23183.tmp", 0, 1, HASH(0x55bf8d72b980)) called at /usr/share/wml/TheWML/Backends/IPP/Main.pm line 277
        TheWML::Backends::IPP::Main::_process_real_files(TheWML::Backends::IPP::Main=HASH(0x55bf8d47bbb8), ARRAY(0x55bf8d72b1d0), "/tmp/wml.input.23183.tmp", HASH(0x55bf8d72b980)) called at /usr/share/wml/TheWML/Backends/IPP/Main.pm line 243
        TheWML::Backends::IPP::Main::main(TheWML::Backends::IPP::Main=HASH(0x55bf8d47bbb8)) called at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 177
        TheWML::Frontends::Wml::PassesManager::__ANON__("-DWML_SRC_DIRNAME=", "-DWML_SRC_FILENAME=STDIN", "-DWML_SRC_BASENAME=STDIN", "-DWML_SRC_TIME=1546757192", "-DWML_SRC_CTIME=Sun Jan  6 07:46:32 2019", "-DWML_SRC_ISOTIME=2019-01-06 07:46:32", "-DWML_SRC_GMT_CTIME=Sun Jan  6 06:46:32 2019", "-DWML_SRC_GMT_ISOTIME=2019-01-06 06:46:32", ...) called at /usr/share/wml/TheWML/Frontends/Wml/PassObj.pm line 86
        TheWML::Frontends::Wml::PassObj::dosource(TheWML::Frontends::Wml::PassObj=HASH(0x55bf8ceeb6a8), TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8), "/usr/share/wml/exec/wml_p1_ipp", " \"-DWML_SRC_DIRNAME=\" \"-DWML_SRC_FILENAME=STDIN\" \"-DWML_SRC_B"..., CODE(0x55bf8d39d628)) called at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 161
        TheWML::Frontends::Wml::PassesManager::_generic_do(TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8), HASH(0x55bf8d5673e0)) called at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 180
        TheWML::Frontends::Wml::PassesManager::pass1(TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8), " \"-DWML_SRC_DIRNAME=\" \"-DWML_SRC_FILENAME=STDIN\" \"-DWML_SRC_B"..., "/tmp/wml.input.23183.tmp", "/tmp/wml.23183.tmp1", "/tmp/wml.23183.tmp3") called at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 72
        TheWML::Frontends::Wml::PassesManager::__ANON__(TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8), " \"-DWML_SRC_DIRNAME=\" \"-DWML_SRC_FILENAME=STDIN\" \"-DWML_SRC_B"..., "/tmp/wml.input.23183.tmp", "/tmp/wml.23183.tmp1", "/tmp/wml.23183.tmp3") called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 381
        TheWML::Frontends::Wml::Runner::_run_pass(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458), 1, SCALAR(0x55bf8d41b680), SCALAR(0x55bf8d41b650), SCALAR(0x55bf8d41b668)) called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 441
        TheWML::Frontends::Wml::Runner::_passes_loop(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458)) called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 726
        TheWML::Frontends::Wml::Runner::_output_and_cleanup(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458)) called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 930
        TheWML::Frontends::Wml::Runner::run_with_ARGV(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458), HASH(0x55bf8d15a308)) called at /usr/bin/wml line 47
$
shlomif commented 5 years ago

On Sat, 05 Jan 2019 22:51:47 -0800 Axel Beckert notifications@github.com wrote:

wml 2.0.12 does what I'd expect on empty input — it gives an empty output:

$ echo '' | wml
$

Thanks for the report. From my testing, it happens only when passing data from stdin:

shlomif[wml]:$trunk/src$ cat f shlomif[wml]:$trunk/src$ wml f shlomif[wml]:$trunk/src$

I'll try to investigate

wml 2.12.0 throws a bunch of "uninitialized value" warnings:


$ echo '' | wml
Use of uninitialized value in pattern match (m//)
at /usr/share/wml/TheWML/Frontends/Wml/WmlRc.pm line 48.
TheWML::Frontends::Wml::WmlRc::_process_wmlrc(TheWML::Frontends::Wml::WmlRc=HASH(0x55bf8d3acbc8))
called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 858
TheWML::Frontends::Wml::Runner::run_with_ARGV(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458),
HASH(0x55bf8d15a308)) called at /usr/bin/wml line 47 Use of uninitialized
value in string eq at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 698.
TheWML::Frontends::Wml::Runner::_set_src(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458))
called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 872
TheWML::Frontends::Wml::Runner::run_with_ARGV(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458),
HASH(0x55bf8d15a308)) called at /usr/bin/wml line 47 Use of uninitialized
value in string ne at /usr/share/wml/TheWML/Backends/IPP/Line.pm line 151,
<GEN13> line 1.
TheWML::Backends::IPP::Line::_process_line(TheWML::Backends::IPP::Line=HASH(0x55bf8d59d9f0),
SCALAR(0x55bf8d70b420), 0, Path::Tiny=ARRAY(0x55bf8d582248)) called
at /usr/share/wml/TheWML/Backends/IPP/File.pm line 261
TheWML::Backends::IPP::File::_process_file(TheWML::Backends::IPP::File=HASH(0x55bf8d74e1f8),
Path::Tiny=ARRAY(0x55bf8d582248), "", HASH(0x55bf8d72b980)) called
at /usr/share/wml/TheWML/Backends/IPP/Main.pm line 100
TheWML::Backends::IPP::Main::_process_file(TheWML::Backends::IPP::Main=HASH(0x55bf8d47bbb8),
"include", TheWML::Backends::IPP::Delimit=HASH(0x55bf8d72b530),
Path::Tiny=ARRAY(0x55bf8d582248), "", 0, 1, HASH(0x55bf8d72b980)) called
at /usr/share/wml/TheWML/Backends/IPP/Main.pm line 236
TheWML::Backends::IPP::Main::main(TheWML::Backends::IPP::Main=HASH(0x55bf8d47bbb8))
called at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 177
TheWML::Frontends::Wml::PassesManager::__ANON__("-DWML_SRC_DIRNAME=",
"-DWML_SRC_FILENAME=STDIN", "-DWML_SRC_BASENAME=STDIN",
"-DWML_SRC_TIME=1546757192", "-DWML_SRC_CTIME=Sun Jan  6 07:46:32 2019",
"-DWML_SRC_ISOTIME=2019-01-06 07:46:32", "-DWML_SRC_GMT_CTIME=Sun Jan  6
06:46:32 2019", "-DWML_SRC_GMT_ISOTIME=2019-01-06 06:46:32", ...) called
at /usr/share/wml/TheWML/Frontends/Wml/PassObj.pm line 86
TheWML::Frontends::Wml::PassObj::dosource(TheWML::Frontends::Wml::PassObj=HASH(0x55bf8ceeb6a8),
TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8),
"/usr/share/wml/exec/wml_p1_ipp", " \"-DWML_SRC_DIRNAME=\"
\"-DWML_SRC_FILENAME=STDIN\" \"-DWML_SRC_B"..., CODE(0x55bf8d39d628)) called
at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 161
TheWML::Frontends::Wml::PassesManager::_generic_do(TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8),
HASH(0x55bf8d5673e0)) called
at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 180
TheWML::Frontends::Wml::PassesManager::pass1(TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8),
" \"-DWML_SRC_DIRNAME=\" \"-DWML_SRC_FILENAME=STDIN\" \"-DWML_SRC_B"...,
"/tmp/wml.input.23183.tmp", "/tmp/wml.23183.tmp1", "/tmp/wml.23183.tmp3")
called at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 72
TheWML::Frontends::Wml::PassesManager::__ANON__(TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8),
" \"-DWML_SRC_DIRNAME=\" \"-DWML_SRC_FILENAME=STDIN\" \"-DWML_SRC_B"...,
"/tmp/wml.input.23183.tmp", "/tmp/wml.23183.tmp1", "/tmp/wml.23183.tmp3")
called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 381
TheWML::Frontends::Wml::Runner::_run_pass(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458),
1, SCALAR(0x55bf8d41b680), SCALAR(0x55bf8d41b650), SCALAR(0x55bf8d41b668))
called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 441
TheWML::Frontends::Wml::Runner::_passes_loop(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458))
called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 726
TheWML::Frontends::Wml::Runner::_output_and_cleanup(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458))
called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 930
TheWML::Frontends::Wml::Runner::run_with_ARGV(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458),
HASH(0x55bf8d15a308)) called at /usr/bin/wml line 47 Use of uninitialized
value in string ne at /usr/share/wml/TheWML/Backends/IPP/Line.pm line 151,
<GEN13> line 2.
TheWML::Backends::IPP::Line::_process_line(TheWML::Backends::IPP::Line=HASH(0x55bf8d5824a0),
SCALAR(0x55bf8d70b420), 0, Path::Tiny=ARRAY(0x55bf8d582248)) called
at /usr/share/wml/TheWML/Backends/IPP/File.pm line 261
TheWML::Backends::IPP::File::_process_file(TheWML::Backends::IPP::File=HASH(0x55bf8d74e1f8),
Path::Tiny=ARRAY(0x55bf8d582248), "", HASH(0x55bf8d72b980)) called
at /usr/share/wml/TheWML/Backends/IPP/Main.pm line 100
TheWML::Backends::IPP::Main::_process_file(TheWML::Backends::IPP::Main=HASH(0x55bf8d47bbb8),
"include", TheWML::Backends::IPP::Delimit=HASH(0x55bf8d72b530),
Path::Tiny=ARRAY(0x55bf8d582248), "", 0, 1, HASH(0x55bf8d72b980)) called
at /usr/share/wml/TheWML/Backends/IPP/Main.pm line 236
TheWML::Backends::IPP::Main::main(TheWML::Backends::IPP::Main=HASH(0x55bf8d47bbb8))
called at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 177
TheWML::Frontends::Wml::PassesManager::__ANON__("-DWML_SRC_DIRNAME=",
"-DWML_SRC_FILENAME=STDIN", "-DWML_SRC_BASENAME=STDIN",
"-DWML_SRC_TIME=1546757192", "-DWML_SRC_CTIME=Sun Jan  6 07:46:32 2019",
"-DWML_SRC_ISOTIME=2019-01-06 07:46:32", "-DWML_SRC_GMT_CTIME=Sun Jan  6
06:46:32 2019", "-DWML_SRC_GMT_ISOTIME=2019-01-06 06:46:32", ...) called
at /usr/share/wml/TheWML/Frontends/Wml/PassObj.pm line 86
TheWML::Frontends::Wml::PassObj::dosource(TheWML::Frontends::Wml::PassObj=HASH(0x55bf8ceeb6a8),
TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8),
"/usr/share/wml/exec/wml_p1_ipp", " \"-DWML_SRC_DIRNAME=\"
\"-DWML_SRC_FILENAME=STDIN\" \"-DWML_SRC_B"..., CODE(0x55bf8d39d628)) called
at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 161
TheWML::Frontends::Wml::PassesManager::_generic_do(TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8),
HASH(0x55bf8d5673e0)) called
at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 180
TheWML::Frontends::Wml::PassesManager::pass1(TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8),
" \"-DWML_SRC_DIRNAME=\" \"-DWML_SRC_FILENAME=STDIN\" \"-DWML_SRC_B"...,
"/tmp/wml.input.23183.tmp", "/tmp/wml.23183.tmp1", "/tmp/wml.23183.tmp3")
called at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 72
TheWML::Frontends::Wml::PassesManager::__ANON__(TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8),
" \"-DWML_SRC_DIRNAME=\" \"-DWML_SRC_FILENAME=STDIN\" \"-DWML_SRC_B"...,
"/tmp/wml.input.23183.tmp", "/tmp/wml.23183.tmp1", "/tmp/wml.23183.tmp3")
called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 381
TheWML::Frontends::Wml::Runner::_run_pass(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458),
1, SCALAR(0x55bf8d41b680), SCALAR(0x55bf8d41b650), SCALAR(0x55bf8d41b668))
called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 441
TheWML::Frontends::Wml::Runner::_passes_loop(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458))
called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 726
TheWML::Frontends::Wml::Runner::_output_and_cleanup(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458))
called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 930
TheWML::Frontends::Wml::Runner::run_with_ARGV(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458),
HASH(0x55bf8d15a308)) called at /usr/bin/wml line 47 Use of uninitialized
value in string ne at /usr/share/wml/TheWML/Backends/IPP/Line.pm line 151,
<GEN23> line 1.
TheWML::Backends::IPP::Line::_process_line(TheWML::Backends::IPP::Line=HASH(0x55bf8d841fb8),
SCALAR(0x55bf8d70b420), 0, Path::Tiny=ARRAY(0x55bf8d582248)) called
at /usr/share/wml/TheWML/Backends/IPP/File.pm line 261
TheWML::Backends::IPP::File::_process_file(TheWML::Backends::IPP::File=HASH(0x55bf8d7b30c8),
Path::Tiny=ARRAY(0x55bf8d582248), "/tmp/wml.input.23183.tmp",
HASH(0x55bf8d72b980)) called at /usr/share/wml/TheWML/Backends/IPP/Main.pm
line 100
TheWML::Backends::IPP::Main::_process_file(TheWML::Backends::IPP::Main=HASH(0x55bf8d47bbb8),
"include", TheWML::Backends::IPP::Delimit=HASH(0x55bf8d74e138),
Path::Tiny=ARRAY(0x55bf8d582248), "/tmp/wml.input.23183.tmp", 0, 1,
HASH(0x55bf8d72b980)) called at /usr/share/wml/TheWML/Backends/IPP/Main.pm
line 277
TheWML::Backends::IPP::Main::_process_real_files(TheWML::Backends::IPP::Main=HASH(0x55bf8d47bbb8),
ARRAY(0x55bf8d72b1d0), "/tmp/wml.input.23183.tmp", HASH(0x55bf8d72b980))
called at /usr/share/wml/TheWML/Backends/IPP/Main.pm line 243
TheWML::Backends::IPP::Main::main(TheWML::Backends::IPP::Main=HASH(0x55bf8d47bbb8))
called at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 177
TheWML::Frontends::Wml::PassesManager::__ANON__("-DWML_SRC_DIRNAME=",
"-DWML_SRC_FILENAME=STDIN", "-DWML_SRC_BASENAME=STDIN",
"-DWML_SRC_TIME=1546757192", "-DWML_SRC_CTIME=Sun Jan  6 07:46:32 2019",
"-DWML_SRC_ISOTIME=2019-01-06 07:46:32", "-DWML_SRC_GMT_CTIME=Sun Jan  6
06:46:32 2019", "-DWML_SRC_GMT_ISOTIME=2019-01-06 06:46:32", ...) called
at /usr/share/wml/TheWML/Frontends/Wml/PassObj.pm line 86
TheWML::Frontends::Wml::PassObj::dosource(TheWML::Frontends::Wml::PassObj=HASH(0x55bf8ceeb6a8),
TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8),
"/usr/share/wml/exec/wml_p1_ipp", " \"-DWML_SRC_DIRNAME=\"
\"-DWML_SRC_FILENAME=STDIN\" \"-DWML_SRC_B"..., CODE(0x55bf8d39d628)) called
at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 161
TheWML::Frontends::Wml::PassesManager::_generic_do(TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8),
HASH(0x55bf8d5673e0)) called
at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 180
TheWML::Frontends::Wml::PassesManager::pass1(TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8),
" \"-DWML_SRC_DIRNAME=\" \"-DWML_SRC_FILENAME=STDIN\" \"-DWML_SRC_B"...,
"/tmp/wml.input.23183.tmp", "/tmp/wml.23183.tmp1", "/tmp/wml.23183.tmp3")
called at /usr/share/wml/TheWML/Frontends/Wml/PassesManager.pm line 72
TheWML::Frontends::Wml::PassesManager::__ANON__(TheWML::Frontends::Wml::PassesManager=HASH(0x55bf8cebbfc8),
" \"-DWML_SRC_DIRNAME=\" \"-DWML_SRC_FILENAME=STDIN\" \"-DWML_SRC_B"...,
"/tmp/wml.input.23183.tmp", "/tmp/wml.23183.tmp1", "/tmp/wml.23183.tmp3")
called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 381
TheWML::Frontends::Wml::Runner::_run_pass(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458),
1, SCALAR(0x55bf8d41b680), SCALAR(0x55bf8d41b650), SCALAR(0x55bf8d41b668))
called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 441
TheWML::Frontends::Wml::Runner::_passes_loop(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458))
called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 726
TheWML::Frontends::Wml::Runner::_output_and_cleanup(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458))
called at /usr/share/wml/TheWML/Frontends/Wml/Runner.pm line 930
TheWML::Frontends::Wml::Runner::run_with_ARGV(TheWML::Frontends::Wml::Runner=HASH(0x55bf8ce97458),
HASH(0x55bf8d15a308)) called at /usr/bin/wml line 47 $ ```

--

Shlomi Fish http://www.shlomifish.org/ http://www.shlomifish.org/humour/ways_to_do_it.html

Visual Basic - The only way to do it is to use a third party component. — http://www.shlomifish.org/humour/ways_to_do_it.html

Please reply to list if it's a mailing list post - http://shlom.in/reply .

shlomif commented 5 years ago

@xtaran : please test the latest commit.

xtaran commented 5 years ago

Thanks for the report. From my testing, it happens only when passing data from stdin:

Correct. That also seems to be the trigger, not the empty content: echo foo | wml emits these warnings, too. Will update the issue title.

please test the latest commit.

Previously I've tested /usr/bin/wml as installed by my Debian package. Testing this from git HEAD was a little bit more complicated. #25 shows what I did to get a working installation under wml_test/tests/installation which I used now for testing.

Unfortunately it still throws some of these warnings:

$ git show | head -5
commit 4118be8a2d11fcbfb23ad2a56220ae73b0400b51
Author: Shlomi Fish <shlomif@shlomifish.org>
Date:   Sun Jan 6 16:30:30 2019 +0200

    Avoid warnings when accepting input from stdin.
$ echo foo | wml_test/tests/installation/bin/wml
Use of uninitialized value in string ne at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Line.pm line 151, <GEN17> line 1.
        TheWML::Backends::IPP::Line::_process_line(TheWML::Backends::IPP::Line=HASH(0x55c54c497c70), SCALAR(0x55c54c60e668), 0, Path::Tiny=ARRAY(0x55c54c640418)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/File.pm line 261
        TheWML::Backends::IPP::File::_process_file(TheWML::Backends::IPP::File=HASH(0x55c54c640eb0), Path::Tiny=ARRAY(0x55c54c640418), "", HASH(0x55c54c62f608)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Main.pm line 100
        TheWML::Backends::IPP::Main::_process_file(TheWML::Backends::IPP::Main=HASH(0x55c54c367938), "include", TheWML::Backends::IPP::Delimit=HASH(0x55c54c61fd10), Path::Tiny=ARRAY(0x55c54c640418), "", 0, 1, HASH(0x55c54c62f608)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Main.pm line 236
        TheWML::Backends::IPP::Main::main(TheWML::Backends::IPP::Main=HASH(0x55c54c367938)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 177
        TheWML::Frontends::Wml::PassesManager::__ANON__("-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src", "-DWML_SRC_FILENAME=STDIN", "-DWML_SRC_BASENAME=STDIN", "-DWML_SRC_TIME=1546797468", "-DWML_SRC_CTIME=Sun Jan  6 18:57:48 2019", "-DWML_SRC_ISOTIME=2019-01-06 18:57:48", "-DWML_SRC_GMT_CTIME=Sun Jan  6 17:57:48 2019", "-DWML_SRC_GMT_ISOTIME=2019-01-06 17:57:48", ...) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassObj.pm line 86
        TheWML::Frontends::Wml::PassObj::dosource(TheWML::Frontends::Wml::PassObj=HASH(0x55c54be23988), TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), "/home/abe/wml/website-meta-language/src/wml_test/tests/instal"..., " \"-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src\" "..., CODE(0x55c54c27f9e0)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 161
        TheWML::Frontends::Wml::PassesManager::_generic_do(TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), HASH(0x55c54c36a9a8)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 180
        TheWML::Frontends::Wml::PassesManager::pass1(TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), " \"-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src\" "..., "/tmp/wml.input.17138.tmp", "/tmp/wml.17138.tmp1", "/tmp/wml.17138.tmp3") called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 72
        TheWML::Frontends::Wml::PassesManager::__ANON__(TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), " \"-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src\" "..., "/tmp/wml.input.17138.tmp", "/tmp/wml.17138.tmp1", "/tmp/wml.17138.tmp3") called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 379
        TheWML::Frontends::Wml::Runner::_run_pass(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458), 1, SCALAR(0x55c54c303b58), SCALAR(0x55c54c303b28), SCALAR(0x55c54c303b40)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 439
        TheWML::Frontends::Wml::Runner::_passes_loop(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 723
        TheWML::Frontends::Wml::Runner::_output_and_cleanup(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 927
        TheWML::Frontends::Wml::Runner::run_with_ARGV(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458), HASH(0x55c54bf0f018)) called at wml_test/tests/installation/bin/wml line 46
Use of uninitialized value in string ne at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Line.pm line 151, <GEN17> line 2.
        TheWML::Backends::IPP::Line::_process_line(TheWML::Backends::IPP::Line=HASH(0x55c54c640358), SCALAR(0x55c54c60e668), 0, Path::Tiny=ARRAY(0x55c54c640418)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/File.pm line 261
        TheWML::Backends::IPP::File::_process_file(TheWML::Backends::IPP::File=HASH(0x55c54c640eb0), Path::Tiny=ARRAY(0x55c54c640418), "", HASH(0x55c54c62f608)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Main.pm line 100
        TheWML::Backends::IPP::Main::_process_file(TheWML::Backends::IPP::Main=HASH(0x55c54c367938), "include", TheWML::Backends::IPP::Delimit=HASH(0x55c54c61fd10), Path::Tiny=ARRAY(0x55c54c640418), "", 0, 1, HASH(0x55c54c62f608)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Main.pm line 236
        TheWML::Backends::IPP::Main::main(TheWML::Backends::IPP::Main=HASH(0x55c54c367938)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 177
        TheWML::Frontends::Wml::PassesManager::__ANON__("-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src", "-DWML_SRC_FILENAME=STDIN", "-DWML_SRC_BASENAME=STDIN", "-DWML_SRC_TIME=1546797468", "-DWML_SRC_CTIME=Sun Jan  6 18:57:48 2019", "-DWML_SRC_ISOTIME=2019-01-06 18:57:48", "-DWML_SRC_GMT_CTIME=Sun Jan  6 17:57:48 2019", "-DWML_SRC_GMT_ISOTIME=2019-01-06 17:57:48", ...) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassObj.pm line 86
        TheWML::Frontends::Wml::PassObj::dosource(TheWML::Frontends::Wml::PassObj=HASH(0x55c54be23988), TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), "/home/abe/wml/website-meta-language/src/wml_test/tests/instal"..., " \"-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src\" "..., CODE(0x55c54c27f9e0)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 161
        TheWML::Frontends::Wml::PassesManager::_generic_do(TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), HASH(0x55c54c36a9a8)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 180
        TheWML::Frontends::Wml::PassesManager::pass1(TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), " \"-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src\" "..., "/tmp/wml.input.17138.tmp", "/tmp/wml.17138.tmp1", "/tmp/wml.17138.tmp3") called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 72
        TheWML::Frontends::Wml::PassesManager::__ANON__(TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), " \"-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src\" "..., "/tmp/wml.input.17138.tmp", "/tmp/wml.17138.tmp1", "/tmp/wml.17138.tmp3") called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 379
        TheWML::Frontends::Wml::Runner::_run_pass(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458), 1, SCALAR(0x55c54c303b58), SCALAR(0x55c54c303b28), SCALAR(0x55c54c303b40)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 439
        TheWML::Frontends::Wml::Runner::_passes_loop(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 723
        TheWML::Frontends::Wml::Runner::_output_and_cleanup(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 927
        TheWML::Frontends::Wml::Runner::run_with_ARGV(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458), HASH(0x55c54bf0f018)) called at wml_test/tests/installation/bin/wml line 46
Use of uninitialized value in string ne at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Line.pm line 151, <GEN27> line 1.
        TheWML::Backends::IPP::Line::_process_line(TheWML::Backends::IPP::Line=HASH(0x55c54c36a1b0), SCALAR(0x55c54c60e668), 0, Path::Tiny=ARRAY(0x55c54c640418)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/File.pm line 261
        TheWML::Backends::IPP::File::_process_file(TheWML::Backends::IPP::File=HASH(0x55c54c6405f8), Path::Tiny=ARRAY(0x55c54c640418), "/tmp/wml.input.17138.tmp", HASH(0x55c54c62f608)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Main.pm line 100
        TheWML::Backends::IPP::Main::_process_file(TheWML::Backends::IPP::Main=HASH(0x55c54c367938), "include", TheWML::Backends::IPP::Delimit=HASH(0x55c54c685580), Path::Tiny=ARRAY(0x55c54c640418), "/tmp/wml.input.17138.tmp", 0, 1, HASH(0x55c54c62f608)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Main.pm line 277
        TheWML::Backends::IPP::Main::_process_real_files(TheWML::Backends::IPP::Main=HASH(0x55c54c367938), ARRAY(0x55c54c61f9b0), "/tmp/wml.input.17138.tmp", HASH(0x55c54c62f608)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Main.pm line 243
        TheWML::Backends::IPP::Main::main(TheWML::Backends::IPP::Main=HASH(0x55c54c367938)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 177
        TheWML::Frontends::Wml::PassesManager::__ANON__("-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src", "-DWML_SRC_FILENAME=STDIN", "-DWML_SRC_BASENAME=STDIN", "-DWML_SRC_TIME=1546797468", "-DWML_SRC_CTIME=Sun Jan  6 18:57:48 2019", "-DWML_SRC_ISOTIME=2019-01-06 18:57:48", "-DWML_SRC_GMT_CTIME=Sun Jan  6 17:57:48 2019", "-DWML_SRC_GMT_ISOTIME=2019-01-06 17:57:48", ...) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassObj.pm line 86
        TheWML::Frontends::Wml::PassObj::dosource(TheWML::Frontends::Wml::PassObj=HASH(0x55c54be23988), TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), "/home/abe/wml/website-meta-language/src/wml_test/tests/instal"..., " \"-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src\" "..., CODE(0x55c54c27f9e0)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 161
        TheWML::Frontends::Wml::PassesManager::_generic_do(TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), HASH(0x55c54c36a9a8)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 180
        TheWML::Frontends::Wml::PassesManager::pass1(TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), " \"-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src\" "..., "/tmp/wml.input.17138.tmp", "/tmp/wml.17138.tmp1", "/tmp/wml.17138.tmp3") called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 72
        TheWML::Frontends::Wml::PassesManager::__ANON__(TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), " \"-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src\" "..., "/tmp/wml.input.17138.tmp", "/tmp/wml.17138.tmp1", "/tmp/wml.17138.tmp3") called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 379
        TheWML::Frontends::Wml::Runner::_run_pass(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458), 1, SCALAR(0x55c54c303b58), SCALAR(0x55c54c303b28), SCALAR(0x55c54c303b40)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 439
        TheWML::Frontends::Wml::Runner::_passes_loop(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 723
        TheWML::Frontends::Wml::Runner::_output_and_cleanup(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 927
        TheWML::Frontends::Wml::Runner::run_with_ARGV(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458), HASH(0x55c54bf0f018)) called at wml_test/tests/installation/bin/wml line 46
foo

Note that the foo is indeed passed to STDOUT and it's only warnings, not aborting.

Since I did a git clean -dxf before (see #25), I'm quite sure that this is no outdated installation.

shlomif commented 5 years ago

Thanks for the report. From my testing, it happens only when passing data from stdin:

Correct. That also seems to be the trigger, not the empty content: echo foo | wml emits these warnings, too. Will update the issue title.

please test the latest commit.

Previously I've tested /usr/bin/wml as installed by my Debian package. Testing this from git HEAD was a little bit more complicated. #25 shows what I did to get a working installation under wml_test/tests/installation which I used now for testing.

Unfortunately it still throws some of these warnings:

$ git show | head -5
commit 4118be8a2d11fcbfb23ad2a56220ae73b0400b51
Author: Shlomi Fish <shlomif@shlomifish.org>
Date:   Sun Jan 6 16:30:30 2019 +0200

    Avoid warnings when accepting input from stdin.
$ echo foo | wml_test/tests/installation/bin/wml
Use of uninitialized value in string ne at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Line.pm line 151, <GEN17> line 1.
        TheWML::Backends::IPP::Line::_process_line(TheWML::Backends::IPP::Line=HASH(0x55c54c497c70), SCALAR(0x55c54c60e668), 0, Path::Tiny=ARRAY(0x55c54c640418)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/File.pm line 261
        TheWML::Backends::IPP::File::_process_file(TheWML::Backends::IPP::File=HASH(0x55c54c640eb0), Path::Tiny=ARRAY(0x55c54c640418), "", HASH(0x55c54c62f608)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Main.pm line 100
        TheWML::Backends::IPP::Main::_process_file(TheWML::Backends::IPP::Main=HASH(0x55c54c367938), "include", TheWML::Backends::IPP::Delimit=HASH(0x55c54c61fd10), Path::Tiny=ARRAY(0x55c54c640418), "", 0, 1, HASH(0x55c54c62f608)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Main.pm line 236
        TheWML::Backends::IPP::Main::main(TheWML::Backends::IPP::Main=HASH(0x55c54c367938)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 177
        TheWML::Frontends::Wml::PassesManager::__ANON__("-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src", "-DWML_SRC_FILENAME=STDIN", "-DWML_SRC_BASENAME=STDIN", "-DWML_SRC_TIME=1546797468", "-DWML_SRC_CTIME=Sun Jan  6 18:57:48 2019", "-DWML_SRC_ISOTIME=2019-01-06 18:57:48", "-DWML_SRC_GMT_CTIME=Sun Jan  6 17:57:48 2019", "-DWML_SRC_GMT_ISOTIME=2019-01-06 17:57:48", ...) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassObj.pm line 86
        TheWML::Frontends::Wml::PassObj::dosource(TheWML::Frontends::Wml::PassObj=HASH(0x55c54be23988), TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), "/home/abe/wml/website-meta-language/src/wml_test/tests/instal"..., " \"-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src\" "..., CODE(0x55c54c27f9e0)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 161
        TheWML::Frontends::Wml::PassesManager::_generic_do(TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), HASH(0x55c54c36a9a8)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 180
        TheWML::Frontends::Wml::PassesManager::pass1(TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), " \"-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src\" "..., "/tmp/wml.input.17138.tmp", "/tmp/wml.17138.tmp1", "/tmp/wml.17138.tmp3") called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 72
        TheWML::Frontends::Wml::PassesManager::__ANON__(TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), " \"-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src\" "..., "/tmp/wml.input.17138.tmp", "/tmp/wml.17138.tmp1", "/tmp/wml.17138.tmp3") called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 379
        TheWML::Frontends::Wml::Runner::_run_pass(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458), 1, SCALAR(0x55c54c303b58), SCALAR(0x55c54c303b28), SCALAR(0x55c54c303b40)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 439
        TheWML::Frontends::Wml::Runner::_passes_loop(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 723
        TheWML::Frontends::Wml::Runner::_output_and_cleanup(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 927
        TheWML::Frontends::Wml::Runner::run_with_ARGV(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458), HASH(0x55c54bf0f018)) called at wml_test/tests/installation/bin/wml line 46
Use of uninitialized value in string ne at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Line.pm line 151, <GEN17> line 2.
        TheWML::Backends::IPP::Line::_process_line(TheWML::Backends::IPP::Line=HASH(0x55c54c640358), SCALAR(0x55c54c60e668), 0, Path::Tiny=ARRAY(0x55c54c640418)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/File.pm line 261
        TheWML::Backends::IPP::File::_process_file(TheWML::Backends::IPP::File=HASH(0x55c54c640eb0), Path::Tiny=ARRAY(0x55c54c640418), "", HASH(0x55c54c62f608)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Main.pm line 100
        TheWML::Backends::IPP::Main::_process_file(TheWML::Backends::IPP::Main=HASH(0x55c54c367938), "include", TheWML::Backends::IPP::Delimit=HASH(0x55c54c61fd10), Path::Tiny=ARRAY(0x55c54c640418), "", 0, 1, HASH(0x55c54c62f608)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Main.pm line 236
        TheWML::Backends::IPP::Main::main(TheWML::Backends::IPP::Main=HASH(0x55c54c367938)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 177
        TheWML::Frontends::Wml::PassesManager::__ANON__("-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src", "-DWML_SRC_FILENAME=STDIN", "-DWML_SRC_BASENAME=STDIN", "-DWML_SRC_TIME=1546797468", "-DWML_SRC_CTIME=Sun Jan  6 18:57:48 2019", "-DWML_SRC_ISOTIME=2019-01-06 18:57:48", "-DWML_SRC_GMT_CTIME=Sun Jan  6 17:57:48 2019", "-DWML_SRC_GMT_ISOTIME=2019-01-06 17:57:48", ...) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassObj.pm line 86
        TheWML::Frontends::Wml::PassObj::dosource(TheWML::Frontends::Wml::PassObj=HASH(0x55c54be23988), TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), "/home/abe/wml/website-meta-language/src/wml_test/tests/instal"..., " \"-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src\" "..., CODE(0x55c54c27f9e0)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 161
        TheWML::Frontends::Wml::PassesManager::_generic_do(TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), HASH(0x55c54c36a9a8)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 180
        TheWML::Frontends::Wml::PassesManager::pass1(TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), " \"-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src\" "..., "/tmp/wml.input.17138.tmp", "/tmp/wml.17138.tmp1", "/tmp/wml.17138.tmp3") called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 72
        TheWML::Frontends::Wml::PassesManager::__ANON__(TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), " \"-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src\" "..., "/tmp/wml.input.17138.tmp", "/tmp/wml.17138.tmp1", "/tmp/wml.17138.tmp3") called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 379
        TheWML::Frontends::Wml::Runner::_run_pass(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458), 1, SCALAR(0x55c54c303b58), SCALAR(0x55c54c303b28), SCALAR(0x55c54c303b40)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 439
        TheWML::Frontends::Wml::Runner::_passes_loop(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 723
        TheWML::Frontends::Wml::Runner::_output_and_cleanup(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 927
        TheWML::Frontends::Wml::Runner::run_with_ARGV(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458), HASH(0x55c54bf0f018)) called at wml_test/tests/installation/bin/wml line 46
Use of uninitialized value in string ne at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Line.pm line 151, <GEN27> line 1.
        TheWML::Backends::IPP::Line::_process_line(TheWML::Backends::IPP::Line=HASH(0x55c54c36a1b0), SCALAR(0x55c54c60e668), 0, Path::Tiny=ARRAY(0x55c54c640418)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/File.pm line 261
        TheWML::Backends::IPP::File::_process_file(TheWML::Backends::IPP::File=HASH(0x55c54c6405f8), Path::Tiny=ARRAY(0x55c54c640418), "/tmp/wml.input.17138.tmp", HASH(0x55c54c62f608)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Main.pm line 100
        TheWML::Backends::IPP::Main::_process_file(TheWML::Backends::IPP::Main=HASH(0x55c54c367938), "include", TheWML::Backends::IPP::Delimit=HASH(0x55c54c685580), Path::Tiny=ARRAY(0x55c54c640418), "/tmp/wml.input.17138.tmp", 0, 1, HASH(0x55c54c62f608)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Main.pm line 277
        TheWML::Backends::IPP::Main::_process_real_files(TheWML::Backends::IPP::Main=HASH(0x55c54c367938), ARRAY(0x55c54c61f9b0), "/tmp/wml.input.17138.tmp", HASH(0x55c54c62f608)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Backends/IPP/Main.pm line 243
        TheWML::Backends::IPP::Main::main(TheWML::Backends::IPP::Main=HASH(0x55c54c367938)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 177
        TheWML::Frontends::Wml::PassesManager::__ANON__("-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src", "-DWML_SRC_FILENAME=STDIN", "-DWML_SRC_BASENAME=STDIN", "-DWML_SRC_TIME=1546797468", "-DWML_SRC_CTIME=Sun Jan  6 18:57:48 2019", "-DWML_SRC_ISOTIME=2019-01-06 18:57:48", "-DWML_SRC_GMT_CTIME=Sun Jan  6 17:57:48 2019", "-DWML_SRC_GMT_ISOTIME=2019-01-06 17:57:48", ...) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassObj.pm line 86
        TheWML::Frontends::Wml::PassObj::dosource(TheWML::Frontends::Wml::PassObj=HASH(0x55c54be23988), TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), "/home/abe/wml/website-meta-language/src/wml_test/tests/instal"..., " \"-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src\" "..., CODE(0x55c54c27f9e0)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 161
        TheWML::Frontends::Wml::PassesManager::_generic_do(TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), HASH(0x55c54c36a9a8)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 180
        TheWML::Frontends::Wml::PassesManager::pass1(TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), " \"-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src\" "..., "/tmp/wml.input.17138.tmp", "/tmp/wml.17138.tmp1", "/tmp/wml.17138.tmp3") called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/PassesManager.pm line 72
        TheWML::Frontends::Wml::PassesManager::__ANON__(TheWML::Frontends::Wml::PassesManager=HASH(0x55c54bd97fe0), " \"-DWML_SRC_DIRNAME=/home/abe/wml/website-meta-language/src\" "..., "/tmp/wml.input.17138.tmp", "/tmp/wml.17138.tmp1", "/tmp/wml.17138.tmp3") called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 379
        TheWML::Frontends::Wml::Runner::_run_pass(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458), 1, SCALAR(0x55c54c303b58), SCALAR(0x55c54c303b28), SCALAR(0x55c54c303b40)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 439
        TheWML::Frontends::Wml::Runner::_passes_loop(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 723
        TheWML::Frontends::Wml::Runner::_output_and_cleanup(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458)) called at /home/abe/wml/website-meta-language/src/wml_test/tests/installation/lib/wml/TheWML/Frontends/Wml/Runner.pm line 927
        TheWML::Frontends::Wml::Runner::run_with_ARGV(TheWML::Frontends::Wml::Runner=HASH(0x55c54bd72458), HASH(0x55c54bf0f018)) called at wml_test/tests/installation/bin/wml line 46
foo

Note that the foo is indeed passed to STDOUT and it's only warnings, not aborting.

Since I did a git clean -dxf before (see #25), I'm quite sure that this is no outdated installation.

@xtaran : please try again .

xtaran commented 5 years ago

Works for me without warnings now, thanks!

shlomif commented 5 years ago

Works for me without warnings now, thanks!

closing then. Thanks!