Problem compiling with included .apt -files...

General discussion forum about all things Team Developer 7.x
KimF
Finland
Posts: 7
Joined: 04 May 2017, 03:49
Location: Finland

Problem compiling with included .apt -files...

Post by KimF » 02 Aug 2018, 10:59

Hello, has anyone run into a similar problem as we?
This is an old problem (not a 7.1 problem), that has forced us to this solution

We have a .apt -file where we have included a lot of files, where the actual code is and then we have class code -files included to these files - normal isn't it

To make compiling (F8) of the header .apt -file work (after saving an included file), directly after it refreshed itself we have been forced to save the included files as .apl -files.

If we save included files as .apt and compile the header .apt -file, as described above, we get really many errors like this:
Error: Handle Semi-qualified reference not allowed because multiple definitions of pbShowRsts occur with inconsistent types.
These errors disappear after Refresh Libraries (F6) of the header -file

Thanks,
Kim

memic
Germany
Posts: 21
Joined: 07 Mar 2017, 08:51
Location: Germany

Re: Problem compiling with included .apt -files...

Post by memic » 02 Aug 2018, 11:08

Hi,

I also have the same Problem (TD 7). Mostly doing manually "Refresh Librarys" helps.

This occours every time I edit some big libraries. The automatic Library Refresh doesn't work in that case... I don't get this error when editing smaller libraries.

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

Re: Problem compiling with included .apt -files...

Post by Dave Rabelink » 02 Aug 2018, 11:17

I always found the automatic refresh on big projects very instable.
Sometimes it results in compile errors or even crashes when compiling.

I have myself automated that I reload the main app/apt file when libraries have changed.
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: 484
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: Problem compiling with included .apt -files...

Post by Dave Rabelink » 02 Aug 2018, 11:22

KimF wrote:
02 Aug 2018, 10:59
If we save included files as .apt
What do you mean by this?

Are you including an .apt file as library, for instance Include library: MyFile.apt ?
Or do you mean that the files are text format?

As for including MyFile.apt, why would you do that?

Libraries should always have the .apl extension (and preferably saved as TEXT format).
Application/Dynalib main files should be .apt or .app (depending on the used format, but preferably saved as TEXT format).
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

KimF
Finland
Posts: 7
Joined: 04 May 2017, 03:49
Location: Finland

Re: Problem compiling with included .apt -files...

Post by KimF » 02 Aug 2018, 11:33

We would like to save the included files as text -files
This because then we could use other repository and diff-tool than what gupta offers

At Open Text's roadshow, I got this picture of td7.1 that it should make this possible

Kim

bheilscher
Germany
Posts: 7
Joined: 22 May 2018, 08:59
Location: Braunichswalde

Re: Problem compiling with included .apt -files...

Post by bheilscher » 02 Aug 2018, 12:01

If the include files does not contain any class definitions, define a (dummy) class in each file.
Then the automatic refresh should work.

Bernd

User avatar
Peter.Hugk
Germany
Posts: 9
Joined: 06 Mar 2017, 07:48
Location: Germany

Re: Problem compiling with included .apt -files...

Post by Peter.Hugk » 02 Aug 2018, 12:30

KimF wrote:
02 Aug 2018, 11:33
We would like to save the included files as text -files
You can select Text as file format and still use the ending APL.

Regards,
Peter

KimF
Finland
Posts: 7
Joined: 04 May 2017, 03:49
Location: Finland

Re: Problem compiling with included .apt -files...

Post by KimF » 03 Aug 2018, 06:55

I doubt, that the file's extension has anything to do with this problem - the problem appears because the included file is saved as a text -file

Kim

Igor Ivanovic
Site Admin
Site Admin
Croatia
Posts: 133
Joined: 05 Mar 2017, 12:37
Location: Zagreb, Croatia

Re: Problem compiling with included .apt -files...

Post by Igor Ivanovic » 08 Aug 2018, 08:41

IMO you stumbled on an old bug with automatic refresh.
I reported it to (then) Gupta, even created a small use case showing it, but it was never solved.
The problem is that the changed included file is always placed at the end of the main app and that somehow messes up the outline resulting in compile errors and general instability when compiled successfully.

As Dave, I have automated myself to always: refresh all (F6) and compile (F8).
Igor Ivanovic
Image

KimF
Finland
Posts: 7
Joined: 04 May 2017, 03:49
Location: Finland

Re: Problem compiling with included .apt -files...

Post by KimF » 13 Aug 2018, 09:06


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 0 guests