IDE problem with inherited subclasses lazarus / 9-Editor ---------------------------------------------------------------------- HomePlaneR · 2013-02-05 11:59 Hi everyone, I've got a particular issue with IDE. I have a base class and a sub-class in it (TBaseClass and TBaseSubClass in code sample below). Afterwards I add a new class derived from the base one (TCustomClass). I customize as well the sub class (TCustomSubClass). The problem is that Lazarus IDE refuse to admit the last one derived class: when I do something in its customized method, I get errors "identifier not found: TBaseSubClass" from code tools. On each Ctrl+Space hit the cursor goes to the interface section where TCustomSubClass is described. And it is quite annoying: I hit it each two seconds, so the developing of these methods becomes terrible. Code sample: Code: [Select]type   TBaseClass = class    public type     TBaseSubClass = class       procedure DoSomething; virtual;     end;   end;   TCustomClass = class (TBaseClass)    public type     TCustomSubClass = class (TBaseSubClass)      procedure DoSomething; override;     end;   end; { TCustomClass.TCustomSubClass } procedure TCustomClass.TCustomSubClass.DoSomething; begin  //put the cursor here and hit Ctrl+Space end; { TBaseClass.TBaseSubClass } procedure TBaseClass.TBaseSubClass.DoSomething; begin end; begin end.                      I know that this issue is quite particular, but anyway could I hope to have it fixed in following releases or what I can do to fix it myself? I use Lazarus 1.0.6 (latest release on the main page), Win7 64 bit. The FPC version is 2.6.0, the compiler goes well with this kind of things in code. Thanks! ---------------------------------------------------------------------- Blaazen · 2013-02-05 12:17 I can reproduce with Laz. 1.1. Autocomplete probably still cannot handle the nested classes well (but code is compilable). IMO you should report it and attach this demo. ---------------------------------------------------------------------- HomePlaneR · 2013-02-05 12:52 Quote from: Blaazen on February 05, 2013, 01:17:58 pmI can reproduce with Laz. 1.1. Autocomplete probably still cannot handle the nested classes well (but code is compilable). IMO you should report it and attach this demo. Done, http://bugs.freepascal.org/view.php?id=23831 ---------------------------------------------------------------------- HomePlaneR · 2013-02-07 10:06 Well, as I see in bugracker, the issue is fixed in revision #40201. I've just tested it with snapshot of today for Win64, it works. Thanks!