2

enter image description here

XE2 will mark an error in the editor, usually about missing member functions (as shown in the picture). However it wil compile OK and the code will run just fine.
If you ask for a list using CTRL + SPACE it will give the correct list.

Is there a workaround/solution for the above bug in the Delphi XE2 IDE?
In such a way that I don't get incorrect markings for errors in the editor?

Note that this question: Delphi XE2 background IDE compiler unable to find source path signifies why the error is there, but does not list a solution.

Community
  • 1
  • 1
Johan
  • 74,508
  • 24
  • 191
  • 319
  • 7
    I gave up on Error Insight since it's first incarnation. 10 delphi releases later and it still doesn't work ... – whosrdaddy Oct 02 '13 at 21:00
  • 4
    Alt+T, O, C, C, C, C, Alt+E, Enter – Sertac Akyuz Oct 02 '13 at 21:05
  • Did you try using the declared capitalization? – Rob Kennedy Oct 02 '13 at 21:24
  • I'll try that.., no that does not help, I'll have to turn it off. Putting the full path in does not help either, `System does not contain a member TObject`. Fixing the library paths as per this suggestion does not help either: http://stackoverflow.com/a/18103517/650492 – Johan Oct 02 '13 at 21:29
  • 1
    Turn if off, then write your own Error Insight parser and IDE plugin. :-) – Warren P Oct 02 '13 at 22:18

1 Answers1

2

Solution, thats works for me in Delphi 2007, XE2 and 10.2.x Tokyo:

  1. Compile/Build your project
  2. Close your project (Files -> Close all)
  3. Reopen your project

The wrong error marks should have gone away now, at least for a while... :-/

Delphi Coder
  • 1,723
  • 1
  • 14
  • 25