Recent

Author Topic: Lazarus Release Candidate 2 of 4.0  (Read 35509 times)

Hansvb

  • Hero Member
  • *****
  • Posts: 757
Re: Lazarus Release Candidate 2 of 4.0
« Reply #75 on: January 28, 2025, 08:27:56 pm »
Hi, I noticed that in Lazarus 4.0RC2 the Code tools settings are different than in Lazarus 3.4
Was that done deliberately?

See the attachment as an example. The top piece is Lazarus 4.0RC2 and the bottom piece is Lazarus 3.6.
 
No example file has been filled in for Codetools General. I have never filled this in myself, but I have to do so with RC2. (No criticism, I just happened to notice it).

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10924
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release Candidate 2 of 4.0
« Reply #76 on: January 28, 2025, 08:34:31 pm »
Which OS?

I have to test later. But that looks like the values did not get set at all => the edit fields contain the dummy value from the OI (the names of the components), like when you drop an edit on a form, it will read Edit1 in its text field.


Hansvb

  • Hero Member
  • *****
  • Posts: 757
Re: Lazarus Release Candidate 2 of 4.0
« Reply #77 on: January 28, 2025, 08:49:32 pm »
It s Windows 11
I just saw that a lot of checkboxes are unchecked in the codetool section In precious versions they where checked

baldzhang

  • New Member
  • *
  • Posts: 45
Re: Lazarus Release Candidate 2 of 4.0
« Reply #78 on: January 29, 2025, 07:46:03 pm »
It s Windows 11
I just saw that a lot of checkboxes are unchecked in the codetool section In precious versions they where checked

met the same problem on linux/xfce4, after some options changed then apply or ok, try to finger out which one cause this but no lucky.
I think it was some frame's save or load raised exception.
will monitor this and hopefully found some debug message.

CM630

  • Hero Member
  • *****
  • Posts: 1301
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Lazarus Release Candidate 2 of 4.0
« Reply #79 on: January 29, 2025, 07:59:03 pm »
Maybe it is already reported, but here is what happens if the Windows PC is shutdown without closing the Lazarus IDE first.
It was the modern IDE, now it is nothing.
Ideas for fixing without reinstalling Lazarus are welcome, maybe I shall delete some of these: anchordockingoptions.xml; codeexploreroptions.xml; compilertest.pas; debuggeroptions.xml; dockedformeditoroptions.xml; editormacroscript.xml; editoroptions.xml; environmentoptions.xml; fpcdefines.xml; idemake.cfg; includelinks.xml; inputhistory.xml; jcfsettings.cfg; laz_indentation.pas; miscellaneousoptions.xml; onlinepackagemanager; packagefiles.xml; projectsessions; protocol.xml; staticpackages.inc;

Edit: I deleted environmentoptions.xml, the others had almost no content.

« Last Edit: January 29, 2025, 08:32:42 pm by CM630 »
Лазар 4,0RC2 32 bit (sometimes 64 bit); FPC3,2,2

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10924
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release Candidate 2 of 4.0
« Reply #80 on: January 29, 2025, 08:21:21 pm »
Hi, I noticed that in Lazarus 4.0RC2 the Code tools settings are different than in Lazarus 3.4
Was that done deliberately?

See the attachment as an example. The top piece is Lazarus 4.0RC2 and the bottom piece is Lazarus 3.6.
 
No example file has been filled in for Codetools General. I have never filled this in myself, but I have to do so with RC2. (No criticism, I just happened to notice it).


Please backup your config dir if you can still reproduce this. It may be needed to find out what the issue  is.


I just tried myself (Win 10 64bit).
- Install into new folder
- Install (2ndary) with new empty config
Everything turned out normal.

So I must assume that some exception/crash happened when you opened the options dlg.
- Either you have some package installed that causes this (let me know if you have packages installed)
- You have old config that failed to be read by the new IDE (if you did not do a 2ndary install with new conf dir) / Hence the backup your conf

If you could... (and if it still happens)
- Install again, BEFORE starting the IDE open (or create) the file lazarus.cfg and add the line (no spaces / adjust folder for your install)
   --debug-log=C:\lazarus\lazlog.txt
 after it happened check if the log contains errors.
- test without extra packages (if you had packages)
- test with empty config / then with your existing (if you upgraded with existing conf)


Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10924
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release Candidate 2 of 4.0
« Reply #81 on: January 29, 2025, 08:33:34 pm »
Maybe it is already reported, but here is what happens if the Windows PC is shutdown without closing the Lazarus IDE first.
It was the modern IDE, now it is nothing.
Ideas for fixing without reinstalling Lazarus are welcome, maybe I shall delete some of these: anchordockingoptions.xml; codeexploreroptions.xml; compilertest.pas; debuggeroptions.xml; dockedformeditoroptions.xml; editormacroscript.xml; editoroptions.xml; environmentoptions.xml; fpcdefines.xml; idemake.cfg; includelinks.xml; inputhistory.xml; jcfsettings.cfg; laz_indentation.pas; miscellaneousoptions.xml; onlinepackagemanager; packagefiles.xml; projectsessions; protocol.xml; staticpackages.inc;



It may be the anchordocking... or probably the desktop nodes from the environment (only that part)....

I would guess that at some time the screen resolution may have changed, so the IDE had to resize before it closed, and it saved the resized anchor layout.

It is known that (but not why or when) on certain resizes, anchordocking gets lost. Some of the panels (and their splitters) will be outside the visible frame (splitter goes to > 100% of the total form).
Though maybe it is something else. Because if it was there should be a splitter at the very right or very bottom



Actually, on further scrutiny => there is a splitter at the very left... So the rest of your IDE is likely collapsed behind that. Try moving it.
I am not sure how that happened.


If you can find the file with the anchor layout (again, sorry not sure which) => report a bug and attach it...

Hansvb

  • Hero Member
  • *****
  • Posts: 757
Re: Lazarus Release Candidate 2 of 4.0
« Reply #82 on: January 29, 2025, 08:42:10 pm »
Hi
I haven't used lazarus since I saw the empty checkboxes in code tools. So I can definitely make a backup of the current config. I'll see if I can do some testing tomorrow evening and otherwise I'll test in the weekend (then i have more time) with a clean install etc. I didn't have any packages installed. It was a completely clean installation. But I did open an existing project before I opened the options. I am going to test a few things one of these days and will report my findings.

baldzhang

  • New Member
  • *
  • Posts: 45
Re: Lazarus Release Candidate 2 of 4.0
« Reply #83 on: January 29, 2025, 10:23:28 pm »
using fixes_4 branch, commit e03aba2a0f, widgetset qt5
slackware 15.0 x86_64, xfce 4.16

add --debug-log=...., removed entire config dir, then start laz
after the setup dialog, enter main window(docked), check Tools->Options

all checkboxes in Codetools: line split and spece are empty, other comboboxes not checked.

leave laz and start 2nd time, all checkboxes are back.

debug log file attached, 1st and 2nd run included.

baldzhang

  • New Member
  • *
  • Posts: 45
Re: Lazarus Release Candidate 2 of 4.0
« Reply #84 on: January 30, 2025, 07:10:25 am »
try other times, various exception when start, main, exit ...
some callstack looks may help, attached.

CM630

  • Hero Member
  • *****
  • Posts: 1301
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Lazarus Release Candidate 2 of 4.0
« Reply #85 on: January 30, 2025, 08:20:00 am »
I would guess that at some time the screen resolution may have changed, so the IDE had to resize before it closed, and it saved the resized anchor layout.
That is a reasonable point. This happens on a laptop, which is practically docked and used as a desktop. The last time when the issue occurred, it was undocked and the lid was open, but the screen turned all black for some reason, so I had to long press the on/off button.


Actually, on further scrutiny => there is a splitter at the very left... So the rest of your IDE is likely collapsed behind that. Try moving it.
I am not sure how that happened.
Indeed, I enabled “Show headers” (I have restored the bad environmentoptions.xml before that) and moved both sliders to the right.
But should not header 1 have the same fat bar, like header 2 and all the other headers? Or it is something overridden by the docked design (see image attached).


If you can find the file with the anchor layout (again, sorry not sure which) => report a bug and attach it...
Ok, I will try to reproduce it again.
Лазар 4,0RC2 32 bit (sometimes 64 bit); FPC3,2,2

zeljko

  • Hero Member
  • *****
  • Posts: 1723
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazarus Release Candidate 2 of 4.0
« Reply #86 on: January 30, 2025, 08:24:51 am »
Which OS?

I have to test later. But that looks like the values did not get set at all => the edit fields contain the dummy value from the OI (the names of the components), like when you drop an edit on a form, it will read Edit1 in its text field.
Installation of lazarus trunk via fpcupdeluxe qt5 (fpc-3.2.2), and in another fpcupdeluxe dir qt6 (fpc-trunk), both have problem with settings (as it is in attached screenshoot above for 4.0RC2).

zeljko

  • Hero Member
  • *****
  • Posts: 1723
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazarus Release Candidate 2 of 4.0
« Reply #87 on: January 30, 2025, 08:37:59 am »
try other times, various exception when start, main, exit ...
some callstack looks may help, attached.

Had such errors with trunk lazarus qt5, but it's fixed by martin not so long time ago (this year definitelly, maybe 2-3 weeks ago).

mattias

  • Administrator
  • Full Member
  • *
  • Posts: 199
    • http://www.lazarus.freepascal.org
Re: Lazarus Release Candidate 2 of 4.0
« Reply #88 on: January 30, 2025, 10:27:29 am »
According to the log you started the IDE as root - why? Are you working on a daemon?
The IDE is a normal gui app.

The log says  it uses /opt/laz40 as the fpc sources. Looks wrong. Did the IDE warn?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10924
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release Candidate 2 of 4.0
« Reply #89 on: January 30, 2025, 11:14:42 am »
But should not header 1 have the same fat bar, like header 2 and all the other headers? Or it is something overridden by the docked design (see image attached).

It has, just not on the left side. It has on the top side.
Not every slider has a header next to it. That slider resizes 2 areas (source & messages). And they each have a header. But they do not have a combined header.

 

TinyPortal © 2005-2018