Forum > Lazarus Extra Components

AnchorDocking fails using Lazarus Trunk

<< < (2/4) > >>

dsiders:

--- Quote from: Gustavo 'Gus' Carreno on June 04, 2021, 05:03:34 am ---Hey dsiders,

I've had major issues with Anchor Docking and the generics implementation that comes with sparta.

On fpcupdeluxe I have this patch I apply for versions below 2.1:

--- Code: Diff  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Index: components/sparta/mdi/sparta_mdi.lpk===================================================================--- components/sparta/mdi/sparta_mdi.lpk        (revision 61673)+++ components/sparta/mdi/sparta_mdi.lpk        (working copy)@@ -46,16 +46,13 @@         <UnitName Value="sparta_abstractresizer"/>       </Item8>     </Files>-    <RequiredPkgs Count="3">+    <RequiredPkgs Count="2">       <Item1>-        <PackageName Value="sparta_Generics"/>+        <PackageName Value="LCL"/>       </Item1>       <Item2>-        <PackageName Value="LCL"/>+        <PackageName Value="FCL"/>       </Item2>-      <Item3>-        <PackageName Value="FCL"/>-      </Item3>     </RequiredPkgs>     <UsageOptions>       <UnitPath Value="$(PkgOutDir)"/>Index: components/sparta/toolsapi/sparta_toolsapi.lpk===================================================================--- components/sparta/toolsapi/sparta_toolsapi.lpk      (revision 61673)+++ components/sparta/toolsapi/sparta_toolsapi.lpk      (working copy)@@ -9,7 +9,7 @@       <PathDelim Value="\"/>       <SearchPaths>         <OtherUnitFiles Value="source"/>-        <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)\"/>+        <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>       </SearchPaths>     </CompilerOptions>     <Files Count="3">@@ -26,16 +26,13 @@         <UnitName Value="DesignMenus"/>       </Item3>     </Files>-    <RequiredPkgs Count="3">+    <RequiredPkgs Count="2">       <Item1>-        <PackageName Value="sparta_Generics"/>+        <PackageName Value="IDEIntf"/>       </Item1>       <Item2>-        <PackageName Value="IDEIntf"/>+        <PackageName Value="FCL"/>       </Item2>-      <Item3>-        <PackageName Value="FCL"/>-      </Item3>     </RequiredPkgs>     <UsageOptions>       <UnitPath Value="$(PkgOutDir)"/> 
I'm not sure that this is your problem, or even if it will solve your problem, but I've had success and no more issues after I applied this patch.

Cheers,
Gus

--- End quote ---

Thanks for that... but I'm not using Sparta. The error is in the components/anchordocking package and its interaction with the IDE.

JuhaManninen:

--- Quote from: dsiders on June 03, 2021, 01:25:16 am ---I did an install of 2.0.12 (FPC 3.2.0) and applied Lazarus SVN trunk to it.

--- End quote ---
Does it mean you copied trunk sources on top of 2.0.12 sources?
It is not a good idea although I don't know if it causes this particular problem. You should download trunk sources to a dedicated directory and build it with an installed FPC. Just run "make" from console. It works also on Windows, "make" binary is provided by FPC.

dsiders:

--- Quote from: JuhaManninen on June 04, 2021, 08:19:37 am ---
--- Quote from: dsiders on June 03, 2021, 01:25:16 am ---I did an install of 2.0.12 (FPC 3.2.0) and applied Lazarus SVN trunk to it.

--- End quote ---
Does it mean you copied trunk sources on top of 2.0.12 sources?
It is not a good idea although I don't know if it causes this particular problem. You should download trunk sources to a dedicated directory and build it with an installed FPC. Just run "make" from console. It works also on Windows, "make" binary is provided by FPC.

--- End quote ---

I deleted all source directories, and checked out trunk. svn stat shows no issues. I used make clean bigide to rebuild. No errors there either.

No problems until I install anchordockingdsgn.lpk.

Gustavo 'Gus' Carreno:
Hey dsiders,


--- Quote from: dsiders on June 04, 2021, 07:10:52 am ---Thanks for that... but I'm not using Sparta. The error is in the components/anchordocking package and its interaction with the IDE.

--- End quote ---

Well it's not you that I'm worried about.

Anchor Docking uses Sparta for the form docking. At least if you install it with the default settings.

So, Lazarus, not you, is using one of Sparta's IDE components when Anchor Docking is installed and that's why I've mentioned the generics.

But I do have to say that my issues popped up while compiling, so maybe you got a source version where the Sparta component issue is already solved.

I dunno, I just thought it would be a nice thing to mention in case it could be the culprit.

Cheers,
Gus

dsiders:

--- Quote from: Gustavo 'Gus' Carreno on June 04, 2021, 06:25:54 pm ---Hey dsiders,


--- Quote from: dsiders on June 04, 2021, 07:10:52 am ---Thanks for that... but I'm not using Sparta. The error is in the components/anchordocking package and its interaction with the IDE.

--- End quote ---

Well it's not you that I'm worried about.

Anchor Docking uses Sparta for the form docking. At least if you install it with the default settings.

So, Lazarus, not you, is using one of Sparta's IDE components when Anchor Docking is installed and that's why I've mentioned the generics.

But I do have to say that my issues popped up while compiling, so maybe you got a source version where the Sparta component issue is already solved.

I dunno, I just thought it would be a nice thing to mention in case it could be the culprit.

Cheers,
Gus

--- End quote ---

It's not Sparta. I've deleted all of the source in components/sparta directories, and both the run-time and design-time packages in components/anchordocking still compile. They just don't work after installation. They have no dependency on Sparta.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version