TD-20918: New IDE preferences option: use windows PATH

Missing or incomplete OpenText Gupta product features? Discuss it here!
Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3388
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

TD-20918: New IDE preferences option: use windows PATH

Post by Dave Rabelink » 08 May 2014, 13:27

The way TD IDE is looking for libraries, dynalibs and resources is very confusing and also not consistent.
This is how it always has been, so not particular to TD 6.2.

In preferences we have these options:
Preferences.png
The help on this screen states this:
Searching group

This group specifies where Unify SQLWindows looks for libraries, pictures, and icons. Note that this setting controls only searches that occur in the design-time environment, not at runtime. This setting also does not affect the search for DLL files mentioned in the External Functions section of the outline.

Separate each path in the list with a semicolon as in a DOS PATH environment variable. For example:

C:\INCLUDES;C:\PROJECT1

Use Global Search Path. If checked, Unify SQLWindows looks for files first in the specified Application Path and then in the specified Global Path. If not checked, Unify SQLWindows looks only in the Application Path.

Unify SQLWindows stores the Application Path in the application.
If you put all stuff (resources, libs and apd's) into one folder, there is no issue.
But what when you put these files into separate folders?

Libraries:
Libraries can only be found when the folder is specified in the preferences within TD (global path or app path will do).
Even when you have setup the SYSTEM PATH (of Windows) to have an entry for the libraries folder, TD will not find it.

Resources:
Bitmaps, icons etc can be found when the folder is specified in the preferences within TD (global path or app path will do).
ALSO, when the SYSTEM PATH (Windows) has an entry for the resources folder and the path is not specified in TD, the resources can be found.

Dynalibs (apd):
Dynalibs can not be found, even when the folder is specified in the TD preferences.
They can only be found when the folder is in the SYSTEM PATH (Windows).

So, it is clear that it is not consistent. Why are resource locations different compared to library locations?
And why does the TD preferences have no effect on dynalibs?
Also very very inefficient is that App path in TD is not saved in the application source as a readable text. It is encoded in a HEX block which prevents us to do mass updates on all sources when trying to change the app folder location. We now need CDK to do this.

This makes it more difficult to setup developer workstations where multiple projects are being developed which have their own folder locations.
For instance, we use SVN and the default project architecture or trunks, tags and branches and they can be setup anywhere on the development system. It is now very inefficient to switch from one project to another.
You have to take care of the SYSTEM PATH and the application path setting in TD which will result in errors and more work.

So I ask for an extra option in TD, so it will not break the existing directory searching.

I would like to see an option : Use Windows PATH.

This will tell TD IDE to use the Windows PATH environment variable to search for all files which can be setup in the sources:
libraries,resources, dynalibs etc etc.

Having this, we developers can use a set of batch files which setup the needed folders in the PATH variable and then start TD IDE.
Each project can have it's own batchfiles, pointing to different folders and even start different TD versions.

Please consider this, it would make the daily work "more fun", like the TD setup SplashScreen is telling us.
You do not have the required permissions to view the files attached to this post.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Acclaro
Germany
Posts: 166
Joined: 16 Mar 2017, 08:13
Location: Hannover, Deutschland

Re: TD-20918: New IDE preferences option: use windows PATH

Post by Acclaro » 08 May 2014, 18:17

Hello Dave,

we do it this way;
You do not have the required permissions to view the files attached to this post.

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3388
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: TD-20918: New IDE preferences option: use windows PATH

Post by Dave Rabelink » 09 May 2014, 12:03

Yes, relative PATHs are possible.
But here also, this means you will have to comply to a predefined structure.
When the structure changes, you need to change all the sources (which is not possible using bulk change due to the HEX issue).

Also, placing sources temporarily outside the structure will not work, for instance to test changes.

My enhancement request is to be able to set the structure externally, without having to change the sourcefiles themselves.
(so no folder definitions at all in the TD prefs).
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3388
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: TD-20918: New IDE preferences option: use windows PATH

Post by Dave Rabelink » 27 May 2014, 11:54

For your information.

Gupta has assigned an enhancement number for this request:

TD-20918 : Use SYSTEM PATH for search path of all TD file components
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Return to “Enhancement suggestions”

Who is online

Users browsing this forum: [Ccbot] and 1 guest