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:
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!