Bug 29331 - Problems with workspace [build path]
Summary: Problems with workspace [build path]
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-10 22:44 EST by Ron Baldwin CLA
Modified: 2003-06-02 06:12 EDT (History)
0 users

See Also:


Attachments
org.eclipse.jdt.core\pref_store.ini (4.62 KB, text/plain)
2003-01-15 16:11 EST, Ron Baldwin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ron Baldwin CLA 2003-01-10 22:44:46 EST
I have two problems with my workspace:

1. Everytime I exit/reload Eclipse all off my configured classpath variables
disappear, forcing me to reload a preferences export file to get them back.
2. In Update Manager, "Show Matching Features Only" does not do anything.

I know these are workspace related, because if I start with an empty workspace
they don't occur.  In the interest of not giving you 22MB of workspace and the
fact that it contains proprietary source code, what parts of my workspace do you
need to debug this?  I have made a copy of my workspace as of this bug report so
I can give you whatever files you need.
Comment 1 Sonia Dimitrov CLA 2003-01-13 11:30:41 EST
Moving to JDT UI for comment.
Comment 2 Dirk Baeumer CLA 2003-01-13 12:13:48 EST
Martin, any ideas ?
Comment 3 Martin Aeschlimann CLA 2003-01-14 04:01:55 EST
JCore knows about the internals. Which file stores the classpath variables?
Comment 4 Philipe Mulet CLA 2003-01-15 13:08:14 EST
Variable values are stored in the jdt/core preference store:

<workspace>\.metadata\.plugins\org.eclipse.jdt.core\pref_store.ini
Comment 5 Ron Baldwin CLA 2003-01-15 16:11:56 EST
Created attachment 2999 [details]
org.eclipse.jdt.core\pref_store.ini
Comment 6 Philipe Mulet CLA 2003-01-15 17:39:39 EST
Ron - which build are you running ?
Comment 7 Ron Baldwin CLA 2003-01-15 17:49:39 EST
2.1 M4.  Also, I upgrade Eclipse at every milestone release.  What are the
chances that my workspace is "decaying" over time due to this?
Comment 8 Olivier Thomann CLA 2003-01-17 16:01:21 EST
I could not reproduce the problem using latest code and your preferences files.
This might be related to something else.
Comment 9 Ron Baldwin CLA 2003-01-17 16:47:09 EST
I can either give you more files, or you can tell me which drop you want me to
test against...
Comment 10 Olivier Thomann CLA 2003-01-17 16:49:12 EST
Could you please try to test it again the integration build 0115? It is 
difficult to make a diagnosis based on a single file. The problem might be 
somewhere else. I will investigate on Monday.
Comment 11 Ron Baldwin CLA 2003-01-17 17:44:18 EST
Both problems still occur in all their glory when running I20030115.

Just to clarify, when I say the variables disappear, I mean they do not show up
in Preferences -> Java -> Classpath Variables and I get a bunch of "Unbound
classpath variable path" tasks.  However, they do still exist in the
pref_store.ini file.
Comment 12 Ron Baldwin CLA 2003-01-17 18:15:36 EST
I just had the disappearing variable issue happen to me *again* on a new
workspace I started from scratch.  Fortunately, I saved a backup of my workspace
right after I recreated it for 2.1M4, so all I lost was stuff like local
history.  I have saved a copy of this 2nd corrupt workspace as well.
Comment 13 Olivier Thomann CLA 2003-01-22 10:04:49 EST
Could you please provide us this saved workspace? It seems that you are losing
all preferences. We need to track it down.
Thansk for your help.
Comment 14 Ron Baldwin CLA 2003-01-22 15:47:48 EST
I can, but I can't attach it to this bug because it's 1.95MB, and Bugzilla is
limiting me to 1MB attachments.  I can either email it to someone, or you can
increase Bugzilla's tolerance for large images.
Comment 15 Olivier Thomann CLA 2003-02-04 15:42:49 EST
I didn't have better luck to reproduce the problem with the workspace you sent
me. I really don't know what to do in order to build up steps to reproduce for
this problem.
With your workspace, everything is crahing immediately because it cannot reopen
existing editors.
Comment 16 Olivier Thomann CLA 2003-04-08 14:31:31 EDT
Could you please give a try with Eclipse 2.1? I could never reproduce your
problem starting from scratch. Let me know if this is still happening.
Thanks.
Comment 17 Olivier Thomann CLA 2003-04-16 08:56:08 EDT
Closing. Reopen if the problem still occurs.
Comment 18 Ron Baldwin CLA 2003-04-16 13:22:51 EDT
Lately I've been running with -data set to a UNC instead of a mapped drive,
which seems to have alleviated the problem.  Win2k has a bug where a network
drive can be connected but shows as disconnected.  Even though the drive can be
used, it causes intermittent problems (occasional bogus errors when opening
files, eventually explorer will GPF).  To fix this, I remap the drive out from
under the current mapping, but this kills any existing open file handles for
that drive.  This is usually ok, but causes problems for Eclipse.  

It would be better if Eclipse was more tolerant of flaky network connections,
and it should definitely not leave you with a corrupt workspace.
Comment 19 Olivier Thomann CLA 2003-04-16 13:28:47 EDT
I perfectly agree with you. Open a bug report against Platform/Core describing 
your settings. Thanks for your report.