Author Topic: Lazarus Release 4.0  (Read 119640 times)

dsiders

  • Hero Member
  • *****
  • Posts: 1740
Re: Lazarus Release 4.0
« Reply #135 on: June 09, 2025, 09:01:04 pm »
@mattias
Is this a bug on TCalendar control? Please, check out the attached animated gif.

Cute. Now what are you trying to demonstrate?

n7800

  • Hero Member
  • *****
  • Posts: 811
  • Lazarus IDE contributor
    • GitLab profile
Re: Lazarus Release 4.0
« Reply #136 on: June 09, 2025, 09:22:56 pm »
@mattias
Is this a bug on TCalendar control? Please, check out the attached animated gif.

Cute. Now what are you trying to demonstrate?

When changing the component properties, its size changes, and grabbers (dots for resizing) show the old size, and the component is not clickable in the expanded area.

I can reproduce in Lazarus 4.0 and in trunk. With and without the DockedFormEditor package.

@AsleyCruz, can you create a report on the bug tracker?

bobby100

  • Sr. Member
  • ****
  • Posts: 301
    • Malzilla
Re: Lazarus Release 4.0
« Reply #137 on: June 21, 2025, 12:50:24 pm »
In older versions of Lazarus, you could use mixed-case filenames in your projects on Linux. You could manually edit the LPI file to match the mixed-case filenames.
With the Lazarus 4.0, this doesn't work anymore. The linker will complain about incompatible ppu files. It only works if you rename the files to lower-case, and also have the LPI file matching the lower-case file names.

Please reconsider this. I do not like my files in all-lowercase, and I do not see a reason to force it all to lower-case in Lazarus

WooBean

  • Sr. Member
  • ****
  • Posts: 312
Re: Lazarus Release 4.0
« Reply #138 on: June 21, 2025, 01:10:44 pm »
In older versions of Lazarus, you could use mixed-case filenames in your projects on Linux. You could manually edit the LPI file to match the mixed-case filenames.
...

Please reconsider this. I do not like my files in all-lowercase, and I do not see a reason to force it all to lower-case in Lazarus

First of all, manually editing an .lpi  file is asking for a trouble. Everybody can ask for, of course.

As for the second part, play around settings from Tools/Options/IDE Options/Environment/Naming.

« Last Edit: June 21, 2025, 01:14:40 pm by WooBean »
Platforms: Win7/64, Linux Mint 22.1 Xia

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12820
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release 4.0
« Reply #139 on: June 21, 2025, 01:20:04 pm »
In older versions of Lazarus, you could use mixed-case filenames in your projects on Linux. You could manually edit the LPI file to match the mixed-case filenames.
With the Lazarus 4.0, this doesn't work anymore. The linker will complain about incompatible ppu files. It only works if you rename the files to lower-case, and also have the LPI file matching the lower-case file names.

I haven't tested... Nor is it my area of expertise...

But what are the errors you get? Sounds like compiler? Then that shouldn't be about anything in the lpi... Except for the main LPR project file (or the main unit of a package).


My understanding at least is:

When compiling (and the above seems a compiler error), then the IDE hands only the "main" filename to the compiler (that is the lpr, or the file that contains "program ..." or "library ..." / or it is the main unit of a package).

All other files/units are found by the compiler, or at least afaik that is what should be. As long as any include path has the correct upper lower case.

Afaik (and you can check by compiling with -va) the compiler uses the name from the "uses" clause (or the $I include directive).
The compiler should afaik try
- the exact upper/lower mix as given in the uses
- all lower
- afaik (?) all upper


dsiders

  • Hero Member
  • *****
  • Posts: 1740
Re: Lazarus Release 4.0
« Reply #140 on: June 21, 2025, 02:55:08 pm »
In older versions of Lazarus, you could use mixed-case filenames in your projects on Linux. You could manually edit the LPI file to match the mixed-case filenames.
With the Lazarus 4.0, this doesn't work anymore. The linker will complain about incompatible ppu files. It only works if you rename the files to lower-case, and also have the LPI file matching the lower-case file names.

Please reconsider this. I do not like my files in all-lowercase, and I do not see a reason to force it all to lower-case in Lazarus

Mixed case file names still work. It just requires the file name and the unit statement in the source file to have the same case.

bobby100

  • Sr. Member
  • ****
  • Posts: 301
    • Malzilla
Re: Lazarus Release 4.0
« Reply #141 on: June 21, 2025, 06:10:58 pm »
Tried installing delphi-modbus package under Linux today ( https://github.com/coassoftwaresystems/delphi-modbus ). File names and unit names/statement are both mixed-case and exact match of each other.
Compiling the package goes without any error. At installing (rebuilding the IDE) it comes to an error from the linker - the generated ppu file in lib directory is incompatible. The ppu file is also generated with mixed-case name.
After renaming all the source files to lower-case, and also editing the file names inside the lpi file to lower-case, rebuilding the IDE went through.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4760
  • I like bugs.
Re: Lazarus Release 4.0
« Reply #142 on: June 21, 2025, 09:35:05 pm »
... an error from the linker - the generated ppu file in lib directory is incompatible...
This typically means there is another .ppu file with the same name somewhere in the FPC search path. The error message is misleading.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 317
Re: Lazarus Release 4.0
« Reply #143 on: June 22, 2025, 11:53:52 am »
Loving the new version. However, there is an issue...well, a few.

First: start with a new project, then add a component onto the form. In previous versions, the code would be updated so that it was listed under the type definition for the form. In version 4, I need to add this in myself, otherwise I can't use the compenent, or rename it.

Second: Still on the new project, I add an event. I get an error thrown up in the messages "Identifier not found: TObject". I close the unit which gets opened with the error and I try and add the event again...which this time worked, but not always.

This also happens with established projects, not just new ones.

I'm using version 4, obviously, on macOS 15.5 running the ARM version. I never removed the old FPC install when I moved from version 3.0 - just the 3.0 install folder.

Apart from that, it seems to work fine. Compiles and runs my code. There are a few other niggly bits, but I'll report on these when I can repeat them.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4760
  • I like bugs.
Re: Lazarus Release 4.0
« Reply #144 on: June 22, 2025, 05:20:55 pm »
The first and second cases mean you have some local corruption issue. A clean install (uninstalling first) could help.
Such basic things work well in version 4.0.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

ManoelJr

  • Newbie
  • Posts: 1
Re: Lazarus Release 4.0
« Reply #145 on: July 16, 2025, 08:35:45 pm »
Congratulations to the entire Lazarus team for another great release of this wonderful IDE.
Thanks to everyone for sharing this tool.

Nicole

  • Hero Member
  • *****
  • Posts: 1341
Re: Lazarus Release 4.0
« Reply #146 on: July 17, 2025, 10:26:25 pm »
Here too: A huge thank you to the team. I love working with it.

snowonthetree

  • Newbie
  • Posts: 1
Re: Lazarus Release 4.0
« Reply #147 on: October 13, 2026, 02:30:16 pm »
Congratulations, very nice version! I have windows and linux in dual boot, both with dark theme. on linux lazarus adapts to the theme, on windows it remains light. is this normal?

Yes, it is normal. If you want to have dark IDE on Windows, you have two options.



1. Install MetaDarkStyle package

As suggested by @Hansvb, install the MetaDarkStyle package, go to the IDE Options window, on the left side select the Environment/Dark style branch, in comboboxes choose Force dark and Dark respectively, save changes and reboot the IDE — from now the IDE will be dark.

This package is not ideal, it has few small bugs and glitches, but in overall it is great. I'm using it for a long time and I'm very happy that it is available to use freely. Of course you can use this package in you own projects, if you want them to have dark theme (or your own theme, with custom color palette).



2. Build Lazarus using Qt

You can open Lazarus project and change the widgetset to Qt. You will need Qt libraries to download and place them in the same folder as the Lazarus executable file, and add some code to the Lazarus project to enable dark theme. More work but it can be done easily. The downside is that Qt is slower than the native win32 interface, so the IDE will work slightly slower.

Some time ago I've tested this solution, Lazarus build with Qt widgetset. Worked fine, looked fine, but it worked slower so I've never tried to enable dark theme — I just went back to the win32 widgetset and MetaDarkStyle. If you need inspiration with changing colors for Qt application, check this post.
Actually, there's a third one. In case you just want a dark-theme IDE on Windows 10/11. As far as I understand, it doesn't support Linux/Mac, but at least for me, the man who works mostly at night, this one is a more preferred option. A simple package with a bundled Dark Editor theme called Delphi Dark.

n7800

  • Hero Member
  • *****
  • Posts: 811
  • Lazarus IDE contributor
    • GitLab profile
Re: Lazarus Release 4.0
« Reply #148 on: October 14, 2026, 08:38:32 am »
@mattias
Is this a bug on TCalendar control? Please, check out the attached animated gif.

Cute. Now what are you trying to demonstrate?

When changing the component properties, its size changes, and grabbers (dots for resizing) show the old size, and the component is not clickable in the expanded area.

I can reproduce in Lazarus 4.0 and in trunk. With and without the DockedFormEditor package.

@AsleyCruz, can you create a report on the bug tracker?

I opened a issue on the bug tracker: https://gitlab.com/freepascal.org/lazarus/lazarus/-/work_items/42655

 

TinyPortal © 2005-2018