Forum > macOS / Mac OS X

Where to look...

(1/2) > >>

geraldholdsworth:
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:
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.

geraldholdsworth:
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:
have you tried
Tools->Rescan Sources
if thatdoesnt help
Tools->Configure Build Lazarus  In the Clean up section select Clean All then click Build..

geraldholdsworth:
Unfortunately not. :(

Navigation

[0] Message Index

[#] Next page

Go to full version