[SOLVED] Cannot create component methods (macOS) lazarus / 9-Editor ---------------------------------------------------------------------- trev · 2020-03-02 05:35 No idea what caused this, but CodeTools is unhappy and will not let me create any methods for any components in an existing project (new and other existing projects are ok). See attached images for the error produced when trying to add a method. Any ideas? ---------------------------------------------------------------------- Cyrax · 2020-03-02 06:51 If I recall, this was fixed at the FPC trunk. Please update your copy to latest one. ---------------------------------------------------------------------- trev · 2020-03-02 12:04 Thanks! That fixed it. ---------------------------------------------------------------------- trev · 2020-03-02 12:25 I spoke too soon I still cannot create new methods. See attached image of the errors. ---------------------------------------------------------------------- trev · 2020-03-02 12:33 I can create new methods for new projects (simple form test), but I cannot create new methods for any existing projects. [Update] I've narrowed it down further. I cannot create new form methods in any existing project; creating methods for other components is fine. ---------------------------------------------------------------------- trev · 2020-03-02 13:29 Code: [Select]unit Unit1; {$mode objfpc}{$H+} interface uses   Classes, Forms, MacOSAll, CocoaAll; type   { TForm1 }   TForm1 = class(TForm)   private   public   end; var   Form1: TForm1; implementation {$R *.lfm} end.  The above unit is enough to trigger the problem. The error always opens the AudioComponents.pas file and complains of this error: (703,131) Error: expected =, but ; found ---------------------------------------------------------------------- skalogryz · 2020-03-02 13:43 seems like CodeTools are not support C-blocks related syntax ---------------------------------------------------------------------- trev · 2020-03-03 02:14 Do I need to do anything? Lodge a bug? ---------------------------------------------------------------------- Cyrax · 2020-03-03 02:39 Quote from: trev on March 03, 2020, 03:14:57 amDo I need to do anything? Lodge a bug? Yes, please. And with short demo project, if you can. ---------------------------------------------------------------------- trev · 2020-03-03 06:49 Done. See https://bugs.freepascal.org/view.php?id=36752 with trivial demo project.