Recent

Author Topic: Lazarus Release Candidate 2 of 3.0  (Read 54538 times)

dbannon

  • Hero Member
  • *****
  • Posts: 2751
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Candidate 2 of 3.0
« Reply #90 on: November 28, 2023, 06:20:12 am »
Before release, I'd like people to consider this issue -
https://forum.lazarus.freepascal.org/index.php/topic,65348.msg497909.html#msg497909

At present, a number of Linux distros will not display a usable GTK2 TrayIcon without setting an Env Var. Many users find this a challenge. List includes any KDE box and any current 32bit debian, probably lots of others.

I am proposing the addition of a Global Var to /lcl/interfaces/gtk2/unityctrls.pas that will allow the programmer to override some default decisions.

Putting the override code into UnityCTRL (or gtk2wsfactory) is inappropriate as the "what works" situation will change many times between now and the next major release of of Lazarus. Globals are ugly but this one will only be there for gtk2 using programmers who want to use it (by use unitctrls) and the default behavior now will happen for the not so interested programmer.

However, I personally hate a solution that uses a Global Variable and are posting first to the forum rather that bug tracker in case someone can suggest a better way.

As well as the patch (targeting two files in /lcl/interfaces/gtk2) there is also a small demo program that shows a simple use of that global, the inventive programmer can do lots better.

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

furious programming

  • Hero Member
  • *****
  • Posts: 819
Re: Lazarus Release Candidate 2 of 3.0
« Reply #91 on: November 28, 2023, 03:21:01 pm »
I believe this is a bug in Metadarkstyle instead as I'm hit with the same issue but it's fine if I remove the package.

If you strongly suspect that there is a bug in the metadarkstyle package, please go to the repository and file an issue — https://github.com/zamtmn/metadarkstyle
Lazarus 3.0 with FPC 3.2.2, Windows 10 — all 64-bit

Working solo on an acrade, action/adventure game in retro style (pixelart), programming the engine and shell from scratch, using Free Pascal and SDL. Release planned in 2026.

AlexTP

  • Hero Member
  • *****
  • Posts: 2357
    • UVviewsoft
Re: Lazarus Release Candidate 2 of 3.0
« Reply #92 on: November 30, 2023, 10:01:08 pm »
I found a bug, seems a regression in Lazarus 'main'. on macOS.
https://github.com/Alexey-T/CudaText/issues/5297

Don't release yet.
I don't have small repro program.

AlexTP

  • Hero Member
  • *****
  • Posts: 2357
    • UVviewsoft
Re: Lazarus Release Candidate 2 of 3.0
« Reply #93 on: December 01, 2023, 04:15:12 pm »
Above message: bug is also in 'fixes_3_0'. So pls don't release until I find the reason.

dedrasta

  • Newbie
  • Posts: 6
Re: Lazarus Release Candidate 2 of 3.0
« Reply #94 on: December 01, 2023, 06:17:59 pm »
I installed Lazarus3.0RC2 under Astra Linux (derivative of Debian, GTK2). When I create new application and start it the window of the form is randomly resized until application is closed. When I compile this application with Lazarus 2.2.6 (after manually deleting SnapOptions from unit1.lfm file) all is well.

dbannon

  • Hero Member
  • *****
  • Posts: 2751
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Candidate 2 of 3.0
« Reply #95 on: December 02, 2023, 04:50:07 am »
I installed Lazarus3.0RC2 under Astra Linux (derivative of Debian, GTK2). .....
The Desktop may be more interesting that the Distro. What Desktop are you using please ?

And I guess you installed from the deb packages in SourceForge ?

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

rossh_lz

  • New Member
  • *
  • Posts: 21
Re: Lazarus Release Candidate 2 of 3.0
« Reply #96 on: December 02, 2023, 10:19:26 am »
On MacOS, M1 but using x86_64 binary.

Bare bones new install - all previous version hidden and deleted.

Tried a IDE Normal rebuild (default platform (x86_64]) - getting failures with IDE packages and linking.  So far: DateTimeCtrl.lpk - can't find an included file  ....    I load the package lpk and it compiles on its own, and try Install build IDE... same issue.. complains about path issues.  (should it know where its packages are)?   OK  Remove package from IDE....  It compiles a few more added packages and then the next fault.   Does all the same with ihelpcontrol package.... remove it, build again.   Onto next fault.   Now it wants the missing path to uSPR_stdctrls.pas....     I give up.

Delete ~/.lazarus/ and try a target build of aarch64 of the Normal IDE...  After package Pas2JSDesign completes, I get error  can't mkdir ../units/aarch64-darwin.    These errors I have seen before, where the script is trying to create files under /usr/... when its supposed to be doing this under ~/Lazarus/..  or /Applications/..   I give up again.

Hope this helps. 

UPDATE:   Looks to be an installer problem - not setting the permissions on new created folders/ files.  With a fresh install, my /Applications/Lazarus  has its owner set to 503, and all folders within.

« Last Edit: December 03, 2023, 03:32:30 pm by rossh_lz »

dedrasta

  • Newbie
  • Posts: 6
Re: Lazarus Release Candidate 2 of 3.0
« Reply #97 on: December 03, 2023, 09:52:02 am »
The Desktop may be more interesting that the Distro. What Desktop are you using please ?

And I guess you installed from the deb packages in SourceForge ?

David

Thank you for your kind answer.

Astra Linux uses its own desktoptop named Fly, derivative of KDE.

I installed Lazarus both from the deb packages from SourceForge and by the way of fpcupdeluxe installer. Result was the same with both ways of istallation: normal behavior with Lazarus 2.2.6 and random resizing of form window with Lazarus3.0RC2.
I attemted to change SnapOption parameters but it did not helped.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4455
  • I like bugs.
Re: Lazarus Release Candidate 2 of 3.0
« Reply #98 on: December 03, 2023, 03:45:51 pm »
Astra Linux uses its own desktoptop named Fly, derivative of KDE.

I installed Lazarus both from the deb packages from SourceForge and by the way of fpcupdeluxe installer. Result was the same with both ways of istallation: normal behavior with Lazarus 2.2.6 and random resizing of form window with Lazarus3.0RC2.
I attemted to change SnapOption parameters but it did not helped.
Did you test with a Lazarus IDE built for LCL-QT5 widgetset? KDE itself uses QT5, thus it may work better.
The default widgetset is LCL-GTK2.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

af0815

  • Hero Member
  • *****
  • Posts: 1280
Re: Lazarus Release Candidate 2 of 3.0
« Reply #99 on: December 03, 2023, 08:34:01 pm »
normal behavior with Lazarus 2.2.6 and random resizing of form window with Lazarus3.0RC2.
I see some problems with resizing of forms if i do as cross-compile from Windows to arm-linux. With 2.2.6 normal with Lazarus 3.0RC1 and RC2 problems if the form have no handle for resizing configured, but i am actual working on a demo to see this issue.
regards
Andreas

dbannon

  • Hero Member
  • *****
  • Posts: 2751
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Candidate 2 of 3.0
« Reply #100 on: December 04, 2023, 06:20:20 am »
....
Astra Linux uses its own desktoptop named Fly, derivative of KDE.

Could you please make the simplest app that you can demonstrate this problem with and zip up and post the binary so I can test it ?  Nice to establish if the problem is a matter of where its built or where its run.

I cannot demonstrate that issue on the two KDE VMs I have running at the moment. Not sure how I'd go installing a Astra VM given its provenance. Still,maybe.

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

dedrasta

  • Newbie
  • Posts: 6
Re: Lazarus Release Candidate 2 of 3.0
« Reply #101 on: December 04, 2023, 05:39:19 pm »
....
Astra Linux uses its own desktoptop named Fly, derivative of KDE.

Could you pee lease make the simplest app that you can demonstrate this problem with and zip up and post the binary so I can test it ?  Nice to establish if the problem is a matter ofhttps://dl.astralinux.ru/astra/stable/2.12_x86-64/iso/Today I ins where its built or where its run.

I cannot demonstrate that issue on the two KDE VMs I have running at the moment. Not sure how I'd go installing a Astra VM given its provenance. Still,maybe.

Davo

Free version of Astra Linux is available here: https://dl.astralinux.ru/astra/stable/2.12_x86-64/iso/

Today I installed it in VirtualBox, then installed Lazarus3.0RC2 from deb. Then I started Lazarus, selected 'New Project', 'Application', 'Run' and  manually resised the form. Size of the form  changed by jerks. I tried to send packed project in the attachment but it is too big. Tomorrow I'l save it without debugging


dbannon

  • Hero Member
  • *****
  • Posts: 2751
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Candidate 2 of 3.0
« Reply #102 on: December 05, 2023, 07:24:07 am »
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

dedrasta

  • Newbie
  • Posts: 6
Re: Lazarus Release Candidate 2 of 3.0
« Reply #103 on: December 05, 2023, 07:12:42 pm »
.
Could you please make the simplest app that you can demonstrate this problem with and zip up and post the binary so I can test it ?  Nice to establish if the problem is a matter of where its built or where its run.

I cannot demonstrate that issue on the two KDE VMs I have running at the moment. Not sure how I'd go installing a Astra VM given its provenance. Still,maybe.

Davo

Here it is (not so much of it but it is jerking all right)

dbannon

  • Hero Member
  • *****
  • Posts: 2751
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Candidate 2 of 3.0
« Reply #104 on: December 05, 2023, 11:18:03 pm »
dedrasta, sorry mate, I was not clear.

I wanted you to zip up the binary, ideally one without the debugging to keep it small. I want to test if the problem is being caused by being built on your machine or being run on your machine.

You have sent me the source code and the libs dir.

Please build your little project again, tar or zip up just the file "project1" and put it somewhere I can grab it. Google drive, dropbox, what ever you use.  You will not be able to post it here because it will still be too big.

Just for the record, when you want to send someone just the source for the project, good tool to use is, from the IDE, Project->Publish - that will make a zip with just the necessary files, no binary and no lib. So, very small.  But thats NOT what we are trying to do here.

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

 

TinyPortal © 2005-2018