-
Notifications
You must be signed in to change notification settings - Fork 93
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
Fix/bad_lines_from_member #2245
Conversation
Signed-off-by: worksofliam <[email protected]>
Signed-off-by: worksofliam <[email protected]>
Signed-off-by: worksofliam <[email protected]>
@worksofliam @julesyan How did you recreate this error? I'm not able to recreate it with the master branch without this change... And there is no test case described... Having to create test cases makes it easier to verify the code change - I thought it was tedious in the beginning but have come to appreciate it while testing other peoples code... and my own code! 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@worksofliam See my comment above... 😉
@chrjorgensen i ran the steps in the test case "Ensure source lines are correct" on the master branch and on this branch. I assumed the test case itself was correct. |
@chrjorgensen Here is the test case in this PR: https://github.com/codefori/vscode-ibmi/pull/2245/files#diff-bdc40b7bbc93e3369a9b963b709ed6bc8d4d9d70db7362e1f14d6edc78c07cd6R281 When recreating, make sure you have source dates enabled. |
@julesyan @worksofliam Okay, I didn't look at the code, just saw the section "How to test this PR" above... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good; a bit empirical but we have no choice I guess 😅
See my comment; if it's not a concern, merge away!
Changes
Solves issue where source member lines that were just numerics, but had leading zeros, were not being returned correctly because the CSV was casting and interpreting those lines are numbers, and therefore removing the leading zeros/characters from the line.
How to test this PR
Examples:
Checklist
console.log
s I added