You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a line contains the x'00' hexadecimal character (null), it will result in line truncation in VSCode.
To Reproduce
Steps to reproduce the behavior:
Replace a space in the middle of any line of code with x'00' (this could be done with the RDi Hex Edit Line action)
Save the source member
Open the source member in VSCode
All contents of the line following that hexadecimal character will be truncated
Expected behavior
RDi and SEU interprets these characters as spaces. It would be nice if VSCode did the same, as I've found a number of source members on my company's development system that contain these characters (not sure how they got there, though).
Screenshots
RDi Hex Editor with x'00' hexadecimal:
VSCode's interpretation of the line:
Environment (please complete the following information):
Extension version: v2.8.0
IBM i OS version: 7.4
The text was updated successfully, but these errors were encountered:
I don't think we have any control over how the null character [specifically] gets rendered in VS Code. We've had more luck with source colors from SEU, but null is an entirely new beast.
I think if we were to support this, we would actually replace the null character with a space and then the nulls would be gone from any future saves. I believe @chrjorgensen would agree with me on this.
I believe if we support this kind of behavior, which is not normal, then it would go against what we are striving for (to be the best modern editor) and would, in-theory, continue to allow this kind of practice in the future. I think the entire core team would agree with me here.
If we do one of these, then it will be option 2. Let me get back to you!
@AndrewIBMi I would suggest you use SQL to fix any source members having lines with x'00' in them - use the TRANSLATE function to replace the null with a space.
Better fix the problem at the origin than later in the chain...
Describe the bug
When a line contains the x'00' hexadecimal character (null), it will result in line truncation in VSCode.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
RDi and SEU interprets these characters as spaces. It would be nice if VSCode did the same, as I've found a number of source members on my company's development system that contain these characters (not sure how they got there, though).
Screenshots
RDi Hex Editor with x'00' hexadecimal:
VSCode's interpretation of the line:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: