Why sometimes class methods or fields marked erroneous(red underline) by IDE

delphi, ide

Solution

That feature is called Error Insight and is known not to work reliably. AFAIK you can't fix that. If it bothers you enough you'll have to disable it.

Problem

Sometimes some class methods or fields marked erroneous(that red underline) by IDE, but the project successfully compiled and executed(no error or warning). If I hold mouse pointer on this erroneous sections I got this tool tip : "'TSomeClass' does not contain a member named 'SomeMethod'" or "Undeclared identifier 'SampleIdentifier'". Is that a kind of IDE bug or am I wrong somewhere?

Original source

Related problems