Solved TD-23828: Class Default Attributes lost when commenting, saving and uncommenting an APT outline

Report bugs and possible workarounds.
Igor Ivanovic
Site Admin
Site Admin
Croatia
Posts: 155
Joined: 05 Mar 2017, 12:37
Location: Zagreb, Croatia

TD-23828: Class Default Attributes lost when commenting, saving and uncommenting an APT outline

Post by Igor Ivanovic » 22 Nov 2017, 13:44

Hi,

There is a nasty bug when commenting saving and then opening and uncommenting an APT outline.
All the Class Default attributes are lost as TD changed them to window default.
Ironically this doesn't happen if the sources aren't saved in normal (binary) outline mode.

Lost hours of work to change them back... :x :x :x
Igor Ivanovic
Image

User avatar
Charlie
Canada
Posts: 69
Joined: 07 Mar 2017, 18:52
Location: Fredericton, New Brunswick, Canada

TD-23828: Class Default Attributes lost when commenting, saving and uncommenting an APT outline

Post by Charlie » 24 Nov 2017, 11:55

Yikes. That's not something I would have ever thought of testing when evaluating new versions of TD.

Major thanks for the heads-up !
A little trick to help direct folk from old Gupta forum to this one: Link to post

-tommi
Finland
Posts: 13
Joined: 03 May 2017, 08:00
Location: Finland

TD-23828: Class Default Attributes lost when commenting, saving and uncommenting an APT outline

Post by -tommi » 28 Nov 2017, 14:17

This might be related to the bug that I found out. Same thing happens when converting apl to TD70 if it is NOT in text mode.

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 148
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

TD-23828: Class Default Attributes lost when commenting, saving and uncommenting an APT outline

Post by Jeff Luther » 28 Nov 2017, 16:38

Same thing happens when converting apl to TD70 if it is NOT in text mode.
Wow! That's a big bug, -tommi! The default mode for an APL is to be saved in binary format; you have to manually specify 'Text (*.apt)' in the Save As dialog box and type in '.APL' as the extension to the filename to save it in text format.

I hope your finding is added to the description for TD-23828, or another related bug/defect report opened to address this reset of the Attributes for a binary APL when moving to v7.0.
Jeff Luther @ PC Design
Palm Springs, California
TD info. & samples: http://www.jeffluther.net/TD/

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

TD-23828: Class Default Attributes lost when commenting, saving and uncommenting an APT outline

Post by Igor Ivanovic » 29 Nov 2017, 13:10

-tommi,

Did you open a ticket for the bug?
Igor Ivanovic
Image

-tommi
Finland
Posts: 13
Joined: 03 May 2017, 08:00
Location: Finland

TD-23828: Class Default Attributes lost when commenting, saving and uncommenting an APT outline

Post by -tommi » 04 Dec 2017, 15:57

Yes - I did open a Ticket.
It is marked as solved: viewtopic.php?f=26&t=45693

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

TD-23828: Class Default Attributes lost when commenting, saving and uncommenting an APT outline

Post by Igor Ivanovic » 05 Dec 2017, 12:12

tommy,

It doesn't seem to me it's related.
We always save in text format, for years now since we lost one of our source files due to binary corruption...
In this case the original file was saved to text, the code was commented and saved again as text and that's the moment when class attributes were lost.
Igor Ivanovic
Image

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

TD-23828: Class Default Attributes lost when commenting, saving and uncommenting an APT outline

Post by Dave Rabelink » 11 Dec 2017, 06:23

Hi Igor,

Reading the KB article on this case:
https://knowledge.opentext.com/knowledg ... /KB7994372

It says this, quote:
In Gupta Team Developer (TD), commenting a class instance in a binary outline and saving it as a text outline results in losing the Class Default Attributes of the commented instance once uncommented.
Is that correct? It talks about binary to text saving. Is the issue also when text to text saving?
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

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

TD-23828: Class Default Attributes lost when commenting, saving and uncommenting an APT outline

Post by Igor Ivanovic » 11 Dec 2017, 10:25

Hi Dave,

Yes, my initial repro case was text to text saving.
It doesn't matter if the outline was binary or text, the issue happens when saving as text.
You can compare the file before and after saving as text and the issue is there, it's a problem with saving as text.
The only case when it doesn't happen is binary to binary (didn't check saving as indented text though).
Igor Ivanovic
Image

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

TD-23828: Class Default Attributes lost when commenting, saving and uncommenting an APT outline

Post by Dave Rabelink » 14 Feb 2018, 07:46

This issue is fixed in TD 7.0.4
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 “Bug Reports”

Who is online

Users browsing this forum: [Ccbot] and 0 guests