Just ran into this issue in XE:

Just ran into this issue in XE:

To reproduce:

1) Pick a random file somewhere in a large project.
2) Add, at an appropriate point, the directive {$R NONEXISTENT.RES}
3) Build
4) Compiler reports [DCC Error] E1026 File not found: 'NONEXISTENT.RES'
5) Good luck tracking down where, because it doesn't link back to a source location.

Expected behavior: For any compile error caused by incorrect source code, it is expected that the compiler will report the location of the error in the source code.

Does anyone know if it's been fixed in a later version?

Comments

  1. Stefan Glienke or, if you don't have grep, notepad++ SHIFT-CTRL-F, select source folder and enter your search text

    ReplyDelete
  2. Grep, Notepad++ ???? 
    How about Shift+Ctrl+F in Delphi (Search - Find in Files)

    ReplyDelete
  3. The thing is: sometimes you get this error and there is no such .RES file found in any source file. 
    I never tracked down the cause apart from a restart of the IDE and a clean .DCU files between closing and starting the IDE.

    ReplyDelete

Post a Comment