Is there a reason why third party component vendors still ship dfm in binary format and did not convert them ever?

Is there a reason why third party component vendors still ship dfm in binary format and did not convert them ever?

I just noticed that I corrupted some of them when using git with strict eol handling (dfm in text work fine). So I used convert.exe and converted them to text format before committing them.

Comments

  1. Personally, I can think of no reason they should do this. It is probably a question best directed at the vendors who insist on doing so. As you say, text based DFMs play so much more nicely with version control, etc.

    ReplyDelete
  2. IIRC Delphi 4 was the first version that supported text DFMs. So, unless they still want to support Delphi 3 and older (20 years old), there is no reason I can think of.

    ReplyDelete
  3. Lars Fosdal Abbrevia, FastReport, TRichView, TMS ScripterStudio

    ReplyDelete
  4. btw I use SourceTree and maaany repositories, but only S4D repo still generates problems with EOL. Exactly this problem: stackoverflow.com - SourceTree App says uncommitted changes even for newly-cloned repository - what could be wrong?

    ReplyDelete
  5. Jacek Laskowski Almost nobody uses a .gitattributes file in their git repositories which results in eol being all over the place depending on the git client settings of people that commit. Only using a .gitattributes file solves that problem properly - because there the settings are part of the repository and it does not matter what everyone has locally set their eol handling to.

    It might be your .git/config is improperly configured (see comments to the accepted answer you linked to).

    ReplyDelete
  6. Stefan Glienke Can't say for others, but for TMS Scripter, it's just a matter of not taking the effort of changing the DFM format (it was binary once and never changed). We can review this eventually, If you want to be kind and e-mail me with the list of files that are bothering you we can quickly manage to convert them for future releases.

    ReplyDelete
  7. Stefan Glienke You are probably right, but why with other repositories this problem does not occur?

    ReplyDelete
  8. Because they don't have a .gitattributes plus misconfigured .git/config? guessing

    ReplyDelete
  9. Wagner Landgraf Look for convert.exe in the Delphi\bin directory

    ReplyDelete
  10. One old issue with the XE5 osx compiler, some forms in text format raised a "Bad file format" exception, fix was leave them binary

    ReplyDelete
  11. Stefan Glienke The current version of Abbrevia does? I will have a look at it.

    ReplyDelete
  12. Stefan Glienke I just changed Abbrevia and asked Marco and Serge to update GetIt.

    ReplyDelete
  13. Good for you - I actually don't care because I don't like your approach to maintain them individually for each Delphi version - you probably did this only for 10.2 and not for any of the others.

    ReplyDelete
  14. Stefan Glienke Talk to Marco about this issue.

    ReplyDelete

Post a Comment