Recent

Author Topic: Lazarus Release 4.0  (Read 81170 times)

dsiders

  • Hero Member
  • *****
  • Posts: 1452
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?
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

n7800

  • Sr. Member
  • ****
  • Posts: 399
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: 291
    • 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: 291
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: 11446
  • 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: 1452
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.
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

bobby100

  • Sr. Member
  • ****
  • Posts: 291
    • 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: 4599
  • 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

  • Full Member
  • ***
  • Posts: 234
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: 4599
  • 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.

 

TinyPortal © 2005-2018