Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Structure Pane/Error Insight    [ Add a report in this area ]  
Report #:  58091   Status: Closed
EI doesn't rescan unit modified outside IDE
Project:  Delphi Build #:  11.0.2902.10471
Version:    11.2 Submitted By:   Alexey Rytov
Report Type:  Minor failure / Design problem Date Reported:  2/11/2008 8:16:25 AM
Severity:    Commonly encountered problem Last Updated: 8/31/2010 10:00:42 PM
Platform:    All versions Internal Tracking #:  
Resolution: Duplicate (Resolution Comments) Resolved in Build: : 14.0.3607.26099
Duplicate of:  14915
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
When a unit is open in the IDE, then you open and modify it in an external editor, then switch back to Delphi, the IDE recognizes that the file datetime stamp has changed and offers to reload the file.

However, the Error Insight does not re-scan the reloaded file,  so the that all red-lining remains from the original (before external notifications) source.
Steps to Reproduce:
-  Create a new form, define an event handler with an error in it, such as:

procedure TForm3.FormCreate(Sender: TObject);
begin
  Width := Width_no_such_property + 10;
                ~~~~~~~~~~~~~~~~~
end;

- Observe that the EI has red-lined the error

- Save (but don't not close) the file.

- Open the .PAS file in Notepad (or any other external editor) and correct the error

- Save it in Notepad and switch back to the IDE; confirm "reload"

- Observe that the red-lining has not changed:

procedure TForm3.FormCreate(Sender: TObject);
begin
  Width := Width + 10;
                ~~~~~~~~~~~~~~~~~
end;

- After you touch the text in the IDE,  the red-lining is gone.


Workarounds
None
Attachment
None
Comments

None

Server Response from: ETNACODE01