1. William Marsh
  2. PowerBuilder
  3. Thursday, 27 February 2020 21:40 PM UTC

Last year I made a change in a Powerbuilder 2017 R3 program.  Specifically these were to change the name of a function call to update_last_login_dt to update_last_login_dt2 in the w_login window.  I pushed the changes to the central GIT repository, built it and delivered to the customer.  

 

Today I pulled down the Powerbuilder source to a new local GIT repository directory on my workstation by performing File->Connect to workspace".  I opened it in Powerbuilder and noticed the change was not there.  I inspected the local GIT repository and the central GIT repository and found the following to be true:

Central GIT repository:

- ws_objects folder - the change was present in the gui_common.pbl.src/w_login.srw file.

- pbl files - no comments of the said change

Local GIT repository that I created via "connect to workspace"

- ws_objects folder - the change is present in the gui_common.pbl.src/w_login.srw file

- pbl files - change not present.  I dumped the gui_common.pbl using pb_dumper.exe utility and inspected the w_login.srw file that it produced.  I did not see the change.

- viewing in Powerbuilder 2017 R3 - the change is not present in the power script of the w_login window event ue_wrapup.

 

Question: with all that said how do I get the changes embodied in the ws_objects into the .pbl files?

 

 

Accepted Answer
Michael Kramer Accepted Answer Pending Moderation
  1. Friday, 28 February 2020 00:15 AM UTC
  2. PowerBuilder
  3. # Permalink

Did you perform a refresh after connect to workspace?

PBL files are not kept in sync with the actual source files within ws_objects folder hierarchy. You need to Refresh to get the current source imported into your local PBL files.

HTH /Michael

Comment
  1. William Marsh
  2. Friday, 28 February 2020 15:29 PM UTC
The refresh worked.



I looked at the .pbl and ws_objects before and after. The ws_objects updated the .pbl. The two objects I was expecting got imported and compiled. The changes appeared in the IDE as expected. Problem solved.



Thanks Michael.

Will
  1. Helpful
  1. Michael Kramer
  2. Friday, 28 February 2020 19:46 PM UTC
You're welcome!

I knew because I was pulling my own hair trying to figure out why my source files and PBL files were out of sync when git integration was brand new. /M
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from 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.