| Summary: | Error Logged when Resource out of sync with file system | ||
|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | James Blackburn <jamesblackburn+eclipse> |
| Component: | API Tools | Assignee: | PDE API Tools Inbox <pde-apitools-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.7 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux-GTK | ||
| Whiteboard: | stalebug | ||
|
Description
James Blackburn
I just did a CVS update and another 3 of these errors logged... What's worth noting is that I'm not editing files outside of Eclipse. I'm doing all my Plugin developement within the IDE using the built-in CVS synchronize tools. I'm not sure how we can handle this much better. We are trying to use a workspace resource, but it is out of synch. The workspace won't let us open an input stream in that case. (In reply to comment #2) > I'm not sure how we can handle this much better. We are trying to use a > workspace resource, but it is out of synch. The workspace won't let us open an > input stream in that case. IFile#getContents(true) is probably what you're looking for -- this ignores the sync state. Fundamentally you builder needs to be resilient against resources changing concurrently underneath Eclipse. Throwing CoreException is part of the API and clients are expected to deal with the exception appropriately. In this case perhaps using different API. CoreException also happens if the file no longer exists on disk, the builder should handle this too by moving on to the next file. Logging the error isn't appropriate as it's an expected checked exception... This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |