Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Code Editor/Error Insight    [ Add a report in this area ]  
Report #:  97066   Status: Open
Error Insight gives (lots of) false errors
Project:  Delphi Build #:  XE, XE2
Version:    16.0 Submitted By:   Ronald Janse
Report Type:  Minor failure / Design problem Date Reported:  8/3/2011 2:06:17 AM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   289328
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (2 Total Ratings)
4.00 out of 5
Total Votes: 18
Description
When using Error Insight, Lots of errors are marked, which are not errors at all. It seems like some unit is missing, but that is not the case.
When I <ctrl> click on an 'error' Delphi shows me the source code of the correct unit and the correct line, so there is no error.
This was also present in older versions of Delphi (e.g. D2007).
See attached samples.

Added by Sysop
<<<<<
Please see comments of QC for more information.
>>>>>
Steps to Reproduce:
This error was present in D2007-D2009. In 2010 it was fixed. It reappears in Delphi XE and unfortunately it is still there in XE2.
For example it underlines "Name" or "SetFocus" of a TEdit and many other false errors!

Please see attached project and its screenshot.
Workarounds
Ignore the errors! But then it's better not to use it at all.
Attachment
TAQGesamt.zip
Comments

Tomohiro Takahashi at 8/3/2011 6:16:05 AM -
> See attached samples.
Please attach sample project(including screenshots) to confirm your issue by using Windows Native QC Client.
The standalone client comes with Delphi.

Michael Damm at 12/15/2011 8:05:27 AM -
This error was present in D2007-D2009. In 2010 it was fixed. It reappears in Delphi XE and unfortunately it is still there in XE2.
For example it underlines "Name" or "SetFocus" of a TEdit and many other false errors!

Tomohiro Takahashi at 12/17/2011 11:03:14 PM -
I checked attached project and screenshot with Delphi XE.
Indeed, if I open 'Konstruktion.dproj' with IDE and open 'konst_un.pas' with Code Editor, I can see lots of erros in ErrorInsight.
But, after I added 'Galois.pas' unit to the project via Project Manager, no error is reported.

So, could you please add 'Galois.pas' unit to the project via Project Manager?

Michael Damm at 12/19/2011 6:01:37 AM -
Yes, if I add it no errors are shown. But adding all and every file to the project (even components of other vendors) is no solution.
Furthermore, if I remove "Galois.pas" again then Delphi still don't show false errors in this project. So this seems to be a simple internal error in Delphi's update procedures.
What I would expect: first time you open a project, it can show false errors. During a re-build Delphi should update all internal data concerning the errors insight - same as it does when the file is added to the project.

Tomohiro Takahashi at 12/19/2011 5:59:04 PM -
> ... if I remove "Galois.pas" again then Delphi still don't show false errors in this project. ...
Yes, I get same behavior in IDE.

I checked attached project again with Delphi XE2 Update 3.
In [Attachments], old 'Galois.dcu' is included in it. So, please try my Steps.
-----
1. save [Attachment] of this report into c:\temp\97066
2. delete C:\temp\97066\TAQGesamt\Galois.dcu with Explorer
3. open C:\temp\97066\TAQGesamt\Konstruktion.dproj with IDE
4. open konst_un unit, then swtich to Code Editor.
5. ErrorInsight does not show any report.
6. after Step#5, new Galois.dcu is generated automatically.
-----

Michael Damm at 12/20/2011 1:27:36 AM -
Yes that’s so. To delete the dcu’s is nevertheless a workaround and it is also not easy to catch all dcu’s. Delphi has to update the dcu’s by itself if necessary – latest during a rebuild.

Michael Damm at 12/30/2011 5:56:54 AM -
There is a major malfunction behind this problem. Delphi XE2 does not recognize if a DCU needs to be updated, compare to report # 102164. This error needs to be fixed.

Tomohiro Takahashi at 12/15/2011 5:31:30 PM -
> For example it underlines "Name" or "SetFocus" of a TEdit and many other false errors!
Michael-san
Could you please upload sample project(including some screenshot) as a .zip to Discussion Forum? I will check your issue in my environment.
[Embarcadero Discussion Forums >> Attachments]
https://forums.embarcadero.com/forum.jspa?forumID=2

Server Response from: ETNACODE01