1. Greg Duvall
  2. PowerBuilder
  3. Friday, 20 December 2019 21:10 PM UTC

We currently are using TFS for source control. When I deploy the project no sr* files are being created. I verified that the delete pb generated objects is unchecked in the source control property. This just started happening yesterday and I cannot figure out what the problem is. When I try to add the PB object to source control I get an error: ".pbg changed undo changes and lose changes" and the popup box has "Yes/No" buttons. TIA.

Accepted Answer
Greg Duvall Accepted Answer Pending Moderation
  1. Monday, 23 December 2019 15:43 PM UTC
  2. PowerBuilder
  3. # Permalink

I was able to resolve the problem - kind of. I tried doing as Michael and Miguel suggested but still had problems creating the sr* and pbg files. The problem seems to exist somewhere between PowerBuilder and TFS. I changed the directory name to store the source code in TFS and then everything worked fine, sr* and pbg files were all generated correctly. Not sure where the problem exists with the original folder name.

Comment
There are no comments made yet.
Michael Kramer Accepted Answer Pending Moderation
  1. Friday, 20 December 2019 22:15 PM UTC
  2. PowerBuilder
  3. # 1

The project deploy process works solely on the source inside your .PBL files. Your .SR* files are generated when you check-in/commit to source control. A .PBG file lists the objects of a .PBL file that have been checked-in.

EX: MyApp.PBL contains d_data, w_main, and u_tabpage (all checked-in) and w_special (not checked-in yet). In this case you should a MyApp.PBG file listing d_data.srd, w_main.srw, and u_tabpage.sru.

When you add the new window to source control but something fails - that's where .PBG most often go out-of-sync.

EX: Add new window *SHOULD* add w_special.srw and add a line for that file in MyApp.PBG. When it fails, you have 4 objects in MyApp.PBL under source control but your MyApp.PBG insists there are only 3 files. From now on you will see problems with source control until you get MyApp.PBG back in sync.

Two ways to get .PBG files sync'ed once more:

  1. Edit the .PBG file
    Add lines for objects check-in but missing in the .PBG file
    Remove lines for objects removed from source control but still listed in the .PBG file
    Check-in this edited file using TFS directly (not using PB IDE for that check-in)
  2. Delete the .PBG file
    PB IDE will generate new .PBG file.

Tools like PBGEN can create up-to-date .PBG files. Or you could write your own .PBG generator.

HTH /Michael

 

Comment
  1. Miguel Leeuwe
  2. Saturday, 21 December 2019 00:42 AM UTC
I agree with Michael:

- close powerbuilder

- delete the pbg files

- open up powerbuilder



Or another way might be to disconnect you workspace in the pb ide from any source control. close powerbuilder. open again and re-assign the previous source control. Close pb again. Open pb again and then you might be asked something like "you've changed source control.... do you want to remove pbg files ..." or similar: say "Yes".

regards,

  1. Helpful
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.