Lazarus

Announcements => Lazarus => Topic started by: mattias on September 28, 2022, 10:08:10 am

Title: Lazarus Release 2.2.4
Post by: mattias on September 28, 2022, 10:08:10 am
The Lazarus team is glad to announce the release of Lazarus 2.2.4.

This is a bugfix release and was built with FPC 3.2.2.

Here is the list of changes for Lazarus and Free Pascal:
http://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes
http://wiki.lazarus.freepascal.org/User_Changes_3.2.2

Here is the list of fixes for Lazarus 2.2.x:
https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_2_2

The release is available for download on SourceForge:
http://sourceforge.net/projects/lazarus/files/

Choose your CPU, OS, distro and then the "Lazarus 2.2.4" directory.

Checksums for the SourceForge files:
https://www.lazarus-ide.org/index.php?page=checksums#2_2_4

Minimum requirements:

Windows:
   2k, 32 or 64bit.

FreeBSD/Linux:
   gtk 2.24 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit.

Mac OS X:
   Cocoa (64bit) 10.12, Carbon (32bit) 10.5 to 10.14, qt and  qt5 (32 or 64bit).

The gitlab page:
https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/lazarus_2_2_4

For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at: ftp://ftp.freepascal.org/pub/lazarus/releases/
Title: Re: Lazarus Release 2.2.4
Post by: d7_2_laz on September 28, 2022, 11:33:31 am
Unfortunately at least this one is still missing:
LCL/TListView: More complete fix of issue #39708, based on patch by d7_2_laz...
https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/c0c30424debbd95c58fc9e8b98293dba55292d12
... referring to this issue:
Windows, virtual listview, "Item" in "Edited" becomes to be wrong when selection changed during editing
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39708
--> What can we do for to make it work again with the 2.2.4?
Title: Re: Lazarus Release 2.2.4
Post by: wp on September 28, 2022, 04:35:59 pm
Hmmm... This report is tagged with "milestone 2.4". If I remember correctly, this was some kind of difficult work with some changes deep in the heart of the listview, and I was not sure if we did not break something else.
Title: Re: Lazarus Release 2.2.4
Post by: d7_2_laz on September 28, 2022, 05:17:30 pm
Yes wp (thank you!).
There was also some keeping track of the selection list (around "InitMultiSelList", "UpdateMultiSelList" & co.; cannot see them within the 2.2.4) last april, maybe you remember roughly. I applied those patches as discussed last april (from lazgit), and what i can say is that upfrom these changes the virtual listview, multiselect, did work smart and without any problems regarding this bunch of issues discussed (it was a closed long story for me).
Will it be surely within a 2.4?  And how to have it for (on top of) the 2.2.4?
Title: Re: Lazarus Release 2.2.4
Post by: wp on September 28, 2022, 05:37:25 pm
Will it be surely within a 2.4?  And how to have it for (on top of) the 2.2.4?
Well, 2.2.4 is done - nothing can change it any more. If you are sure that the committed fix is working and has no side-effects, we can target it for v2.2.6 (or 2.4 - whichever comes first). In the meantime it will be in "fixes" then. Is it only the commit that you cited above?
Title: Re: Lazarus Release 2.2.4
Post by: d7_2_laz on September 28, 2022, 06:54:25 pm
Thank you wp again! Of course i cannot promise there are no side effects at all regarding any potential use case. What i can say that i have a heavy usage of listview in virtual mode w. multiselect, have had a bunch of issues in the past, but ending up with your patches from last april for me it does work smooth and reliable. Ii did not encounter side-effects here anymore.

I fear (sorry) i didn't fully understand the meaning of your last question (‘Is it only the commit that you cited above?’).
Not sure where (from which commit)  the InitMultiSelList UpdateMultiSelList etc. at the end came from. At least: i just recompared my "patched" 2.2.2 version against the "main" repository (customlistview.inc, win32wscomctrls.pp, win32wscustomlistview.inc, wscomctrls.pp).
They are identical. So for simplyness i'd refer to the "main" repository in this respect.
Title: Re: Lazarus Release 2.2.4
Post by: d7_2_laz on September 29, 2022, 09:47:48 am
wp, regarding the InitMultiSelList UpdateMultiSelList etc. mentioned, this one appear to implement them:
(obviously missing in 2.2.4 too):
https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/fb64d6ef4d2f1081478d16e3fe7455a8110a52c6

Besides, after a couple of file comparisons (customlistview.inc, win32wscomctrls.pp, win32wscustomlistview.inc, wscomctrls.pp original  2.2.2 vs. original 2.2.4) - for to check if one can do so (i found: yes) - i placed. for test, those files on top of the 2.2.4 (plus two others, only for crossref reasons). After this replacement all works fine again. Same as done with 2.2.2.

Concerning a bunch of previous issues around listview matters those 4 files from "main" are working perfectly for me for half a year, so it would be highly appreciated to know if they will be really published with 2.2.6 rresp. 2.4.
Title: Re: Lazarus Release 2.2.4
Post by: RadDeveloper on October 01, 2022, 04:42:14 am
Hi Lazarus Team! Since the last release, this issue hasn't been fixed :-(

Here is the bug in this version. Here the steps: Launch Lazarus IDE, Click Project -> View Project Source, then close project1.lpr page, then again Click Project -> View Project Source, then the source page appears to be blank (no project code inside), and cannot compile a project.

Thanks.

Quote from: Handoko
I confirm what RadDeveloper said is reproducible on Lazarus 2.2.2 Linux GTK2.

But that only happens on new project, so the steps to produce the issue are:
1. Start Lazarus
2. File > New > Project > Application > OK
3. Project > View Project Source
4. Close the project1.lpr tab on the Source Editor
5. Project > View Project Source
Title: Re: Lazarus Release 2.2.4
Post by: wp on October 01, 2022, 10:47:20 am
This description of steps is incomplete. I cannot close a project without either creating a new project or opening an existing one (--> Project wizard). What are you doing when the "Project wizard" shown in the attachment appears?
Title: Re: Lazarus Release 2.2.4
Post by: BrunoK on October 01, 2022, 11:00:44 am
Win 10 Lazarus >=2.2
Quote from: Handoko
I confirm what RadDeveloper said is reproducible on Lazarus 2.2.2 Linux GTK2.
4. Close the project1.lpr tab on the Source Editor
I can reproduce.
Step 4 is close tab on Source Editor, not close the project.
Title: Re: Lazarus Release 2.2.4
Post by: zeljko on October 01, 2022, 12:26:40 pm
I can confirm this issue with Qt and Qt5 under x11, so it's not gtk2 only problem - but this bug is reproducable only with newly created, unsaved project.
Title: Re: Lazarus Release 2.2.4
Post by: wp on October 02, 2022, 06:26:35 pm
Will it be surely within a 2.4?  And how to have it for (on top of) the 2.2.4?
I now made several attempts to merge the changes into the fixes branch. But since solution of these bugs has a long history there were commits that were not backported to main, some were reverted, and some were replaced by the changes that you mention, some were not. Therefore I think it is too risky to introduce other issues into the fixes branch, and I would like you to wait for the v2.4 release which will contain the current code automatically (for sure!) because it will be a snapshot of the main branch at the time when this version will be tagged.
Title: Re: Lazarus Release 2.2.4
Post by: d7_2_laz on October 02, 2022, 08:40:43 pm
wp, absolutely ok with 2.4! I'm fully aware of the complexity of this situation ... and so my main concern had been that the solution will be really part on an official release so that this long story finally does come to a good end.
With the well working files mentioned from "main" I didn't have a single problem anymore since half a year (Windows).
2000 thanks for your great support in this matter over this long time!
Title: Re: Lazarus Release 2.2.4
Post by: jonyrh on October 03, 2022, 05:08:26 am
Great news! Thank you very much for your hard work!  :)
Title: Re: Lazarus Release 2.2.4
Post by: dsiders on October 03, 2022, 08:08:06 am
I can confirm this issue with Qt and Qt5 under x11, so it's not gtk2 only problem - but this bug is reproducable only with newly created, unsaved project.

It has been reported and confirmed in Issue #39745.
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39745
Title: Re: Lazarus Release 2.2.4
Post by: Mimmo on October 03, 2022, 08:51:13 am
Thanks a lot for your work!
Title: Re: Lazarus Release 2.2.4
Post by: Lulu on October 17, 2022, 09:10:55 pm
Hi all, thanks you for this new release !
I notice a minor bug about TFrames that was already present in previous version (2.2.2).
When we put a frame on a form, the unit of the frame is not automatically inserted in the uses section by the IDE, that results in compile error. We have to do by hand.

 Lazarus 2.2.4 (rev lazarus_2_2_4) FPC 3.2.2 x86_64-win64-win32/win64

Attached a project with a main form in Unit1, a TFrame in unit frame_2. To reproduce the bug:
     - go to the Unit1 tab
     - put a TFrame on the form -> choose frame_2
     - compile.
Title: Re: Lazarus Release 2.2.4
Post by: PascalDragon on October 18, 2022, 07:22:15 am
I notice a minor bug about TFrames that was already present in previous version (2.2.2).
When we put a frame on a form, the unit of the frame is not automatically inserted in the uses section by the IDE, that results in compile error. We have to do by hand.

Has the bug been reported on the bug tracker?
Title: Re: Lazarus Release 2.2.4
Post by: Lulu on October 18, 2022, 09:07:01 am
@PascalDragon: no, I tried to do it but I can't create an account on GitLab, my email is rejected...
Title: Re: Lazarus Release 2.2.4
Post by: PascalDragon on October 19, 2022, 07:35:26 am
@PascalDragon: no, I tried to do it but I can't create an account on GitLab, my email is rejected...

Then you should talk to GitLab itself about that.
Title: Re: Lazarus Release 2.2.4 - troubles after update
Post by: Lurgainn on November 24, 2022, 06:51:46 pm
Hello,
I used version 2.2.2 of Lazarus-IDE without any problem under Xubuntu 22.10.
Today I updated to 2.2.4 using the official deb files from sourceforge.net like I always do, and the update terminated without any error.

Now, when I start Lazarus (/usr/bin/startlazarus), the splashscreen says that it's "Lazarus IDE 2.2.2", the dialog "Configure  Lazarus IDE" show the error "/usr/share/lazarus/2.2.2/" "Error: directory not found", and if I manually change to "/usr/share/lazarus/2.2.4/", the dialog show the warning "Warning: wrong version in ide/version.inc: 2.2.4".
If I ignore the warning and press "Start IDE", I get the warning "Without a proper Lazarus directory you will get a lot of warnings.", but if I ignore the warning, the IDE start without any problem, but the version info is still "2.2.2" in the window title and in the about dialog.

Did I do something wrong while updating? Or has anyone got the same problem?

Thanks for any help that anyone can give me.
Title: Re: Lazarus Release 2.2.4 - troubles after update
Post by: Martin_fr on November 24, 2022, 07:52:47 pm
Did I do something wrong while updating? Or has anyone got the same problem?

It is flaw in the upgrade code.

You probably have package installed, and therefore did rebuild your IDE (it happens as soon as you install a package).
This rebuild version is still cached and used (i.e. you still running a 2.2.2).
The newly installed 2.2.4 on the other hand has not yet those packages compiled in.

So all you need to do (after you changed that path, and ignored the warning), is from the "tools" menu: "rebuild lazarus ..."

After that it should be fine (the packages will then be part of your 2.2.4)
Title: Re: Lazarus Release 2.2.4 - troubles after update
Post by: Lurgainn on November 25, 2022, 12:37:01 am
So all you need to do (after you changed that path, and ignored the warning), is from the "tools" menu: "rebuild lazarus ..."

Thanks so much! Your tip solved the problem.
Title: Re: Lazarus Release 2.2.4
Post by: tigersoul on December 12, 2022, 03:41:23 pm
The install guide mentions compiling your own Lazarus IDE with "fixes 2.2". Is this still needed now that we're at 2.2.4?? It's not clear in the install instructions.
Title: Re: Lazarus Release 2.2.4
Post by: Bogen85 on December 12, 2022, 03:56:02 pm
@PascalDragon: no, I tried to do it but I can't create an account on GitLab, my email is rejected...

If you have a GitHub account you can use that to sign into GitLab. I likely could create a GitLab account, but I just use my GitHub account for GitLab.
Title: Re: Lazarus Release 2.2.4
Post by: Ameta on January 23, 2023, 01:45:21 pm
Thanks a lot for your work!
Title: Re: Lazarus Release 2.2.4
Post by: dssmex on February 25, 2023, 07:41:07 pm
The lazarus version 2.2.4 with fpc 3.2.2 using GTK2 under linux ARM processors sometimes the OnShow event not detonated after OnCreateForm (only in ARM Processors).

Lazarus Version:


Title: Re: Lazarus Release 2.2.4
Post by: Thaddy on February 25, 2023, 07:47:27 pm
This has nothing to do with ARM processors. Show us some code - compilable code -... Then you will get more reasonable answers.
Title: Re: Lazarus Release 2.2.4
Post by: Blaazen on February 25, 2023, 07:54:56 pm
Did you noticed that the new splash screen in trunk has no red stripe with "Project" anymore?
Title: Re: Lazarus Release 2.2.4
Post by: dssmex on February 25, 2023, 08:50:15 pm
in this version, if you put an a Tlabel (Label1 in the picture) inside of TTabsheet (TabSheet5) inside of TGroupBox inside to another TabSheet, the TPageControl with TLabel inside (TabSheet4 and TabSheet5) the TGroupbox can't change the tabs when run  the program program or  reload the project.

See th picture attached, this is in Linux with any processor
Title: Re: Lazarus Release 2.2.4
Post by: dssmex on February 25, 2023, 08:58:03 pm
This has nothing to do with ARM processors. Show us some code - compilable code -... Then you will get more reasonable answers.

Just only, New Project- add an showmessage inside of OnShow Event and run the program in a raspberry pi 4. Sometimes the code inside onshow dont do nothing.

Code: Pascal  [Select][+][-]
  1. unit unit2;
  2.  
  3. {$mode objfpc}{$H+}
  4.  
  5. interface
  6.  
  7. uses
  8.   Classes, SysUtils, Forms, Controls, Graphics, Dialogs;
  9.  
  10. type
  11.  
  12.   { TForm1 }
  13.  
  14.   TForm1 = class(TForm)
  15.     procedure FormShow(Sender: TObject);
  16.   private
  17.  
  18.   public
  19.  
  20.   end;
  21.  
  22. var
  23.   Form1: TForm1;
  24.  
  25. implementation
  26.  
  27. {$R *.lfm}
  28.  
  29. { TForm1 }
  30.  
  31. procedure TForm1.FormShow(Sender: TObject);
  32. begin
  33.    ShowMessage('OnShow Work!');
  34.  
  35.    close;
  36. end;
  37.  
  38. end.  
  39.  
Title: Re: Lazarus Release 2.2.4
Post by: Thaddy on February 25, 2023, 10:07:51 pm
Remove the close, because ShowMessage is not modal. That goes for every platform btw.
Title: Re: Lazarus Release 2.2.4
Post by: dssmex on February 26, 2023, 01:40:36 am
Remove the close, because ShowMessage is not modal. That goes for every platform btw.

This happen with or without close.
Title: Re: Lazarus Release 2.2.4
Post by: Bart on February 26, 2023, 01:55:34 pm
... because ShowMessage is not modal. That goes for every platform btw.

I probalbly misunderstand you here, but ShowMessage shows a modal dialog on all platforms AFAIK.

Bart
Title: Re: Lazarus Release 2.2.4
Post by: Thaddy on February 26, 2023, 02:28:43 pm
On Linux it is not modal, as you can see from the emalgamation of popups while using -glh.
That should not happen if ShowMessage was modal.
Title: Re: Lazarus Release 2.2.4
Post by: PascalDragon on February 26, 2023, 08:19:36 pm
ShowMessage is supposed to be modal, because it's only supposed to return once the dialog window is closed. This means that (per thread) there can only be one such window open.
Title: Re: Lazarus Release 2.2.4
Post by: Thaddy on February 26, 2023, 08:24:07 pm
Which isn't the case on Linux/gtk2..
I know all that.

A modal Window should halt execution before any other code gets executed in the same thread.
Title: Re: Lazarus Release 2.2.4
Post by: Bart on February 26, 2023, 10:57:59 pm
Which isn't the case on Linux/gtk2..
Which makes both of us wrong.
You: stating that ShowMessage is, on every platform, not modal.
Me: stating it is modal.
But you seem to be worng on more platforms than I. So, I win  O:-)

Bart
Title: Re: Lazarus Release 2.2.4
Post by: dalfy on March 18, 2023, 05:44:07 pm
Hello.
Where can I place a proposal for the FPDoc documentation module?
Suggestion: after renaming the variable (by F2), as well rename the variables in the xml file.
Title: Re: Lazarus Release 2.2.4
Post by: Okoba on March 18, 2023, 06:01:15 pm
You should create a feature request at https://gitlab.com/groups/freepascal.org/lazarus/-/issues
Title: Re: Lazarus Release 2.2.4
Post by: dalfy on March 19, 2023, 12:36:07 pm
You should create a feature request at https://gitlab.com/groups/freepascal.org/lazarus/-/issues

Thanks!
Title: Re: Lazarus Release 2.2.4
Post by: omurolmez on May 09, 2023, 04:05:22 pm
Thank you for your great effort !
Using Lazarus and seeing its development day by day is such a joy.
TinyPortal © 2005-2018