Open johnottogood opened 1 year ago
I realized that I get garbled output when there is an error in the configuration file being validated.
Looking at just the top of a test yaml file, this would validated OK
zowe:
setup:
dataset:
prefix: ZOWE200
proclib: SYS1.PROCLIB
parmlib: ZOWE200.CUST.PARMLIB
However if I add two leading spaces to "proclib: SY1.PROCLIB', zwe config validate generates the warning with garbled output.
zowe:
setup:
dataset:
prefix: ZOWE200
proclib: SYS1.PROCLIB
parmlib: ZOWE200.CUST.PARMLIB
@jordanfilteau1995 - I think you are working on a fix for this, right?
Please see: https://github.com/zowe/zowe-common-c/pull/393. Hoping to merge soon. Reviewing with @ifakhrutdinov
@johnottogood PR for this issue has been merged into staging. You will instead see something like this:
` ZWEL0318E - Couldn't parse file '/u/ts5873/git/sand/zss/deps/zowe-common-c/bin/test.yaml': while parsing a flow node at line 4, column 1, did not find expected node content at line 4, column 1.
ZWEL0319E - Failed to load configuration, element may be bad, or less likely a bad merge. `
Trying understand what the indicated new error message it telling me. Are empty lines stripped out of the parsed file, and which point its indicating there was a problem parsing line "prefix: ZOWE200" ?
@johnottogood Do you have a build that is believed to fix the problem? Can you add what the output is now for comparison purposes?
No. I need to leave the current system at V2.9 as we will be using it it for hands-on labs.
FYI I saw this issue with 2.10 as well.
Describe the bug When I run zwe config validate, I (usually) get mixed text and unprintable characters.
To Reproduce When using Zowe zwe, I usually source a node environment file as well as zowe environment file, show below
Expected behavior Expect an indication of offending configuration item(s) or an indication that the configuration is valid.
Screenshots Running zwe config validate produces the issue:
Desktop (please complete the following information): Software: z/OS 2.4 SHELL is /bin/sh (have also tried bash 4.2.53) Node v16.13.2 Zowe 2.9 and Zowe 2.10
Additional context To see how bash behaves, I've started bash, sourced the node and profile env files, and then started a 2nd bash (Rocket folks suggest this is required to get proper autocvt support in bash) and run zwe config validate. Same issue
Trying to verify proper node behavior. Under a clean ssh session using plain /bin/sh, I've also setup a simple node express "Hello world example" in ebcdic. I copied it to an ascii file (tagging the file as ISO8859-1 (text)
I can run node against the two version of the test application and both the EBCDIC and ASCII versions work, so it (seems) that node is handling code page tagging correctly.
I've only been able to get zwe config validate to work once for me. When it did, I also captured the output of "set" and "env" Their contents is the same as the output of "set" and "env" when the problem occurs.
Don't know what the issue could be.