emileverh 28 Posted Friday at 07:22 AM 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! Share this post Link to post
Vandrovnik 225 Posted Friday at 07:48 AM 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
emileverh 28 Posted Friday at 08:16 AM 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
PeterBelow 262 Posted Friday at 10:43 AM (edited) 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 Friday at 10:45 AM by PeterBelow Share this post Link to post
emileverh 28 Posted Saturday at 05:28 AM 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