Recent

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

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11901
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Bugfix Release 4.4
« Reply #30 on: November 22, 2025, 02:29:35 pm »
The codetoolmanager errors might be of interest and should be reported with the issue.


IIRC, the "no pascal code found " was mentioned before, but I don't recall details.
Not sure if/how it was resolved.

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 273
Re: Lazarus Bugfix Release 4.4
« Reply #31 on: November 22, 2025, 02:48:44 pm »
I've opened an issue in the bug reporter with that output, and also a link to the thread I started.

I'm assuming that the "no pascal code found" is due to there not being a project open when I started the application. It's actually the first time I'd seen that, as it doesn't show up when starting from the GUI.

EganSolo

  • Sr. Member
  • ****
  • Posts: 388
Re: Lazarus Bugfix Release 4.4
« Reply #32 on: November 30, 2025, 03:48:07 am »
I still can’t find a simple reproducible way to report this bug:
Windows 11
Laz 4.4 docked
Two Windows open: the main one with the editor and an assortment of other panels, such as code explorer, project group, project, components, and messages. The second window has only a tabbed editor.

Bug: (minor) While the cursor is in an editor in the second window, the compiler icon (green arrow) is grayed. Further, sorting lines won’t work, meaning the modal dialog for sorting won’t pop up. Workaround: move the file to the primary window.

This bug is not systematic. Some event provokes it, and I haven’t found out just yet what that event is ...

dsiders

  • Hero Member
  • *****
  • Posts: 1491
Re: Lazarus Bugfix Release 4.4
« Reply #33 on: November 30, 2025, 04:05:25 am »
I still can’t find a simple reproducible way to report this bug:
Windows 11
Laz 4.4 docked
Two Windows open: the main one with the editor and an assortment of other panels, such as code explorer, project group, project, components, and messages. The second window has only a tabbed editor.

Bug: (minor) While the cursor is in an editor in the second window, the compiler icon (green arrow) is grayed. Further, sorting lines won’t work, meaning the modal dialog for sorting won’t pop up. Workaround: move the file to the primary window.

This bug is not systematic. Some event provokes it, and I haven’t found out just yet what that event is ...

Did you miss this part?

Code: Text  [Select][+][-]
  1. macOS 15 on an M2 (ARM)
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

trom

  • New Member
  • *
  • Posts: 10
Re: Lazarus Bugfix Release 4.4
« Reply #34 on: November 30, 2025, 09:07:54 am »
Lazarus 4.4 can no longer generate a new LAMW [GUI] Android module (0.8.6.4) Project

Error : List of index (5) out of bound.

I'm on win11, lazarus 4.4 i386 fpc 3.2.2

Best regard






jamie

  • Hero Member
  • *****
  • Posts: 7382
Re: Lazarus Bugfix Release 4.4
« Reply #35 on: November 30, 2025, 11:27:05 am »
You need to open the sources and track it.

It's possible things got recompiled with RangeCheck on and there is code that goes outside a range check but would otherwise be ok.

 Or there is some code that didn't predict a shortens of an array due to some resources unexpectedly not available.!

Jamie
The only true wisdom is knowing you know nothing

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11901
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Bugfix Release 4.4
« Reply #36 on: November 30, 2025, 12:58:03 pm »
I still can’t find a simple reproducible way to report this bug:
Windows 11
Laz 4.4 docked
Two Windows open: the main one with the editor and an assortment of other panels, such as code explorer, project group, project, components, and messages. The second window has only a tabbed editor.

Bug: (minor) While the cursor is in an editor in the second window, the compiler icon (green arrow) is grayed. Further, sorting lines won’t work, meaning the modal dialog for sorting won’t pop up.

The icon, as well as the enabled state of "sort selection" (only enabled if a selection exists) are updated in OnIdle handlers  (and, not sure, maybe only in the past, when the main-ide-bar got focused??).
Calling "sort" (even via keyboard) might do nothing, if the item is disabled.

So one possibility would be that the idle handler is blocked. But no idea why/how => unless your system is running at constant load (not 100% but one cpu core at 100, so depending on how many cores you have, that is a different percentage).

The updates also (maybe??) require that there was user input. There is a handler too, and it sets a flag. Every keypress and mouse move should trigger that... Again: should. Again: no idea.

EganSolo

  • Sr. Member
  • ****
  • Posts: 388
Re: Lazarus Bugfix Release 4.4
« Reply #37 on: Today at 09:40:12 am »
Quote
The icon, as well as the enabled state of "sort selection" (only enabled if a selection exists) are updated in OnIdle handlers  (and, not sure, maybe only in the past, when the main-ide-bar got focused??).
Calling "sort" (even via keyboard) might do nothing, if the item is disabled.

So one possibility would be that the idle handler is blocked. But no idea why/how => unless your system is running at constant load (not 100% but one cpu core at 100, so depending on how many cores you have, that is a different percentage).

The updates also (maybe??) require that there was user input. There is a handler too, and it sets a flag. Every keypress and mouse move should trigger that... Again: should. Again: no idea.

Martin: Perhaps this bug might shed more light?
When I’m in the second editor and hit CTRL+R to perform a find-and-replace, the IDE switches back to the primary editor. It’s as if some logic isn’t checking for the existence of a second editor window in anchored mode. It seems to me that this bug is not related to the On-Idle mechanism ...

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11901
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Bugfix Release 4.4
« Reply #38 on: Today at 11:11:18 am »
Martin: Perhaps this bug might shed more light?
When I’m in the second editor and hit CTRL+R to perform a find-and-replace, the IDE switches back to the primary editor. It’s as if some logic isn’t checking for the existence of a second editor window in anchored mode. It seems to me that this bug is not related to the On-Idle mechanism ...

If the IDE for some reason acts on the primary editor, then if that has no selection then "sort selection" would not be enabled.
I would guess that if you have a selection in both, and if you are in the 2nd, and if you invoke "sort selection" then it sorts the first.

There was an issue that certain actions in the 2nd would switch the tab in the 1st editor window. That was caused by the embedded/docked form editor. https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39417
That was merged to 4.4


It starts getting hard to track the issue in this mega thread. Did you test with/without docked form editor?
Was this issue present in 4.2 ?

Ultimately it needs to be reported.
I can add any ideas I have on this thread. But that won't fix it, and I don't currently work on the docking stuff.

 

TinyPortal © 2005-2018