1. Cyndi Harris
  2. PowerBuilder
  3. Wednesday, 9 October 2019 02:54 PM UTC

We recently upgraded to the Powerbuilder 2019 from PB 12.5. We also have increased the number of developers and would like to use the SVN feature with PB 2019. We found instructions on how to set this up (using instructions for PB 2017 R2 You tube videos - I was unsuccessful in finding any tips, tricks or instructions using PB 2019). We were successful in setting up our repository, having other developers connect to the workspace and even make changes and commit those changes so other developers have access to those changes. We have Tortoise SVN.

Our problem stems from understanding the proper steps with building and deploying the changes so users have the latest changes in the application. The instructions I found did not take things that far. As a rule, we typically rebuild individual pbls and run a .bat file that  copies the pbds to a network drive, overwriting the ones that are there. In an additional step, it copies the entire contents of the developer's working directory to a separate network drive location. Although this was a primitive type of source control, we could roll back to any particular version and have the complete set of code including pbl, pbd, workspace, etc for a developer to use to roll back if there was an issue with a new version. The users have a launch.bat file that runs when users launch the app from a desktop icon. This copies the latest pbds and dlls to the users local drive from the above mentioned network and runs the exe file. We don't create a new exe every time we make minor changes to the application, so we don't use the deploy from the PB IDE every time we make a change. We have had issues in the past with this. 

Powerbuilder SVN does not upload changes to pbd and pbls to the repository. When developer A makes changes and saves them with SVN Commit in the PB IDE, it saves the source and objects, but not the pbl and pbd. When developer B pulls the latest with an SVN Update from the PB IDE, it does not get the new pbd for their working directory.  That developer would then need to look and see which pbl(s) was updated since the last time he got changes from SVN and rebuild that PBL(s) along with their own changes before they run the .bat file to copy the pbls to the network. Our application has 28 pbls, some of them have hundreds or even thousands of objects, so it is not practical to rebuild all of them each time we pull the latest from the repository.  We had an issue where a developer got the latest from using SVN Update, made changes, committed them, rebuilt his pbl, placed all pbds in the network drive for the users.  When the users launched the program, they started having issues with areas of the code that use data stores. (neither developer made changes to affect the data stores or those objects). the funny thing is that even attempting to run the previous version (although we have this is in SVN, we still have the copy of the workspace to the network going until we are sure this works). The previous copy that worked perfectly the last few days now had the same error that the newly published version had. We were unable to run the program successfully without the error from the network location that had the full source, pbd, exe that previously worked. We ended up having to change the data store from using field names to using indexes, rebuilding those pbls and pushing out those changes. Again, none of the changes made recently had anything to do with modifications to the datastores in the pbls. Also while working on this, PB IDE kept crashing while he was trying to debug the program to determine the problem. 

What are recommended steps for a developer to take when making changes, saving them, committing them, rebuilding the changed pbl to make this work? Should we change our .bat file to only copy the pbd if it is newer than the pbd on the network drive instead of copying all pbds? What are the steps we would need to take to roll back to a previous version if there is an issue? What mix of steps are necessary for these to happen? I assume we would use some of the steps within the PB IDE, but since there appears to be a gap in what the PB IDE can do for true source control, we would also need to use the tortoise SVN for other things. I don't think if we use Tortoise SVN for steps to commit changes to pbds, that the PB IDE will recognize those changes when we do SVN Update. Is there anywhere with complete recommended steps to handle source control with SVN with PB 2019? 

 

 


Responses (2)
  1. Likes
  2. Latest
  3. Oldest
Loading...

Find Questions by Tag

.EXE .NET 6.0 .NET Assembly .NET Core 3.1 .NET Core Framework .NET DataStore .NET Std Framework 32-bit 64-bit ADO.NET AEM AI Algorithm Amazon AWS Android Apache API APK App Store App Store (Apple) Appeon Workspace Appeon Xcelerator Plug-in Architecture Array ASE Asynchronous Methods Authentication AutoBuild AutoCompiler Automated Testing Automation AutoScript Azure Barcode Base64 Batch BigData BLOB Branch & Merge Browser Bug Build Button C# C# Class Importer C# Editor C# Model generator Calendar Camera Certificate Chrome Citrix Class Client Client/Server Cloud Cluster Collection COM Command Line Compiler Compression Computed Field Configuration Controls Cookies Cordova Crash Cross-Platform Crosstab CSharpAssembly CSharpObject CSS CSV Cursor Data Database Database Driver Database Painter Database Profile Database Provider DataObject DataSource DataStore DataStore (C#) DataStore (PS) DataType DataWindow DATE DATETIME DB2 Debug Debugger Debugging Deployment Design DLL DO-WHILE Dockable Docker Documentation DOUBLE Download DragDrop Edge Edit Style Editor Elevate Conference Email Embedded SQL Emulator Encoding Encryption Enhancement Request Entity Entity Framework ERP Error Event Event Handler Event Handling Excel Exception Export Expression External Functions F# Field File File Access Filter Firefox Firewall Font FOR-NEXT Foreground Format Function Garbage Collection GeoLocation Git Graph HANA Hash Header HTML/5 HTTP/S HTTPClient Icon IDE Identity IIS IMAPI Import InfoMaker Inheritance Installation Integer IntelliSense Interface Internet Internet Explorer iOS IPA iPad iPhone IWA J# Java JavaScript JBoss JDBC JOIN JSON JSONGenerator JSONParser Kestrel Label Lambda Large File LDAP Library License LINQ Linux OS Load Balancing Localization Localized PBVM Log In Log Out Logging LONG LONGLONG macOS MAPI Maps MDI Memory Memory Leak Menu Merge MessageBox Messagging Method Migration MIME TYPE Mobile Model ModelStore ModelStore (C#) MSOLEDBSQL Multi Threading MVC MySQL n-Tier Namespace NativePDF NVO OAuth ODATA ODBC Office Offline OLE OLEDB Online Open Source OpenAPI OpenSSL Oracle OrcaScript Other Outlook Output Package Parameter Patch PayPal PB Classic PB Native PB.NET PBC PBD PBDOM PBG PBJVM PBL PBNI PBORCA PBVM PBX PDF Performance Permission PFC Picture Pipeline Play Store (Google) Plugin Popup Port POST PostgreSQL PowerBuilder PowerBuilder (Appeon) PowerBuilder (SAP) PowerBuilder Compiler PowerBuilder Runtime PowerClient PowerScript (PS) PowerScript IDE PowerScript Migrator PowerServer PowerServer Mobile PowerServer Toolkit PowerServer Web PowerServerLabel Print Properties Proxy Publish PULL PUSH Query Regression Release Renew Resize Response REST Retrieve RibbonBar RibbonBar Builder Rich Text Roadmap RPC Runtime Packager SaaS Scaffolding Script SDI SDK Security Server Service Session Single Sign-on Size SMTP SMTPClient SnapDevelop SOAP Sort Source Code Speech Recognition SQL SQL Anywhere SQL Server SqlBuilder SqlExecutor SQLite SqlModelMapper Storage Stored Procedure Subscription SVN Swagger Syntax TabbedBar TabbedView Tablet TabPage Target TE Control Testing Text TFS Theme TIME Timer TLS/SSL Tomcat TortoiseGit TortoiseSVN Transaction Transparency Trial Trigger TRY-CATCH TX Control Type UI ULONG UltraLite Uninstall Unit Test Unit Testing UNIX OS Update Upgrade Upload URL User Center User Object UWP Validation VARCHAR Variable Versioning Visual Studio Visual Studio Code VM Voice Warning WCF Web API Web Extensions Web Service WebBrowser WebForms WebLogic WebSphere WildFly WinAPI Window Windows OS WinForms Wizard Workgroup Workspace WPF XCODE XHTML XML Zoom

Helpful?

If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.