Recent

Author Topic: Strange happenings with the IDE, maybe only the trunk.  (Read 1090 times)

jamie

  • Hero Member
  • *****
  • Posts: 7661
Strange happenings with the IDE, maybe only the trunk.
« on: May 26, 2025, 05:28:37 pm »
If you start a new project just for poking around for example, and go to the TOOLS:Check LFM file in editor, you will get a window indicating there is a problem with 0 offset etc.

 If you op to do nothing about it, exit in other words, then your now test program has no LFM file and all the work you just did is unusable.

 I suppose saving the project may fix this, but I don't remember this happening and I really think this needs to be addressed wouldn't you say?

 I do many simple test runs without actually saving the project, just use the temp folder that was assigned.

EDIT
  I found that if you close the Empty LFM page from the editor, you can rebuild once again, however, if you attempt to read the LFM again, it comes with a different error.

Jamie
« Last Edit: May 26, 2025, 05:47:41 pm by jamie »
The only true wisdom is knowing you know nothing

dsiders

  • Hero Member
  • *****
  • Posts: 1595
Re: Strange happenings with the IDE, maybe only the trunk.
« Reply #1 on: May 26, 2025, 06:08:06 pm »
...
EDIT
  I found that if you close the Empty LFM page from the editor, you can rebuild once again, however, if you attempt to read the LFM again, it comes with a different error.

Which is?

jamie

  • Hero Member
  • *****
  • Posts: 7661
Re: Strange happenings with the IDE, maybe only the trunk.
« Reply #2 on: May 26, 2025, 06:14:42 pm »
"LFM file must be opened in the editor" as close as I can remember.

The only true wisdom is knowing you know nothing

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12297
  • Debugger - SynEdit - and more
    • wiki
Re: Strange happenings with the IDE, maybe only the trunk.
« Reply #3 on: May 26, 2025, 06:55:31 pm »
From a quick glance, it will need an LFM file and be able to open that in the editor.

If you have a new project, which is not yet saved, then the LFM file will be empty (as it has not been saved to disk yet) => and then you get errors.

IMHO it should refuse to work on an unsaved file.

jamie

  • Hero Member
  • *****
  • Posts: 7661
Re: Strange happenings with the IDE, maybe only the trunk.
« Reply #4 on: May 26, 2025, 06:59:55 pm »
From a quick glance, it will need an LFM file and be able to open that in the editor.

If you have a new project, which is not yet saved, then the LFM file will be empty (as it has not been saved to disk yet) => and then you get errors.

IMHO it should refuse to work on an unsaved file.

Exactly. Refuse to work and give a proper description as to why.

EDIT,
 Graying out the option in the drop down is enough.


Thank you.
Jamie
The only true wisdom is knowing you know nothing

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12297
  • Debugger - SynEdit - and more
    • wiki
Re: Strange happenings with the IDE, maybe only the trunk.
« Reply #5 on: May 26, 2025, 08:04:02 pm »
I don't know who maintains that part. So best add it to the bug tracker.

jamie

  • Hero Member
  • *****
  • Posts: 7661
Re: Strange happenings with the IDE, maybe only the trunk.
« Reply #6 on: May 26, 2025, 11:56:34 pm »
Ok, I reported it.
Jamie
The only true wisdom is knowing you know nothing

d2010

  • Sr. Member
  • ****
  • Posts: 264
Re: Strange happenings with the IDE, maybe only the trunk.
« Reply #7 on: May 27, 2025, 03:01:30 am »
If you start a new project just for poking around for example, and go to the TOOLS:Check LFM file in editor, you will get a window indicating there is a problem with 0 offset etc.
Jamie
You have a lot experience inside "Lazarus.Forum".
That reason, my question == Why you do not post your message to this Topic?
https://forum.lazarus.freepascal.org/index.php/board,9.0.html
Or I am crazy !! I am nuts?
What is the Topic of LFM-designer? Exists?

 

TinyPortal © 2005-2018