Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code For i suppresses leading zeros from programs that use compile-time arrays of the CTDATA type #2569

Open
Balrocj opened this issue Mar 8, 2025 · 0 comments
Assignees
Labels
needs-investigation The team should look into this

Comments

@Balrocj
Copy link

Balrocj commented Mar 8, 2025

The error I want to report is related to programs where compile-time arrays of the CTDATA type are used at the end of the program. The error occurs when these arrays have numeric data. Code For i automatically suppresses leading zeros and updates the list of elements in these arrays. This does not happen with all sources; in some cases it respects leading zeros but in others it does not. It seems to me that the error only happens when there are spaces before the numeric value.

I attach an example.

Original Code
Image

Code after opening in Visual Code

Image

To Reproduce
Steps to reproduce the behavior:

  1. Open a source that has CTDATA type arrays at the end of the program and that has numeric values.
  2. Scroll down to the end of the program
  3. In some cases Visual automatically suppresses leading zeros and updates the list of elements in these arrays
  4. It seems to me that the error only happens when there are spaces before the numeric value.
<style> </style>
Content Version
Code For IBM i 2.15.3
Visal Studio Code 1.98.0
Operating System win32_x64
@worksofliam worksofliam self-assigned this Mar 13, 2025
@worksofliam worksofliam added the needs-investigation The team should look into this label Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-investigation The team should look into this
Projects
None yet
Development

No branches or pull requests

2 participants