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.