Export Code
complete
r
rbeall
I'd like to be able to export code out of a project.
All I need is the actual method text and some way to track where it came from (component or library).
This could be done a few different ways, either via some serialization of each exported method which could be looked up in an accompanying markdown document.
Or just give me some hierarchical comment before each method showing where the code comes from (windowname>component>component>method , etc.).
Log In
P
Paul Griffith
complete
Project scripts are on disk as plain text in 8.0, and we're planning to have more resource types (webdev, etc) put code directly on disk in text files as well.
s
slaskos@canberra.com
A system like what VBA has in MS Office products would be a simple way to partially solve this issue of lack of source control.
It has an export/import API for all the code and forms. It exports each VBA code module and form to separate ASCII files that you can then check into Source Code Control system. That allows you to version them and even do diff's on code to see what changed. It's not integrated into VBA, but it was super useful in managing large VBA projects. if ignition had this, it could be something to get us some level of control over all the code embedded in your binary project files.
We know it's hard to build a full fledged interface, but if you could just export code to files and generate ASCII files that represent the forms, it at least gives us some hope of tracking down problems. If a bug is introduced, we could look at history in source control to see what code & forms were changed & who changed it. Right now we have nothing which is frustrating and hard to really provide well built & validated mission critical industrial systems. You guys claim this is a tool for mission critical systems, but yet we have no control of source.
Having a way to automate the export of all modules to some directory is also key so we could do it on a regular basis. Even if we can't import code back into Ignition, having an export could be very, very useful!