From: Jeff H. <Je...@Je...> - 2023-02-06 19:26:52
|
<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body> <h1 class="gh-header-title mb-2 lh-condensed f1 mr-0 flex-auto wb-break-word"> <bdi class="js-issue-title markdown-title">NetRexx Issue: XLATE bug with WordSeparator input range</bdi> <span class="f1-light color-fg-muted">#32</span> </h1> <p></p> <blockquote> <p>PS C:\Users\Jeff\Documents\PipeTests> pipc m.njp<br> pipe (m ) literal A<del>B</del>C<del>D</del>E<del>F</del>G | xlate ws ~ w3 A-E 1-5 | cons ?<br> PS C:\Users\Jeff\Documents\PipeTests> java m<br> netrexx.lang.BadArgumentException: Bad hexadecimal ~A<br> at netrexx.lang.RexxUtil.x2c(RexxUtil.java:252)<br> at netrexx.lang.Rexx.x2c(Rexx.java:1570)<br> at org.netrexx.njpipes.stages.xlate.processRanges(xlate.java:500)<br> at org.netrexx.njpipes.stages.xlate.run(xlate.java:323)<br> at org.netrexx.njpipes.pipes.ThreadPool.run(ThreadPool.java:76)<br> at java.lang.Thread.run(Unknown Source)<br> Exiting due to uncaught Exception Bad hexadecimal ~A</p> </blockquote> <p>On investigation, the problem has nothing to do with hexadecimals, bad or otherwise.</p> <p>It is actually a <b>Syntax Error</b>. The <b>XLATE</b> stage does not and never was supposed to support a <b>ws</b> option.</p> <p>I have fixed the stage so it reports this, and others, as a Syntax Error:<br> </p> <blockquote> <div style="display:inline-block;white-space:pre;background-color:#012456;font-family:'Cascadia Code',monospace;font-size:10pt;padding:4px;"><span style="color:#D3D7CF;background-color:#012456;">PS C:\Users\Jeff\Documents\nr\netrexx-code\examples\pipes> </span><span style="color:#FCE94F;background-color:#012456;">pipe </span><span style="color:#06989A;background-color:#012456;">"literal a#b#c#A #B#C| xlate ws # w3 c @ | cons"</span><span style="color:#D3D7CF;background-color:#012456;"> RC=11 xlate_2 Error -- xlate_2 syntax error rc=11</span></div> </blockquote> <p>I also flagged the CMS Pipeline options not yet in NetRexx Pipelines:<br> </p> <blockquote> <div style="display:inline-block;white-space:pre;background-color:#012456;font-family:'Cascadia Code',monospace;font-size:10pt;padding:4px;"><span style="color:#D3D7CF;background-color:#012456;">PS C:\Users\Jeff\Documents\nr\netrexx-code\examples\pipes> </span><span style="color:#FCE94F;background-color:#012456;">pipe </span><span style="color:#06989A;background-color:#012456;">"literal a#b#c#A</span> <span style="color:#06989A;background-color:#012456;">#B#C| xlate input | cons"</span> <span style="color:#06989A;background-color:#012456;"></span><span style="color:#D3D7CF;background-color:#012456;">xlate_2 Error -- xlate_2 INput option is not yet supported. rc=11</span></div> </blockquote> <p>This update has been pushed and should be in the next release.</p> <p>I don't know how to work the GitHub Issue system, so for now the issue stays open.</p> <p>Jeff<br> </p> <p><br> </p> <p><br> </p> <p><br> </p> </body> </html> |