Recent

Author Topic: Where to look...  (Read 1131 times)

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 284
Where to look...
« on: October 23, 2025, 09:37:22 pm »
I've been grappling with an issue since I installed 4.0 on my macOS 15.7, with FPC 3.2.2.

What I do (and this also happens with established projects):
  • Start a new project
  • Click on Events for the Form and click on, for example, OnShow (to create a procedure)
Result: Error message "Identifier not found TGUID", and the syshelph.inc opens up with line 35 highlighted. (this is sometimes "Identifer not found TObject")

OK, next thing..
  • Start a new project
  • Go to the form designer
  • Add a component (e.g., TButton)
Result: Button is put on the form, the StdCtrls unit is added, "Button1: TButton" is added to the Object inspector, and I can look at the Properties. However, it is not added to the Source under the TForm1 class definition, and changing the name will result in an error "Unable to rename component", and "Identifier not found: TObject". Of course, manually adding Button1: TButton to the class definition works.

I have uninstalled Lazarus and re-installed it (well, version 4.2). I also re-installed FPC, freshly downloaded from the web. Neither helped. I also have a secondary install, done through FPCUpDeluxe. But this is in a different location.

So, there must be a config somewhere that is pointing to the wrong place for something.

Completely uninstalling everything to do with Lazarus, FPC and FPCUpDeluxe and then re-installing from scratch might also work...apparently, there is a script somewhere that can do a complete uninstall of everything. Last resort, I think.

Josh

  • Hero Member
  • *****
  • Posts: 1454
Re: Where to look...
« Reply #1 on: October 23, 2025, 09:44:31 pm »
hi
i was getting similar, the safe way i found was
create a new project, then save the project before adding anything to it, then all seems fine.
wheather its a temp file creation issue or what ,no idea, i didn't investigate, but in my case it solves it.
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 284
Re: Where to look...
« Reply #2 on: October 23, 2025, 09:50:54 pm »
Doesn't work for me, I'm afraid.

These issues also happen on established projects, when adding new components or event methods to existing forms.

Josh

  • Hero Member
  • *****
  • Posts: 1454
Re: Where to look...
« Reply #3 on: October 23, 2025, 09:58:23 pm »
have you tried
Tools->Rescan Sources
if thatdoesnt help
Tools->Configure Build Lazarus  In the Clean up section select Clean All then click Build..
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 284
Re: Where to look...
« Reply #4 on: October 23, 2025, 10:03:47 pm »
Unfortunately not. :(

Josh

  • Hero Member
  • *****
  • Posts: 1454
Re: Where to look...
« Reply #5 on: October 23, 2025, 10:15:04 pm »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 284
Re: Where to look...
« Reply #6 on: October 24, 2025, 08:52:53 am »
Yep. Read that.
Already using FPCUpDeluxe for my cross-compiler. Wasn't really keen on using that for my main workhorse...but I may have to resort to using it.

dseligo

  • Hero Member
  • *****
  • Posts: 1653
Re: Where to look...
« Reply #7 on: October 24, 2025, 10:37:36 am »
i was getting similar, the safe way i found was
create a new project, then save the project before adding anything to it, then all seems fine.
wheather its a temp file creation issue or what ,no idea, i didn't investigate, but in my case it solves it.

Same here, same solution. But I am also not on Mac, so OP may experience something else.

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 284
Re: Where to look...
« Reply #8 on: October 24, 2025, 02:40:08 pm »
In a way, I'm glad I'm not the only one experiencing this.

Funnily enough, I installed 4.2 on my Windows 11 work laptop yesterday and it works flawlessly.

Anyway, thank you all. Much appreciated.

Thausand

  • Sr. Member
  • ****
  • Posts: 458
Re: Where to look...
« Reply #9 on: November 23, 2025, 08:26:40 am »
@geraldholdsworth:
I read issue for report now. Make try and no use path have space for install Lazarus. Then have see if help/fix.

 

TinyPortal © 2005-2018