Recent

Author Topic: Lazarus Bugfix Release 4.4  (Read 16213 times)

massarojau

  • Newbie
  • Posts: 1
Re: Lazarus Bugfix Release 4.4
« Reply #15 on: November 14, 2025, 12:17:05 pm »
Fico feliz em ter saido a versão nova do lazarus que ja quando sai a nova versão já instalo no mesmo dia.
Quero perguntar sobre a questão do debugador do lazarus que não funciona igual ao do delphi tem algo que possa ser configurado ou melhorado ?
Gostaria de algum jeito poder ajudar.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11923
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Bugfix Release 4.4
« Reply #16 on: November 14, 2025, 12:24:59 pm »
Fico feliz em ter saido a versão nova do lazarus que ja quando sai a nova versão já instalo no mesmo dia.
Quero perguntar sobre a questão do debugador do lazarus que não funciona igual ao do delphi tem algo que possa ser configurado ou melhorado ?
Gostaria de algum jeito poder ajudar.

Please use English on the forum. You can use public translation tools.

"lazarus debugger that does not work the same as that of delphi" => If you mean "properties": That is an issue that must be fixed in the FPC compiler first. IIRC there are some older forum posts with some explanation.

jwdietrich

  • Hero Member
  • *****
  • Posts: 1266
    • formatio reticularis
Re: Lazarus Bugfix Release 4.4
« Reply #17 on: November 15, 2025, 01:54:34 pm »
Thanks again. The new version works excellently.

I repeat my advice for Mac users to mark the downloaded zip archive as safe before decompressing. This is possible with the subsequent terminal command:

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

This step avoids that you receive a message that the app "Lazarus" is damaged and cannot be executed.
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

bobihot

  • New Member
  • *
  • Posts: 44
Re: Lazarus Bugfix Release 4.4
« Reply #18 on: November 16, 2025, 10:56:39 pm »
Thanks.
I again can`t to compile with some additional components. On Laz 4.20 From some time after apear I was can to install him?

I don't know about the error message, the folder looks correct, so I wouldn't expect to need to "clean up ideintf" => but hard to say, without reproducing it (and I am not going to download it now).

I found a version of the package => https://github.com/fluisgirardi/pascalscada_v0/blob/master/pascalscada.lpk

If it is this, then in the required section, I do not see the "IdeIntf" package. It could be required indirectly, I tried to trace the nested requirements... I didn't see it, but could have missed it.

Have you tried adding it? As requirement for the package? (If it is indeed missing, then thats for the author to add)
I have this package as part of Lazarus?
/usr/share/lazarus/4.4.0/components/ideintf/propedits.pp

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11923
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Bugfix Release 4.4
« Reply #19 on: November 16, 2025, 11:13:42 pm »
I have this package as part of Lazarus?
/usr/share/lazarus/4.4.0/components/ideintf/propedits.pp

That is not what I meant.

You are using PascalScada, do you?

I don't know if there are different versions of that available. And I don't have it myself. But the one PascalScada that I saw on the internet, seems (from what I saw / I may be mistaken) to have something missing.
=> That is, if the link I posted is correct. The lpk files on that link don't seem to include

In the Lazarus IDE go to the main menu entry "Packages" => "Open package"
Or you can try "open loaded package", I am not sure, but maybe that will work too.

Open the package pascalscada_db (and maybe other pascalscada packages need that too).

A window will open that says "Package pascalscada_db", it has an "Add" button, with a drop down. From that dropdown select "New requirement". That opens another Window and you can select "IdeIntf" and add it.

-------------
If the above is what needs done, then the author of PascalScada needs to fix that.
If it is not, then sorry I was mistaken.



mgc

  • New Member
  • *
  • Posts: 14
Re: Lazarus Bugfix Release 4.4
« Reply #20 on: November 17, 2025, 09:04:30 pm »
I tried to install Lazarus 4.4 in two diferrent computers, but in the first use gives an error and the old 2.2 version is installed instead.

dsiders

  • Hero Member
  • *****
  • Posts: 1496
Re: Lazarus Bugfix Release 4.4
« Reply #21 on: November 17, 2025, 10:39:39 pm »
I tried to install Lazarus 4.4 in two diferrent computers, but in the first use gives an error and the old 2.2 version is installed instead.

Since you provided zero information about your OS or installation method, all we could do is guess.

Lazarus Version 2.2.2 was released in 2022. You might consider using a more modern OS with updated repositories. Or install from SourceForge. Or install using fpcupdeluxe.
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

uganof

  • New Member
  • *
  • Posts: 11
Re: Lazarus Bugfix Release 4.4
« Reply #22 on: November 18, 2025, 04:11:22 pm »
Hi, on Ubuntu 24.04.3,
if I enable the docking IDE every time I open Lazarus, it doesn't restore the position of the main window and the docked windows.
If I reinstall version 4.2, it works, but with 4.4, it doesn't.
Does anyone have any idea what I can do?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11923
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Bugfix Release 4.4
« Reply #23 on: November 18, 2025, 04:43:13 pm »
Hi, on Ubuntu 24.04.3,
if I enable the docking IDE every time I open Lazarus, it doesn't restore the position of the main window and the docked windows.
If I reinstall version 4.2, it works, but with 4.4, it doesn't.
Does anyone have any idea what I can do?

Not my area of expertise, especially if it worked with 4.2.

But (as a long shot) have you tried "save current desktop" once before you close the IDE?

Also, run the IDE from a console, and see if it outputs any errors.

Ameta

  • Newbie
  • Posts: 6
Re: Lazarus Bugfix Release 4.4
« Reply #24 on: November 19, 2025, 08:35:18 am »
Thanks!!!

fozkan

  • New member
  • *
  • Posts: 8
Re: Lazarus Bugfix Release 4.4
« Reply #25 on: November 19, 2025, 09:14:38 am »
Hi, on Ubuntu 24.04.3,
if I enable the docking IDE every time I open Lazarus, it doesn't restore the position of the main window and the docked windows.
If I reinstall version 4.2, it works, but with 4.4, it doesn't.
Does anyone have any idea what I can do?

I am not sure if it is directly related to v4.4 . It happens to me sometimes when I use multi screen with different scale rate, Lazarus default docking scheme gets broken and after reinstalling Lazarus the problem is fixed. For this issue, my solution is after fresh install saving the current scheme with Tools->Desktops-> default docked -> Export and then when it gets broken again I import that back .

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 273
Re: Lazarus Bugfix Release 4.4
« Reply #26 on: November 21, 2025, 07:56:25 pm »
And still the bug remains where you add a component to a form and then have to add the reference to it yourself. As well as trying to add an action (e.g., OnClick) and getting an error message "TObject not found".

macOS 15 on an M2 (ARM)

It's the same in 4.0 and 4.2, and gets really annoying. Oh, and it's not just me that experiences this problem.

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 273
Re: Lazarus Bugfix Release 4.4
« Reply #27 on: November 22, 2025, 12:22:42 pm »
In fact, can someone remind me how to report this as a bug please?
It's getting really silly now - having to manually edit the LFM file just to add or change an 'OnClick' handler for a control.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11923
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Bugfix Release 4.4
« Reply #28 on: November 22, 2025, 01:15:09 pm »
In fact, can someone remind me how to report this as a bug please?
It's getting really silly now - having to manually edit the LFM file just to add or change an 'OnClick' handler for a control.

https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues?sort=created_date&state=opened&first_page_size=100

- Include any packages/add ons that you may have installed
- Include if you use Anchordock and/or docked form editor.
- Check the "messages window" for any output, when you work with the designer and it fails.

As for your original question: Mac isn't my domain (nor is the form designer), so I can't answer that.

If you use Anchordock and/or docked form editor => try without them. Just to make sure neither of them is triggering the issue.

If you can, start the IDE from a console (so it can write to StdOut). Check if it prints anything to the console if the errors happen.

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 273
Re: Lazarus Bugfix Release 4.4
« Reply #29 on: November 22, 2025, 02:01:30 pm »
Thank you for the link and tips.
Unfortunately, turning off the anchor dock and docking forms did not change anything. Same result.
Started Lazarus from Terminal:
Code: Pascal  [Select][+][-]
  1. geraldholdsworth@Geralds-MacBook-Pro Lazarus 4 % ./lazarus
  2. SetPrimaryConfigPath NewValue="/Users/geraldholdsworth/Lazarus 4/config"
  3. Hint: (lazarus) Using config file: "/Users/geraldholdsworth/Lazarus 4/lazarus.cfg"
  4. Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/Users/geraldholdsworth/Lazarus 4/config"
  5. Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus"
  6. Hint: (lazarus) [TMainIDE.LoadGlobalOptions] overriding Lazarusdir with command line: /Users/geraldholdsworth/Lazarus 4/
  7. Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=aarch64-darwin--cocoa New=aarch64-darwin--cocoa Changed: OS/CPU=True LCL=False
  8. ### TCodeToolManager.HandleException: [20170421194936] "no pascal code found (first token is )" in "unit1.pas"
  9. TCocoaWidgetSet.GetSystemMetrics TODO 32
  10. TCocoaWidgetSet.GetSystemMetrics TODO 33
  11. TCocoaWidgetSet.GetSystemMetrics TODO 4
  12. ----------------
  13. Hint: (lazarus) [TPkgManager.AddUnitDepsForCompClasses] Extending Uses unit1.pas StdCtrls
  14. ### TCodeToolManager.HandleException: [20170421200105] "identifier not found: TGUID" at Line=35 Col=35 in "/Users/geraldholdsworth/Lazarus 4/fpc/3.2.2/sources/rtl/objpas/sysutils/syshelph.inc"
  15. ### TCodeToolManager.HandleException: [20170421200105] "identifier not found: TObject" at Line=429 Col=23 in "/Users/geraldholdsworth/Lazarus 4/fpc/3.2.2/sources/rtl/objpas/classes/classesh.inc"
  16. ******** Highlighter.NeedScan ************
  17. TCocoaWidgetSet.GetSystemMetrics TODO 4
  18. TCocoaWidgetSet.GetSystemMetrics TODO 33
  19. TCocoaWidgetSet.GetSystemMetrics TODO 8
  20. LAZARUS END - cleaning up ...
  21. FreeFormEditor: FormEditor1=TFormEditor
  22. Hint: (lazarus) [TMainIDE.Destroy] B  -> inherited Destroy... TMainIDE
  23. Hint: (lazarus) [TMainIDE.Destroy] END
  24. TCocoaWidgetSet.DeleteObjectError - GDIObject: TCocoaFont is still selected!
  25. TCocoaWidgetSet.DeleteObjectError - GDIObject: TCocoaFont is still selected!
  26. TCocoaWidgetSet.DeleteObjectError - GDIObject: TCocoaFont is still selected!
  27. TCocoaWidgetSet.DeleteObjectError - GDIObject: TCocoaFont is still selected!
  28. TCocoaWidgetSet.DeleteObjectError - GDIObject: TCocoaFont is still selected!
First Exception is me adding a TButton to a new form in a new project.
Second Exception is me adding an OnClick event to the TButton.
And, yes, I've tried uninstalling both Lazarus and FPC and reinstalling them from scratch. I currently have both 4.2 and 4.4 installed (although the problem existed when there was just the one install), and both are vanilla installs (direct download from GitLab and then installed). Same with FPC 3.2.2. There's a few other things that have been suggested (I did start a thread about this over in the macOS section of the forum, which is where I found out I'm not alone in this).

 

TinyPortal © 2005-2018