Recent

Author Topic: Lazarus project's lpi file keeps adding a UnitName field in Unit section  (Read 2126 times)

vfclists

  • Hero Member
  • *****
  • Posts: 1013
    • HowTos Considered Harmful?

Because of using Git, I notice that there is a new property in the Units section called UnitName and it is added to the projects lpi file whenever a file is opened. Is this a new property in name in Lazarus 1.3 or 1.2.4?

It looks like an value related to the state of the IDE rather than the project, and I was wondering whether it should go into the lps file instead.

What is its purpose?

Code: [Select]
        <ComponentName Value="dmCommandTemplates"/>
         <HasResources Value="True"/>
         <ResourceBaseClass Value="DataModule"/>
+        <UnitName Value="commandTemplatesDataModule"/>
       </Unit23>
       <Unit24>
         <Filename Value="frameDevelopmentForm.pas"/>
@@ -336,6 +337,7 @@
         <ComponentName Value="TemplateParametersFrame"/>
         <HasResources Value="True"/>
         <ResourceBaseClass Value="Frame"/>
+        <UnitName Value="frameTemplateParameters_00"/>
       </Unit36>
       <Unit37>
         <Filename Value="liveCommandsDataModule.pas"/>
@@ -367,6 +369,7 @@
         <ComponentName Value="LiveCommandsBrowserFrame"/>
         <HasResources Value="True"/>
         <ResourceBaseClass Value="Frame"/>
+        <UnitName Value="lcBrowserFrame"/>
       </Unit40>
       <Unit41>
         <Filename Value="liveCommandsBrowserForm.pas"/>
Lazarus 3.0/FPC 3.2.2

dezlov

  • New Member
  • *
  • Posts: 13
It was a buggy behavior that was fixed in Lazarus 1.4.2.

Bug #0027713: UnitName row is added or removed from the Unit entry in lpi file:
http://bugs.freepascal.org/view.php?id=27713

 

TinyPortal © 2005-2018