Hi,
yesterday we installed AgentSVN to use it in Powerbuilder.net 12.5. The plugin itself works fine. Shows the correct file Status etc.
Yet there is one thing we stumbled over. It can be reproduced the following way :
1 ) User A changes a file and checks it in
2 ) User B does a "Get latest Version" on said file.
3 ) AgentSVN gets the correct version of the file. You can see the actual changes when using Notepad or something else to look at it.
The problem is : Powerbuilder.net itself seems to be caching said files. So if User B opens them after getting the latest version an old version of the file is displayed modified and in the worst case checked in again without the changes made beforehand by User A.
Is this a known bug ? Does anyone know a workaround ? Restarting Powerbuilder works, but its not really handy to restart Powerbuilder everytime you get the latest version of a File.
Bug with "Get latest Version" in Powerbuilder.net
Re: Bug with "Get latest Version" in Powerbuilder.net
Could you confirm you are running the latest 2.43 version as shown in the Agent SVN about box?It can be reproduced the following way :
If that is not the case please try to replicate the issue with that latest version found here:
http://www.zeusedit.com/agent/download.html
Because PB seems to be a rather unusual MS-SCCI IDE most of the recent changes to Agent SVN have been PB related and that is true of the last set of changes.
If the problem persists please do the following for both users machines:The problem is : Powerbuilder.net itself seems to be caching said files.
1) Windows Start Button, All Programs, Agent SVN, Agent SVN Configuration utility
2) Turn on the debug option.
3) Hit the View debug log file
4) Truncate the log file to all but the last line (which shows the location of the log file)
5) Replicate the issue for both users
6) Send through both log files via e-mail
I agree that is not a valid option, but with the log files I suspect the issue should be fixable.Restarting Powerbuilder works
Cheers Jussi
Re: Bug with "Get latest Version" in Powerbuilder.net
Hi Jussi,
sadly the problem still persists even though we both updated to the most recent version of AgentSVN. I have sent you a mail with both logs attached. We did some Checkouts and Checkins so you have some useful data.
sadly the problem still persists even though we both updated to the most recent version of AgentSVN. I have sent you a mail with both logs attached. We did some Checkouts and Checkins so you have some useful data.
Re: Bug with "Get latest Version" in Powerbuilder.net
The log files show Agent SVN is doing everything as expected, so I'm not really sure why PB is not reloaded the locally changed file after the Get Latest command ;?
But I found there is an option for PB to check file changes made externally. That might fix this issue
More details on this option can be found here: http://infocenter.sybase.com/help/index ... 98118.html
These are the details of this option:
Environment > Documents
The options in this page control the display of documents in PowerBuilder .NET, and enable you to manage external changes to documents and files:
Detect when file is changed outside the environment - a message immediately notifies you of changes to an open file that have been made by an editor outside the IDE. The message allows you to reload the file from storage. Unselected by default. Auto-load changes, if saved - if Detect when file is changed outside the environment is checked and an open file in the IDE changes outside the IDE, a warning message is generated by default. If this option is enabled, no warning will appear and the document will be reloaded in the IDE to pick up the external changes. Allow scripts with syntax errors to be saved - selected by default.
But I found there is an option for PB to check file changes made externally. That might fix this issue

More details on this option can be found here: http://infocenter.sybase.com/help/index ... 98118.html
These are the details of this option:
Environment > Documents
The options in this page control the display of documents in PowerBuilder .NET, and enable you to manage external changes to documents and files:
Detect when file is changed outside the environment - a message immediately notifies you of changes to an open file that have been made by an editor outside the IDE. The message allows you to reload the file from storage. Unselected by default. Auto-load changes, if saved - if Detect when file is changed outside the environment is checked and an open file in the IDE changes outside the IDE, a warning message is generated by default. If this option is enabled, no warning will appear and the document will be reloaded in the IDE to pick up the external changes. Allow scripts with syntax errors to be saved - selected by default.