We have recently switched to PB2019 and making use of Git. The built-in Git support in PB2019 is fairly weak, so we still rely heavily on the git command line and TortoiseGit to bridge the gap. The problem is when external tools make changes to the underlying source files, the IDE is unaware of them and doesn't bring the source back into the PBLs. A workaround is to right click at the top of the workspace tree and select refresh. This is fairly slow and it's an extra step that is easily forgotten. My workaround was to create a tool that starts a file system watcher before launching git or TortoiseGit. When you close TortoiseGit it then generates a list of all files that get changed and then calls pborca190.dll to import the changed objects back into the PBLs. This is much faster than going the Refresh route.
This worked well up until R2. Now my utility is throwing this error but ONLY on DataWindows:
The ordinal 345 could not be located in the dynamic link library C:\Program Files (x86)\Appeon\PowerBuilder\pbSourceControl190.dll.
Even though it throws this error the source is definitely making it back into the PBL. You have to click OK on each DataWindow one by one. A workaround is to rename pbSourceControl190.dll before doing my ORCA calls and then rename it back when done. I don't like this hacky solution though.
I see PowerGen is also experiencing the same problem so at least I am not alone.
https://ecrane.com/support/viewtopic.php?id=306