Reputation: 1099
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?
Upvotes: 3
Views: 2072
Reputation: 11
This is an old question, but I found it when searching for a similar issue. I have a large project group with over a dozen packages, and Error Insight was broken for only one of them. The issue appeared after upgrading to Delphi 10 Seattle
.
In Project Options | Delphi Compiler
, make sure "Use MSBuild externally to compile
" is false. This fixed the Error Insight
behavior in my project.
Upvotes: 1
Reputation: 14001
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.
Upvotes: 7