Menu

#2 Add an lmath project_group for easier first manual usage

1.0
closed
nobody
None
2021-04-28
2020-11-27
wp
No

Having to install my computer these days I found that it is quite painful to get lmath back to life because of the many packages which must be loaded individually, and compilation can fail when one of them has not yet been loaded.

Laz trunk offers the nice feature of project groups which make the solution of this issue a one-click experience. A project group can contain projects and packages to enable easy switching between projects. Applying it to lmath I added all packages only. The project group editor contains a "Compile" (and a "Compile clean") button; when the project group is selected all contained packages are compiled at once and in the order listed. A simple click on this button does all.

I am attaching the project which I created along the way. Maybe it is useful to others, too.
I could imagine that a seconds project group would be useful which contains also the demo projects.

But again: this is a trunk feature, users of the Laz release versions cannot use it - it is not harmful, though.

1 Attachments

Discussion

  • Viatcheslav Nesterov

    Hi! Many thanks for your work!
    Little problem is that I am user of Lazarus release version myself and cannot try your work before including in the package, though in principle I find it potentially very useful. I think, for now I leave this ticket open, and include your work in LMath library immediately after project groups are included into release of Lazarus.
    Many thanks once more!

     
  • Viatcheslav Nesterov

    • status: open --> closed
     
  • Viatcheslav Nesterov

    Target created in lpg (attachment was empty) and included into the library.

     
  • wp

    wp - 2021-04-22

    Does this mean that the project group now is included in the lib? My problem is that I cannot find it.
    What do you mean with "attachment was empty"? I can open the attachment in first post and it is not empty.

     
    • Viatcheslav Nesterov

      Well, attached file of project group was empty. And yes, project group is now included in the library. In lmath_06_components_05.zip it is located directly in \LMath directory.
      "But again: this is a trunk feature, users of the Laz release versions cannot use it - it is not harmful, though." - this is not quite true actually. My Lazarus 2.0.10 contains lazprojectgroups.lpk package, and if it is installed, one can use project groups. Maybe in Trunk it is installed by default? But even now, install this package and use the project groups.

      And finally. When uploading lmath_06_components_05.zip I did not include types.inc into the archive . If you downloaded it before 23. April, please download once more.

       
  • wp

    wp - 2021-04-26

    Oh, I'm sorry. I was convinced that project groups were introduced in trunk, and this explains, of course, why the lpg file was empty for you in the IDE (because the structure of all xml files of the IDE has been changed in trunk).

    My original problem, however, remains: I still cannot find the project group file in the svn repository. You may have added it to the zip, but in the svn repo it is missing (unless I am completly blind now...).

     
    • Viatcheslav Nesterov

      OK. Now in repository too.
      Regards!

       

Log in to post a comment.