Jump to content
Sign in to follow this  
emileverh

System.Types error in Delphi 13

Recommended Posts

Hi!

 

I have an error: F2051 Unit System.Types was compiled with a different version of System.TArray`1 at line 6 (6:17) see screenshot.

 

I tried cleaning the project from the project window. Tried cleaning my .dcu's in the Explorer. Where does come from?!?! I never touched system.types and it is included once in this project and even not in this unit.

 

PLEASE HELP!

System.Types error.png

Share this post


Link to post

Hi, do you have any System.* or VCL.* units copied to your app folder? (I do it so that I can translate texts in System.SysConst.pas and Vcl.Consts.pas, but with new version of Delphi, they must be upgraded, too.)

Share this post


Link to post
28 minutes ago, Vandrovnik said:

Hi, do you have any System.* or VCL.* units copied to your app folder? (I do it so that I can translate texts in System.SysConst.pas and Vcl.Consts.pas, but with new version of Delphi, they must be upgraded, too.)

No!

Share this post


Link to post
3 hours ago, emileverh said:

Hi!

 

I have an error: F2051 Unit System.Types was compiled with a different version of System.TArray`1 at line 6 (6:17) see screenshot.

 

I tried cleaning the project from the project window. Tried cleaning my .dcu's in the Explorer. Where does come from?!?! I never touched system.types and it is included once in this project and even not in this unit.

 

PLEASE HELP!

 

Check the pathes both in the IDE Tools -> Options dialog ( under Language -> Delphi -> Library, especially the library pathes for all target platforms) and also for the specific project (in this case library and search pathes). You typically get such errors if the compiler finds dcus (or worse: source files) from another Delphi version you have installed. Also check the environment variables like BDSLIB (Tools -> Options -> IDE -> Environment variables). If you tried to copy settings from an older version using the migration tool some D13 settings may have been messed up by this. 

If nothing suspicious pops up and you do not get these errors with a new project make a backup of the project's dproj file, delete or rename it and the open the project's dpr file to let the IDE create a new dproj file. If that works you may have to set project options again to what you need if the ones you had before were not the defaults.

Edited by PeterBelow

Share this post


Link to post

I used the USES cleaner from CNPACK and know its gone. I still believe it was a glitch somewhere in D13. But anyhow, until now it's good!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×