Hello.
I'm developing a personal framework that makes extensive use of generics.
The application already has a large number of units and is quite complex.
Until now, I've encountered the problem that, in some cases, when pressing CTRL+F9, the system wouldn't recognize that a file hadn't been modified and would force me to perform a full build (SHIFT+F9). It's a bit annoying, but manageable.
For the past few days, without having modified the IDE environment and, I believe, without having substantially modified the framework code, I've been experiencing a problem: whenever I press CTRL+F9, the compilation process stops.
The problem occurs in exactly the same way in Linux (Lazarus 4.7 (rev lazarus_4_6-39-g2ad6dffe3e) FPC 3.2.2 x86_64-linux-gtk2) and in Windows (Lazarus 4.4 (rev lazarus_4_4) FPC 3.2.2 x86_64-win64-win32/win64)
In linux I get these errors:
Error: An unhandled exception occurred at $00000000004643CC:
Debug: $00000000004643CC
presenter.ciudades.pas(17,4) Error: Compilation raised exception internally[/pre][/pre]
In Windows I get only this:
presenter.ciudades.pas(17,4) Error: Compilation raised exception internally
If I run a build (SHIFT+F9), the application compiles correctly.
The code in the unit where the error occurs is very simple. It's a definition of a class specialization that has no associated code, although I suspect the cause of the error might lie elsewhere.
{$mode ObjFPC}{$H+}
interface
uses
Classes, SysUtils, entity.ciudad, presenter.entity_view;
type
{ TCiudadPresenter } // Error references this line
TCiudadPresenter = class(specialize TEntityViewPresenter<TCiudad>)
end;
implementation
{ TCiudadPresenter }
end.
I've seen on the forum that similar problems have already arisen when using generics. I've configured the compiler options as indicated in
this link, but the result is the same.
I've also completely removed the lib folder and performed a clean build, but the problem persists exactly the same.
Any ideas?