1. Arcady Abramov
  2. PowerBuilder
  3. Sunday, 8 December 2019 05:56 AM UTC

Hello, all

We have the following issue in one of my application targets.

We use automated builds from a build machine using ORCA script and powerjen

Orca script does "get latest" from the source control and refreshes the target. Then Powerjen command line creates PBD and EXE with /E and /P parameters.

In one of my applications there is a need to perform a full rebuild after "scc refresh target full" command. Unless full rebuild is performed after the command is complete there is no way to run the application, even from PB IDE.

What could be the reason for it and how can it be fixed? Currently we need to run PowerJen with /A parameter and it multiplies the build time.

This is the ORCA file script:

//------------------------------------------------------

start session
set debug true
scc set connect property provider "WizSource"
scc set connect property userid "Builder"
scc set connect property password "****"
scc set connect property project "Event_dev"
scc set connect property localprojpath "C:\pb_sourcecontrol\PB2017\PBMainApp\Events\Events_dev"
scc set connect property deletetempfiles false
scc set connect property logfile "events_dev_sc.log"
scc connect
scc set target "events1.pbt" "refresh_all"
scc refresh target full
end session

//------------------------------------------------------

 

Thank you 

Michael Kramer Accepted Answer Pending Moderation
  1. Tuesday, 10 December 2019 13:06 PM UTC
  2. PowerBuilder
  3. # 1

Hi Arcady, to me this sounds like there is some circular dependency among your source code objects that the Get Latest sequence can't resolve. hence, need for one more rebuild.

In ORCAScript there is a 3PASS option for REFRESH TARGET. What happens if you  try to use that option?

HTH /Michael

Comment
  1. Arcady Abramov
  2. Tuesday, 10 December 2019 13:16 PM UTC
Yes, I tried that already.

There were less errors, but not all were cleared.

Why is REFRESH TARGET FULL is not the same as the full rebuild in the IDE ?

  1. Helpful
  1. Michael Kramer
  2. Tuesday, 10 December 2019 15:22 PM UTC
I can't tell you, sorry. My assumption was that they are equivalent. I can't tell what specifically is the culprit in your case.
  1. Helpful
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Monday, 9 December 2019 15:32 PM UTC
  2. PowerBuilder
  3. # 2

 

try 3pass

scc refresh target "3pass" 

 

 

Comment
  1. mike S
  2. Tuesday, 10 December 2019 15:56 PM UTC
I build the same way, delete pbls recreate them then load everything in.



maybe try migrate? maybe if you have different PB versions of objects migrate will work better? and maybe try migrate then run it again with 3pass



using powergen is not really any different than using orca script. If you want to ensure you don't have anything 'extra' in your pbls, then work it the same way. delete plbs, recreate them, then bootstrap in your source. you can do all that in orca script or (i think) in powergen. Then when that is done, do the final build using powergen.



  1. Helpful
  1. Phil Wallingford
  2. Thursday, 2 January 2020 16:37 PM UTC
Using PowerGen is not the same as using orcascript. Anecdotally we have many customers who cannot build an application with orcascript, but who can using PowerGen. There are a lot of subtleties in determining the order of regeneration of objects.

Phil (E. Crane Computing)
  1. Helpful
  1. mike S
  2. Thursday, 2 January 2020 16:52 PM UTC
the process is the same for the developer: delete pbl, create empty pbl, bootstrap source and then build pbd/exe. I do not mean that powergen builds the exe/pbd the same as orcascript does. Powergen is a better build platform, and it is also easier to use.
  1. Helpful
There are no comments made yet.
Arcady Abramov Accepted Answer Pending Moderation
  1. Sunday, 8 December 2019 18:41 PM UTC
  2. PowerBuilder
  3. # 3

This is PB 2017 R3

WIZ SOURCE as source control

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Sunday, 8 December 2019 17:54 PM UTC
  2. PowerBuilder
  3. # 4

Hi Arcady;

  FWIW: It might help for PB developers to respond to your question, if you included all the various software versions & build numbers that you are using.

Regards... Chris

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.