Problem compiling with included text -type files...

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

Problem compiling with included text -type 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
Last edited by KimF on 10 Sep 2018, 09:27, edited 1 time in total.

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

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: 1088
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

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: 1088
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

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: 10
Joined: 04 May 2017, 03:49
Location: Finland

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: 21
Joined: 22 May 2018, 08:59
Location: Braunichswalde

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: 99
Joined: 06 Mar 2017, 07:48
Location: Germany

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: 10
Joined: 04 May 2017, 03:49
Location: Finland

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: 761
Joined: 05 Mar 2017, 12:37
Location: Zagreb, Croatia

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: 10
Joined: 04 May 2017, 03:49
Location: Finland

Problem compiling with included .apt -files...

Post by KimF » 13 Aug 2018, 09:06


EwaldP
Austria
Posts: 109
Joined: 07 Mar 2017, 08:00
Location: Austria

Problem compiling with included .apt -files...

Post by EwaldP » 20 Aug 2018, 07:28

I have included about >120 files (saved as text) in my main application (also saved as text). With 3 libraries I have the same problems as described above. I can't commit that the problem has a relation with the file size but if I insert a gui class (e.g. form window class) the problem doesn't occur.

My workaround is that if I have anything to do in my 3 problem libraries I uncomment a dummy gui class. Compiling is much faster. Before making the build I comment these dummy classes and make a "refresh all".
Ewald P. Palmetshofer
EDV-Hausleitner GmbH
4020 Linz
www.edv-hausleitner.at

Uwe van der Horst
Site Admin
Site Admin
Germany
Posts: 82
Joined: 05 Mar 2017, 14:21
Location: Wetter (Ruhr), Germany

Problem compiling with included .apt -files...

Post by Uwe van der Horst » 20 Aug 2018, 15:14

EwaldP wrote:
20 Aug 2018, 07:28
My workaround is that if I have anything to do in my 3 problem libraries I uncomment a dummy gui class. Compiling is much faster. Before making the build I comment these dummy classes and make a "refresh all".
:shock: :shock: :shock:

One of the best hints ever, it works perfect here. I also automated myself to refresh all (F6) and compile (F8). Knowing this trick earlier I would have saved a lot of time. Thank you so much, Ewald.
Best regards,
Uwe van der Horst
Advo-web GmbH

EwaldP
Austria
Posts: 109
Joined: 07 Mar 2017, 08:00
Location: Austria

Problem compiling with included .apt -files...

Post by EwaldP » 21 Aug 2018, 08:16

glad to hear
Ewald P. Palmetshofer
EDV-Hausleitner GmbH
4020 Linz
www.edv-hausleitner.at

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

Problem compiling with included .apt -files...

Post by KimF » 27 Aug 2018, 10:36

A workaround - not a solution...

I just did a quite stupid test, that seems to fix this problem...

I just added a comment to the included file's class -part
Just a new line with an exclamation mark (!)

This makes header file to autorefresh its classes every time you save a included file with this comment in its class -part

Kim

Return to “General Discussion”

Who is online

Users browsing this forum: [Ccbot] and 0 guests