Solved TD-21982: xml file saved along with source file

Report TD 5.x and 6.x bugs and possible workarounds.
Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3512
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

TD-21982: xml file saved along with source file

Post by Dave Rabelink » 07 Apr 2015, 08:02

When saving a TD file, also saved is a xml file which (I guess) is used to store the bookmarks.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
-<TeamDeveloperAppUser Version="1">
-<HITEMS>
<HITEM IsBookmark="true" ID="90009"/>
<HITEM IsBookmark="true" ID="9000a"/>
<HITEM IsBookmark="true" ID="9000e"/>
</HITEMS>
</TeamDeveloperAppUser>
But this file is also saved when NO bookmarks are set in the code.
So for every file touched, a xml file is saved.

Issue is that it clutters the folder with unnecessary xml files which we will have to delete manually after every edit.
Especially when using version control system which tracks the folder (eg SVN), these new files will be designated as new files for the versioning system.
Here the folder structure will show red exclamation marks in the Windows Explorer icons and are only shown in green when we delete all the xml files.

So, when no bookmarks are set, no xml file should be saved.
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: 1473
Joined: 05 Mar 2017, 12:37
Location: Zagreb, Croatia

Re: TD-21982: xml file saved along with source file

Post by Igor Ivanovic » 07 Apr 2015, 09:53

+1 definitely!

I am using SVN also and its a PITA to manually delete all the extra files.
Igor Ivanovic
Image

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

Re: TD-21982: xml file saved along with source file

Post by Igor Ivanovic » 07 Apr 2015, 14:52

I don't say it's a bad idea, on the contrary, but if there is nothing to save, no bookmarks, breakpoints? (I was hoping breakpoints are saved in it but no trace of them in the xml file) what's the point of creating the file without any info in it?
I am working with apt format for years now and since day one hated that my breakpoints were not saved in an apt, so I had to enter them every time, so I congrat the idea, but the implementation for now is bad.

If you remember, on every DevCon I attended, I said don't throw on us unfinished (or unpolished) new functionality, but it's happening again.
The bookmarks are not working at all as TD GPFs, the breakpoints are not saved anyway, or any other info, so the only thing I get is my folders cluttered with useless xml files.

I was eagerly waiting for the 6.3 since it was introduced on the last DevCon, but for now I just have problems with it.

Cheers,
Igor Ivanovic
Image

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

Re: TD-21982: xml file saved along with source file

Post by Dave Rabelink » 08 Apr 2015, 07:25

iivanov wrote:..what's the point of creating the file without any info in it?
I agree, there is no point. It is more of a nuisance than a benefit.
I will create an enhancement request to have this new feature more "polished".
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: 1473
Joined: 05 Mar 2017, 12:37
Location: Zagreb, Croatia

Re: TD-21982: xml file saved along with source file

Post by Igor Ivanovic » 08 Apr 2015, 12:15

What about the breakpoints info in the xml files?
It seems to me, on reading your posts, that it was supposed to be in it, but it isn't.
Is it a defect that I should report, or should I open an enhancement request?

Cheers,
Igor
Igor Ivanovic
Image

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

Re: TD-21982: xml file saved along with source file

Post by Igor Ivanovic » 09 Apr 2015, 08:25

I have opened two cases.
One for the creation of empty xml files, and another one for the missing info about the breakpoints.

Igor
Igor Ivanovic
Image

User avatar
markus.essmayr
Austria
Posts: 892
Joined: 06 Mar 2017, 06:07
Location: Austria

Re: TD-21982: xml file saved along with source file

Post by markus.essmayr » 09 Apr 2015, 12:49

Please consider to make the xml-files hidden by adding the appropriate attribute.
Visual Studio does this too!

Max
Markus Eßmayr
teamdeveloper@t-mx.com

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

Re: TD-21982: xml file saved along with source file

Post by Igor Ivanovic » 09 Apr 2015, 17:33

I agree with Max, VS creates only one file for the solution, and TD creates them for every apl/apt.

Regarding the hidden attribute, it would be Ok, although I have managed to have them ignored by SVN for now.
Igor Ivanovic
Image

wardies
Great Britain
Posts: 86
Joined: 21 Mar 2017, 10:44
Location: UK

Re: TD-21982: xml file saved along with source file

Post by wardies » 13 Apr 2015, 16:06

Note: below, I'm assuming you don't want to commit your bookmarks or breakpoints to the repository; if you do, please ignore!

Most source control systems will allow you to enter global ignore patterns, e.g. TortoiseSVN Settings: first menu option "General" contains a "Global ignore pattern" field.

For Visual Studio user solutions files we add: *.vcxproj.user

For TD 6.3 I assume you would just add: *-user.xml

Though the file might be better named with an extension that uniquely identifies it as TD-related (e.g. <app name>-tduser.xml), this should still be reasonably safe. If you really do have XML files that belong in the repository with the same extension, you can still manually add to SVN repo.

P.S. This sounds like a great enhancement. Maybe IDE window positions, sizes, etc. have been/will be moved into this file too? Can't wait to try it out!

Return to “Bug Reports”

Who is online

Users browsing this forum: [Ccbot] and 7 guests