Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-12

Error: OOPS, I lost your class.

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Donald Ziesig

Hi Everyone!

I am using Lazarus 1.5 on a Raspberry Pi B 2 and I just encountered an error I have never seen before while editing.

I am creating a new generic class as in:

type
   generic TMyClass<T> = class(TMyBaseClass)
      public
         constructor Create( AParent : TMyBaseClass = nil);
         destructor  Destroy; override;
   end;

When I hit <ctrl-shift-C> for auto complete, I get the message "Error: OOPS, I lost your class" and the implementation section looks like this:

implementation

{ }

constructor Create( AParent : TMyBaseClass);
begin
end;
destructor Destroy;
begin
   inherited Destroy;
end;
end.

This is a much simplified example. Code completion fills in the declarations from properties correctly, but the generated setters and getters also come out in the { } with no class name either.

Am I doing something wrong? I have been using this since IIRC Delphi 5 and never encountered this error. (Of course generics may have come later than Delphi 5, but I have used code completion in generics well into the past, just can't remember when I started :-( ).

Help making this work will eliminate a lot of typing (and potential errors).

Thanks,

Don Ziesig

Reply by email

Mattias Gaertner
to Donald Ziesig
Show quoted text 16 lines
[...] Hi Everyone! I am using Lazarus 1.5 on a Raspberry Pi B 2 and I just encountered an error I have never seen before while editing. I am creating a new generic class as in: type generic TMyClass<T> = class(TMyBaseClass) public constructor Create( AParent : TMyBaseClass = nil); destructor Destroy; override; end; When I hit <ctrl-shift-C> for auto complete, I get the message "Error: OOPS, I lost your class" and the implementation section looks like this:

Please create a bug report.

Mattias

Reply by email