Recent

Author Topic: Lazarus Bugfix Release 4.2  (Read 24742 times)

jwdietrich

  • Hero Member
  • *****
  • Posts: 1263
    • formatio reticularis
Re: Lazarus Bugfix Release 4.2
« Reply #15 on: July 26, 2025, 05:56:32 pm »
Thanks. It is great, as always.

Mac users, please keep in mind to mark the downloaded zip archive as safe before decompressing. This is accomplished with the following terminal command:

xattr -cr ~/Downloads/lazarus-darwin-aarch64-4.2.zip

Otherwise, you will receive a message that the app "Lazarus" is damaged and cannot be excecuted.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 4.2.0 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

jamie

  • Hero Member
  • *****
  • Posts: 7319
Re: Lazarus Bugfix Release 4.2
« Reply #16 on: July 26, 2025, 08:00:09 pm »
As a note about the Docking / anchor docking that is installed in the IDE, it has many issues and for me it's not usable.

 I was trying it out and first of all, the screen is a mess but I manage to move some things around, while that kind of put things in the prospective as I would like, to get the forms to pop forward using the F12 key it seems there is some sort of delay or action where I need to use the F12 twice before it happens.

 having the palette on the right side for the components showing I picked a control from there and dropped it on the form. I then noticed that in the EDIT of the top standard toolbar there was no UNDO option enabled for me to undo the drop, but if I do it from the top palette it then gives the option.

 It seems to be an erratic mess for me moving things around and so forth.
 This is on windows 10.

Just my opinion.

The only true wisdom is knowing you know nothing

threedslider

  • New Member
  • *
  • Posts: 24
Re: Lazarus Bugfix Release 4.2
« Reply #17 on: August 11, 2025, 03:59:01 pm »
I am a bit of late to say : Thanks for sharing and keep it up to the team ! :D

Mr. George

  • New Member
  • *
  • Posts: 30
Re: Lazarus Bugfix Release 4.2
« Reply #18 on: August 28, 2025, 09:49:48 am »
« Last Edit: August 29, 2025, 10:38:37 am by Mr. George »

CM630

  • Hero Member
  • *****
  • Posts: 1527
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Lazarus Bugfix Release 4.2
« Reply #19 on: September 12, 2025, 01:54:55 pm »
From the comments, I get the idea that https://gitlab.com/freepascal.org/fpc/source/-/issues/33087 is fixed, but it is not in 4.2.
Shall I expect the fix to be applied in a recent release?
Лазар 4,2 32 bit (sometimes 64 bit); FPC3,2,2

Thausand

  • Sr. Member
  • ****
  • Posts: 405
Re: Lazarus Bugfix Release 4.2
« Reply #20 on: September 12, 2025, 02:08:39 pm »
Shall I expect the fix to be applied in a recent release?
1. Lazarus <> FPC (fix is FPC)
2. Answer no. New is release FPC 3.2.4 and is version set.

If fix make many/difficult internal change (do not know if fix is this change) then have wait next release (3.2.6 or 4.0).

If want test fix then make use FPC 3.3.1 (branch main) and make build Lazarus when use FPC 3.3.1.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11824
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Bugfix Release 4.2
« Reply #21 on: September 12, 2025, 04:09:43 pm »
From the comments, I get the idea that https://gitlab.com/freepascal.org/fpc/source/-/issues/33087 is fixed, but it is not in 4.2.
Shall I expect the fix to be applied in a recent release?
From the comments on the issue report, this fix was added to FPC 3.3.1 (a.k.a trunk / main-branch).

So this is not yet in any FPC release. And by the looks of it (don't know if there are plans to change that) it will not be in upcoming FPC 3.2.4 (for which there currently is a release candidate available from the FPC download site).

The Lazarus releases always come with a released FPC version. Usually the latest released FPC, unless there is an overlap, where a new FPC was released, after building of the Lazarus release had already started....



You can test Lazarus 4.2 (or main or fixes branch) with the FPC 3.2.4 RC. But to do so, you need to download the FPC RC yourself, and amend the setup of your Lazarus install. Or you can use FpcUpDeluxe for that. Windows users can download a snapshot containing Lazarus 4.2 with the FPC 3.2.4RC
64bit: https://sourceforge.net/projects/lazarus-snapshots/files/Window%2064/2025-07%20Lazarus%204.2%20with%20FPC%203.2.4-RC1%20(56baf314b5eb)/
32bit: https://sourceforge.net/projects/lazarus-snapshots/files/Window%2032/2025-07%20Lazarus%204.2%20with%20FPC%203.2.4-RC1%20%2856baf314b5eb%29/

But the FPC 3.2.4RC does not contain the mentioned fix.

To test any Lazarus version with FPC 3.3.1 you need to use FpcUpDeluxe or download sources and build yourself.

CM630

  • Hero Member
  • *****
  • Posts: 1527
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Lazarus Bugfix Release 4.2
« Reply #22 on: September 19, 2025, 07:44:14 am »
Thanks for the clarification, for me it is not a big issue, since I know about it, but it might be a wall for newcomers.
Лазар 4,2 32 bit (sometimes 64 bit); FPC3,2,2

dbannon

  • Hero Member
  • *****
  • Posts: 3568
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Bugfix Release 4.2
« Reply #23 on: September 21, 2025, 02:19:35 pm »
I have just noticed something that puzzles me with Lazarus 4.2 (Linux).

When building with Lazbuild, it always seem to build in verbose mode even with a command line like -

Code: Bash  [Select][+][-]
  1. $> <path>/lazbuild -B --quiet --quiet .....

This does not happen on with 3_6 but I am unsure when the change happened, will need to build  more lazarus installs to find out. I followed the "Release Notes" link on the first post of this thread, it says its for 4.0, I guess thats also 4.2 ?  Anyway it does not mention any change to lazbuild and the --help option to lazbuild still lists --quiet.

(That Release Notes page, https://wiki.freepascal.org/Lazarus_4.0_release_notes also said Lazarus 4.0 has not been released yet, should it say the Lazarus 4 series is not finished yet ? I am guessing the title should have been Lazarus 4 release notes ? )

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

n7800

  • Hero Member
  • *****
  • Posts: 555
  • Lazarus IDE contributor
    • GitLab profile
Re: Lazarus Bugfix Release 4.2
« Reply #24 on: September 21, 2025, 07:04:12 pm »
I've made a lot of changes to LazBuild, including the output system. You can see the full list of changes (not just mine):
Code: Bash  [Select][+][-]
  1. git log --oneline lazarus_3_0..lazarus_4_0 -- ide\lazbuild.lpr

As far as I remember, it used to have reduced verbosity (b5fe30e1bbb), and I set it to normal (893885c9db) to match the IDE. So, compared to the previous version, it seems too verbose. In fact, it was quite terse before.



Regarding "--quiet --quiet" I just tested version 4.2, and my output changes depending on the number of parameters "--quiet" (or "--verbose").

Note that this parameter can be set up to three times – see this line. I didn't change it, but since the default verbosity was previously lower, this line now requires three "--quiet" options. This is probably your problem. Maybe its value should be lowered?



If you're really having problems, please provide more information (preferably in the bug tracker). Pipe the output from commands with different numbers of "--quiet" (and "--verbose") parameters to a file for comparison.

n7800

  • Hero Member
  • *****
  • Posts: 555
  • Lazarus IDE contributor
    • GitLab profile
Re: Lazarus Bugfix Release 4.2
« Reply #25 on: September 21, 2025, 07:16:35 pm »
(That Release Notes page, https://wiki.freepascal.org/Lazarus_4.0_release_notes also said Lazarus 4.0 has not been released yet, should it say the Lazarus 4 series is not finished yet ? I am guessing the title should have been Lazarus 4 release notes ? )

Indeed, 4.0 has been out for a long time, and there are even minor versions already. I think the developers should fix this.

I'm not sure about renaming it; the previous pages have the same names.

Bart

  • Hero Member
  • *****
  • Posts: 5616
    • Bart en Mariska's Webstek
Re: Lazarus Bugfix Release 4.2
« Reply #26 on: September 21, 2025, 07:34:53 pm »
Indeed, 4.0 has been out for a long time, and there are even minor versions already. I think the developers should fix this.

Thanks for noticing.
Fixed.

Bart

dbannon

  • Hero Member
  • *****
  • Posts: 3568
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Bugfix Release 4.2
« Reply #27 on: September 22, 2025, 01:37:29 am »
re Lazbuild Verbosity

Thanks n7800, I will try the three "--quiet" idea and get some record of what each --quiet contributes. Later today with some luck.

Right now, from memory, with two "--quiet"s I see each attempt of Lazarus to find a particular unit. That is, when lazarus has several paths a unit may be in, it tries each one reporting a fail until it finds the right one. Thats a really useful debugging tool but not necessary for regular compiles.

I will get back to you.

(Thanks Bart, I had that wiki page open in edit mode myself but then became doubtful, so backed out. I was going to list release date for 4.0 and 4.2)
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

dbannon

  • Hero Member
  • *****
  • Posts: 3568
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Bugfix Release 4.2
« Reply #28 on: September 22, 2025, 08:21:30 am »
re Lazbuild verbosity

OK, some numbers, as you suggest, its very dependent on the number of "--quiet"s provided. Here we have 0 to 3 "--quiets" and the number of lines produced. Its not very linear -
0 - 203,418
1-  202,998
2 - 202,998
3 - 187

For reference, with Lazarus 3.6 and two "--quiet"s, its 180 lines.

This is a project of some 30K lines of code, building 12 version (different widget sets linux, x86-64, arm64, 32 bit, Windows etc).

Davo


Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

dbannon

  • Hero Member
  • *****
  • Posts: 3568
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Bugfix Release 4.2
« Reply #29 on: September 23, 2025, 05:31:37 am »
re Lazbuild verbosity

Some further research reveals that this is only really a problem when the compiler has to look a bit harder to find the needed units. In my case, doing a cross compile. The units it needs are there but not in the first place the compiler looks. So, Lazbuild wants us to know how hard the compiler is working on our behalf. Unnecessary.

I have logged a bug report.
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/41842

Davo

Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

 

TinyPortal © 2005-2018