Bug 42366 - Classpath validation error message removed while rebuilding a project.
Summary: Classpath validation error message removed while rebuilding a project.
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-02 05:31 EDT by Frederic Fusier CLA
Modified: 2003-10-08 07:30 EDT (History)
0 users

See Also:


Attachments
Patch file to fix bug 42366 (1.39 KB, patch)
2003-09-02 06:12 EDT, Frederic Fusier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2003-09-02 05:31:57 EDT
Scenario:
Edit a valid .classpath file on project /P using Text editor, change on kind 
flag (say "src") with an invalid one (say "xxx") and save.

If "Automatic rebuild" is not checked in my workspace, I correctly see error 
message in Problems view:
"Illegal entry in 'test/.classpath' file: Unknown kind: 'xxx'".
But when I rebuild my project, then this error message disappear and is 
replaced by:
"The project cannot be built until build path errors are resolved."

More confusing, if option "Automatic rebuild" is set in my workspace, then I 
have only the second message and don't know what is exactly the error which is 
blocking the project build.

It seems to be a side effect of PR 39877 fix.
Comment 1 Frederic Fusier CLA 2003-09-02 06:12:09 EDT
Created attachment 5931 [details]
Patch file to fix bug 42366

Classpath format markers were always flushed while rebuilding project although
markers on problems other than ".classpath cannot be read" were not recomputed.

Fix consits to flush only in case of creation ".classpath cannot be read"
marker.
Comment 2 Philipe Mulet CLA 2003-09-02 10:33:46 EDT
Patch approved. Integrating. Fixed
Comment 3 David Audel CLA 2003-10-08 07:30:41 EDT
Verified.