Search code examples
delphicompilationfile-not-founddelphi-xe8

Delphi XE8 update 1 - random file not found


When I compile a project in XE8 (with update 1), I get frequently a error that a file is missing, although the file is just available. And when I compile again, it is another file that is missing. It seems random. After a few compiles (sometimes more or less) I have build the project. And even at Run (F9) I sometimes get the error that a file is missing.

Like @Andrei Galatyn said at the end of his post, it will be solved when you delete your Android configuration in SDK versions. But I want to be able to develop with Android. What is the real problem?

I couldn't find a solution on the internet yet.

Is there a solution for this problem? Thanks in advance!


Solution

  • I have similar problem with Delphi XE8/XE7 at least at 3 different PCs (home PC, notebook, VMW-based virtual machine in office). All PCs are fast, all are SSD-based. Usually i get the error message when trying to build large project, for small projects errors are very rare (but happens time to time anyway). So i am quite sure that it is problem with Delphi. What i tried:

    1. added src/dcu paths as exception to antivirus
    2. disabled indexing of files in Windows (Windows 7 x64/Windows 8.1 x64)
    3. deleted all SDKs for mobile development in IDE (this step was most usefull in my case).

    It doesn't solve the problem for 100%, but now i see that random message only few times per week. I will be glad to see real solution.

    Just for information - many errors like "file YYY\XXX.pas not found" where with wrong path to the file, it was path somewhere inside of Android SDK. After deleting of all SDKs (fortunately i need only with Win x32/x64 platforms) i never see such errors anymore.

    Some time ago i sent it to my colleagues:

    Many times i got an sporadic error in Delphi IDE like this:

    F2039 Could not create output file '.\dcu\FireDAC.Comp.DataSet.dcu'
    

    When I just tried to compile again, the problem disappeared but compilation may fail on another file. It was especially annoying when I need to rebuild an large project, for example <...>. Finally I discovered that under some conditions Delphi is trying to access files at wrong path:

    C:\Users\Public\Documents\RAD Studio\12.0\PlatformSDKs\adt-bundle-windows-x86-20130522\sdk\tools\dcu\FireDAC.Comp.DataSet.dcu
    

    Instead of

    C:\M2014\Fellesressurser\felles\FireDAC.Comp.DataSet.dcu
    

    All the time when I get the error it was try to access Android SDK folder instead of my application folder.

    If you experienced same problem, you can solve it now, just delete Android SDK from Delphi IDE:

    • Open “Tools\Options\Environment Options\SDK Manager”
    • Select installed SDK (list “SDK versions”)
    • Delete it (button “Delete”)