1. Gary Eden
  2. PowerBuilder
  3. Friday, 6 November 2020 11:32 AM UTC

Hi,

 

Just thought I would let people know of a little problem we came across in using GIT and OrcaScr190, took a while to figure out but pretty obvious once the problem was identified.

We have a large application of over 100 libraries and we use GIT as source control, just migrated from visual source safe. As part of this process we introduced an automated build process which would involve getting the latest version of the code and then issuing a command to get OrcaScr190 to rebuild the pbl's. At this point we realised that older versions of our objects were getting introduced in some libraries and the only way to resolve was to open PB2019 and do a refresh on the workspace, GIT was smart enough to realise what was in the pbl did not match the version in ws_objects directory. Checking library lists and pbl's we struggled to identify where the older version was getting introduced. Eventually chased this back to a rogue pbl existing in the ws_objects folder, containing the older versions.

OrcaScr190 seems to flatten the ws_objects directory and create the pbg files for all pbl folders that it contains, which it creates the pbl's from. Our problem was that the rogue pbl which was not in the target file was also extracted to root folder causing the newer objects to be overwritten and then when it starts taking the objects and placing in the pbl's it only has the old version.

Make sure that the ws_objects directory only contains the pbls that you expect to be there. hopefully this will provide useful for someone. It also highlights that if you have objects in different libraries that share the same name then OrcaScr190 will not be the best option to rebuild your pbl's, unless you introduce the manual refresh within PB2019 to finish off, kind of starts to move away from automation though.

 

Thanks

Gary

 

Accepted Answer
Julie Jiang @Appeon Accepted Answer Pending Moderation
  1. Monday, 9 November 2020 07:56 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Gary, 

The two issues you described are all related with OcraScr190: (1) It still compiles rogue PBLs even if the PBLs do not exist in the target; (2) It does not differentiate objects with the same object names but in different PBLs.

Our team has plan to optimize OrcaSrc but this cannot be completed in 2019 R3 version. For the time being, the engineering team suggests that when you add PBLs to source control, make sure that you only select the ones that shall be included in the target file.

Best regards, Julie

 

Comment
There are no comments made yet.
Gary Eden Accepted Answer Pending Moderation
  1. Monday, 9 November 2020 08:02 AM UTC
  2. PowerBuilder
  3. # 1

Hi Julie,

 

Thanks for the update, I was just wanting to let people know as it took us quite a while to identify the issue. It is also something that can catch people out quite easily if they aren't aware of how orcascr does the processing and creation of the pbl's and how similar named windows will cause an issue.

 

Thanks

Gary

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.