Bug 114646 - [quick fix] New Quick Fix: Refresh "missing" libraries and paths
Summary: [quick fix] New Quick Fix: Refresh "missing" libraries and paths
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows 2000
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-01 16:08 EST by Andrew Hayden CLA
Modified: 2016-01-14 12:59 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Hayden CLA 2005-11-01 16:08:28 EST
One of the development environments I work in contains many, many windows shares
mapped to various NFS mount points via Samba.  Sadly, Samba and NFS occasioanlly
have issues (as do the machines hosting the mounts) that can result in a brief
period of time during which one or more files may "disappear" from the NFS world.

In Eclipse, this can be a major headache.  For example, if I define a user
library containing 500 JAR files and one of those JAR files disappears at the
wrong time, my only recourse is to refresh my projects and do a complete
clean/rebuild.  It would be *GREAT* if, instead, when a problem such as ...
    "Project xyz is missing required library: 'Q:\whatever\foo.jar'"
... appear in the "Problems" view, if there was a Quick Fix option to simply
attempt to refresh the offending entry instead of needing to refresh EVERYTHING
and then do a complete rebuild.

The same goes for ANY entity that is supposed to be on the classpath.  I do
realize (and applaud the fact that) there is a preference that can be set to
tell Eclipse not to consider missing path entries to be errors.  But I think
this falls outside of that domain.
Comment 1 Martin Aeschlimann CLA 2005-11-04 11:17:47 EST
Assuming we had a 'refresh JAR' quick fix, I think it would be too late as the
build state is already gone and a rebuild can't be avoided.
Philippe, is that correct?
Comment 2 Andrew Hayden CLA 2005-11-04 12:32:15 EST
Hm, I should probably clarify this request some more.  A major part of the
inconvenience that is caused is the refresh of literally tens of thousands of
files in the project just so that Eclipse will re-scan the directories and
library entries that specifically have disappeared.  I could probably go pick
each individual one out by hand, but that would also be a large waste of time.

Maybe an "easy" solution would be to simply make the quick fix to be a "attempt
to refresh all missing library/sourcepath/classpath entries" that would
selectively refresh all those things in the project that seem to be missing,
without refreshing the other 99% of the world.