IBM i source code line change dates set to zeros #1748
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
-
We already use free-format RPG and fully-free **FREE. IBM's RDi tool works for both and maintains the line change date. I agree that the change date being changed for spacing changes is frustrating. I am hoping that at some point in the future, AI can be added to determine when the line change date s.b. changed based on the statements functionality. With that added intelligence, "eval psrefn = alprvr" can become "psrefn = alprvr;" without changing the date. Till then, we will have to settle for paying for RDi to get functionality we need over using the no cost VS Code for IBM i and losing out on the line change dates. One option would be for someone to create an RPGLE editor plug-on for VS for Code that supports the meta-data elements present in an IBM i source file. |
Beta Was this translation helpful? Give feedback.
-
When editing source code on an IBM i, upon saving the code the change date on every line of code changes to zeros. This renders the editor un-useable out-of-the-box.
Even if there is a configuration option to change date behavior to match previous IBM i editors, the default behavior of setting all dates to zeros will impede the acceptance of VS Code for IBM i.
I changed a couple of lines in a source member that is 30,731 lines. Upon saving the member, the change date of every line was changed to all zeros. I did not notice it until promoting the changed version up to our QUA environment. This was repeated for two other source members before it was noticed. It is very important to our source code management efforts to have the correct dates on the source code. This is the default behavior in IBM's SEU and RDi editors. It took a days worth of effort to recover the three sources.
I have since found the documentation for turning on the use of source code dates in the VS Code for IBM i. It looks like a decision was made for VS Code for IBM i to have the default behavior of not using the metadata elements of source line date and sequence. The documentation characterizes using the additional metadata element of 'date' as dumb. I disagree with that assessment. There are some advantages for using open source utilities for source code management that are common on other systems. None of those tools will make use of the source code metadata that are ubiquitous to the use of IBM i source code files. That does not suit our needs. Changing the QCCSID system value should not be a prerequisite for using the source line change date; it is not required for other IBM i source code editors that do use the date.
All of this leads me to believe you will not be making a change to have source line date support as the default behavior.
I applaud the fine work that you and others have made to bring a new source code editing tool to the IBM i landscape. There will certainly be those who are ready to abandon source line date and sequence number. They will gladly make use of this extension to VS Code. Keep up the good work.
Bye.
Stephen West
Stillwater Insurance Group
Active extensions
Code for IBM i Walkthroughs (vscode-ibmi-walkthroughs): 0.4.0 Db2 for IBM i (vscode-db2i): 0.6.0 Emmet (emmet): 1.0.0 Error Lens (errorlens): 3.15.0 Git (git): 1.0.0 Git Base (git-base): 1.0.0 GitHub (github): 0.0.1 IBM i Notebooks (vscode-ibmi-notebooks): 0.0.6 JSON Language Features (json-language-features): 1.0.0 Merge Conflict (merge-conflict): 1.0.0 Node Debug Auto-attach (debug-auto-launch): 1.0.0 TODO Highlight (vscode-todo-highlight): 1.0.5 TypeScript and JavaScript Language Features (typescript-language-features): 1.0.0 WSL: Recommender (remote-wsl-recommender): 0.0.19 ```Remote system
Beta Was this translation helpful? Give feedback.
All reactions