Bug 15441 - Important: Problem highlight is out of sync with compiler
Summary: Important: Problem highlight is out of sync with compiler
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 2.0 F2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-07 12:46 EDT by Jean-Michel Lemieux CLA
Modified: 2002-06-03 08:48 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Michel Lemieux CLA 2002-05-07 12:46:14 EDT
Build 20020503:
I have a file that compiles clean. There are not compile errors. However I can
see the red problem highlight in the editor that shows:

"the import cannot be resolved..."

I'm confused, because if the import cannot be resolved how did the file compile
clean in the first place?

This started to occur after someone in our team refactored some classes and
moved them to another package. I've caught up with the changes, all plugins
compile, but the editor shows these highlight errors all over the place.
Comment 1 Erich Gamma CLA 2002-05-11 07:55:23 EDT
the reconciler is currently only run after a change by the user.  So what could 
have happened is that the reconciler was run with the old packages. The error 
has shown up. Then you did a catch-up with the team and got the correct 
packages. You did a rebuild and the compiler could build fine. When you add a 
space to the original document the errors should go away.

Could this be your scenario?
Comment 2 Erich Gamma CLA 2002-05-11 18:10:25 EDT
It happend to me as well.
Here is the scenario:
1) Debug moved some classes into another package
2) Updated from repository
3) Class JUnit tab group had compile errors
4) did an organize import and rebuild
-> the temporary problems where still there.
5) modified the file to force a reconcile
-> the temporary problems where still there
6) closing and reopening the file - still no luck
After closing and reoping the project, building and reopening the
temporary problems where gone.
Comment 3 Philipe Mulet CLA 2002-05-28 08:47:18 EDT
David - can you verify with latest ? Should have been solved for 20020521.
Comment 4 David Audel CLA 2002-05-29 11:36:45 EDT
The bug still occur in build 20020528.
Comment 5 David Audel CLA 2002-05-29 12:06:10 EDT
add a new PackageFragment does not update the name lookup of dependent projects

Fixed.

Comment 6 David Audel CLA 2002-06-03 08:47:41 EDT
Verified.