Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326642

Summary: Eclipse stores strange "opt" directory (with artifacts.xml) above workspace.
Product: [Eclipse Project] Equinox Reporter: MH <mhilpert>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: brandon.cheng+eclipse, darryl, egalvez, fs5, pascal, prakash, pwebster, remy.suen
Version: 3.6.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=317562
Whiteboard:

Description MH CLA 2010-09-30 04:07:18 EDT
Build Identifier: 20100917-0705

I have my Eclipse workspace folder on a Windows Partition "D:". In the same partition there is an "opt" directory. I reneamed it to see if this directory is required. After next start of Eclipse, a new "opt" driectory was created:

D:\Eclipse_workspace\
D:\opt\

The content of this "opt" directory is a serious of subdirectory but with only 1 file:

D:\opt\public\technology\epp\epp_build\36\eclipse.S-3.6RC4-201006031500\artifacts.xml

It seems that this directory is Eclipse specific. So this should be stored within the eclipse installation directory, the eclipse workspace directory or at least in a directory that is configurable.





Reproducible: Always

Steps to Reproduce:
1. Start Eclipse on Windows (XP) with a workspace on a separate partition.
2.
3.
Comment 1 Remy Suen CLA 2010-09-30 06:29:16 EDT
Which Eclipse download did you get from eclipse.org? What is the file's name?
Comment 2 MH CLA 2010-10-04 02:57:16 EDT
eclipse-java-helios-win32.zip
Comment 3 Remy Suen CLA 2010-10-04 06:14:13 EDT
(In reply to comment #2)
> eclipse-java-helios-win32.zip

Do you get this problem with the Eclipse SDK?
http://download.eclipse.org/eclipse/downloads/drops/R-3.6.1-201009090800/index.php
Comment 4 MH CLA 2010-10-05 03:44:39 EDT
Nope, with eclipse-SDK-3.6.1-win32.zip the opt directory is not created (with the same workspace). But at startup, there is the same NullPointerException:

---------------------------
!ENTRY org.eclipse.core.jobs 4 2 2010-10-05 09:40:20.778
!MESSAGE An internal error occurred during: "Refreshing external folders".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.jdt.internal.core.ExternalFoldersManager$RefreshJob.run(ExternalFoldersManager.java:387)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
----------------------------

See bug 326517.
Comment 5 MH CLA 2010-10-05 03:51:24 EDT
Oh Great: this test destroyed my working eclipse! I just started eclipse-SDK-3.6.1-win32.zip to see if the opt directory is created. Then I closed this eclipse and started my normal eclipse: now several Java projects are missing in the package explorer!!! And the FindBugs perspective shows errors about missing view. ARGGGHHH!!! :-((((

The .log is full of errors:

---------------------
.....
!ENTRY org.eclipse.jface 2 0 2010-10-05 09:46:09.025
!MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2010-10-05 09:46:09.025
!MESSAGE A conflict occurred for ALT+CTRL+A:
Binding(ALT+CTRL+A,
	ParameterizedCommand(Command(org.eclipse.team.svn.ui.command.ShowAnnotationCommand,Show Annotation...,
		,
		Category(org.eclipse.team.svn.ui.command.category,SVN,null,true),
		,
		,,true),null),
	org.eclipse.ui.defaultAcceleratorConfiguration,
	org.eclipse.ui.contexts.window,,,system)
Binding(ALT+CTRL+A,
	ParameterizedCommand(Command(AUTOGEN:::org.vssplugin.menu.actionSet/org.vssplugin.menu.action.add,Add,
		,
		Category(org.eclipse.core.commands.categories.autogenerated,Uncategorized,Commands that were either auto-generated or have no category,true),
		ActionDelegateHandlerProxy(null,org.vssplugin.ui.menuactions.MenuAddAction),
		,,true),null),
	org.eclipse.ui.defaultAcceleratorConfiguration,
	org.eclipse.ui.contexts.window,,,system)

!ENTRY org.eclipse.jface 2 0 2010-10-05 09:46:09.025
!MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2010-10-05 09:46:09.025
!MESSAGE A conflict occurred for ALT+CTRL+U:
Binding(ALT+CTRL+U,
	ParameterizedCommand(Command(org.eclipse.team.svn.ui.command.UpdateCommand,Update,
		,
		Category(org.eclipse.team.svn.ui.command.category,SVN,null,true),
		,
		,,true),null),
	org.eclipse.ui.defaultAcceleratorConfiguration,
	org.eclipse.ui.contexts.window,,,system)
Binding(ALT+CTRL+U,
	ParameterizedCommand(Command(AUTOGEN:::org.vssplugin.menu.actionSet/org.vssplugin.menu.action.undocheckout,Undo Check Out,
		,
		Category(org.eclipse.core.commands.categories.autogenerated,Uncategorized,Commands that were either auto-generated or have no category,true),
		ActionDelegateHandlerProxy(null,org.vssplugin.ui.menuactions.MenuUndoCheckOutAction),
		,,true),null),
	org.eclipse.ui.defaultAcceleratorConfiguration,
	org.eclipse.ui.contexts.window,,,system)

!ENTRY org.eclipse.jface 2 0 2010-10-05 09:46:09.025
!MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2010-10-05 09:46:09.025
!MESSAGE A conflict occurred for ALT+CTRL+I:
Binding(ALT+CTRL+I,
	ParameterizedCommand(Command(org.eclipse.team.svn.ui.command.AddToSVNIgnoreCommand,Add to svn:ignore...,
		,
		Category(org.eclipse.team.svn.ui.command.category,SVN,null,true),
		,
		,,true),null),
	org.eclipse.ui.defaultAcceleratorConfiguration,
	org.eclipse.ui.contexts.window,,,system)
Binding(ALT+CTRL+I,
	ParameterizedCommand(Command(AUTOGEN:::org.vssplugin.menu.actionSet/org.vssplugin.menu.action.checkin,Check In,
		,
		Category(org.eclipse.core.commands.categories.autogenerated,Uncategorized,Commands that were either auto-generated or have no category,true),
		ActionDelegateHandlerProxy(null,org.vssplugin.ui.menuactions.MenuCheckInAction),
		,,true),null),
	org.eclipse.ui.defaultAcceleratorConfiguration,
	org.eclipse.ui.contexts.window,,,system)

!ENTRY org.eclipse.jface 2 0 2010-10-05 09:46:09.041
!MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2010-10-05 09:46:09.041
!MESSAGE A conflict occurred for ALT+CTRL+R:
Binding(ALT+CTRL+R,
	ParameterizedCommand(Command(org.eclipse.team.svn.ui.command.CompareWithRevisionCommand,URL...,
		,
		Category(org.eclipse.team.svn.ui.command.category,SVN,null,true),
		,
		,,true),null),
	org.eclipse.ui.defaultAcceleratorConfiguration,
	org.eclipse.ui.contexts.window,,,system)
Binding(ALT+CTRL+R,
	ParameterizedCommand(Command(AUTOGEN:::org.vssplugin.menu.actionSet/org.vssplugin.menu.action.refresh,Refresh,
		,
		Category(org.eclipse.core.commands.categories.autogenerated,Uncategorized,Commands that were either auto-generated or have no category,true),
		ActionDelegateHandlerProxy(null,org.vssplugin.ui.menuactions.MenuRefreshAction),
		,,true),null),
	org.eclipse.ui.defaultAcceleratorConfiguration,
	org.eclipse.ui.contexts.window,,,system)

!ENTRY org.eclipse.core.jobs 4 2 2010-10-05 09:46:09.369
!MESSAGE An internal error occurred during: "Refreshing external folders".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.jdt.internal.core.ExternalFoldersManager$RefreshJob.run(ExternalFoldersManager.java:387)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
...
------------------------------------------------------

This is the first time that a new eclipse version has such bad effects. I hope I can recreate all my projects ...
Comment 6 MH CLA 2010-10-05 03:54:14 EDT
Oh man, this gets worse: I try to get my projects back, but I can't: they are not hidden and when I create a new project I get:

A project with that name already exists in the workspace.


HELP!!!
Comment 7 Remy Suen CLA 2010-10-05 05:53:41 EDT
(In reply to comment #5)
> now several Java projects
> are missing in the package explorer!!!

Are your projects missing from the 'Navigator' view?

> And the FindBugs perspective shows
> errors about missing view. ARGGGHHH!!! :-((((

The SDK doesn't include the FindBugs plug-in. So unless you installed it, those views aren't going to come up of course.
Comment 8 Paul Webster CLA 2010-10-05 07:44:33 EDT
(In reply to comment #6)
> 
> HELP!!!

To get your projects back, you can create a new workspace and then use File>Import...>Existing projects into workspace.  Then point at your old workspace.  If you copy them out, then you can completely abandon your old workspace.

PW
Comment 9 MH CLA 2010-10-06 04:06:25 EDT
*Phew* I got it back working: I opened the "Project Explorere" and it contained all projects. The I select a project that was missing in the Package Explorer and clicked

   context menu > Show In > Explorer

a request dialog appeared but I forget the text it displayed (something with "... change to windows display ..."), accepted with "Okay" and the missing projects reappeared int he package explorer.

I wonder how this could happen as this never happened so far when I donwloaded and installed new Eclipse versions and startet the new version with the old workspace.

I guess, I have to make a backup of my workspace everytime I change the Eclipse version ... but my workspace is over 350 MB ...

But strange: after I got back to my former Eclipse version, the opt directory ist not generated anymore (so far ...)!?!  Is this opt directory just generated when specific events in Eclipse occur?
Comment 10 MH CLA 2010-10-06 04:12:51 EDT
(In reply to comment #8)
> (In reply to comment #6)
> > 
> > HELP!!!
> 
> To get your projects back, you can create a new workspace and then use
> File>Import...>Existing projects into workspace.  Then point at your old
> workspace.  If you copy them out, then you can completely abandon your old
> workspace.
> 
> PW

By the way: in hope to "clean" my workspace, I tested your suggestion: but the import didn't find my projects in the old workspace (just 1 profile project - all my Java projects were not found!).
Comment 11 Paul Webster CLA 2010-10-06 08:31:55 EDT
(In reply to comment #9)
>    context menu > Show In > Explorer
> 
> a request dialog appeared but I forget the text it displayed (something with
> "... change to windows display ..."), accepted with "Okay" and the missing
> projects reappeared int he package explorer.

That means your package explorer was probably set to use a working set, and not the window working set.

The Show In was asking if you want to switch back to the window working set.

PW
Comment 12 Brandon Cheng CLA 2010-10-07 19:18:46 EDT
It's not the folder above the workspace, rather the drive the workspace is contained in. So [X]:\opt

Some of my users over at PortableApps.com reported the bug. The problem only started occurring after they updated to Eclipse 3.6.1
http://portableapps.com/node/22236#comment-159090
Comment 13 Eddie Galvez CLA 2010-10-12 16:31:10 EDT
+1 I have C:\eclipse36-64 and now I also have:

"C:\opt\public\technology\epp\epp_build\36\eclipse.S-3.6RC4-201006031500\artifacts.xml"
Comment 14 Remy Suen CLA 2010-10-12 16:38:00 EDT
(In reply to comment #13)
> +1 I have C:\eclipse36-64 and now I also have:
> 
> "C:\opt\public\technology\epp\epp_build\36\eclipse.S-3.6RC4-201006031500\artifacts.xml"

And which download did you get?
Comment 15 Eddie Galvez CLA 2010-10-12 16:40:42 EDT
well, the opt folder was dated from months back, and I might have ran some RC over the lifetime of 3.6 development, but as it stands now I run a 3.6 install that just a few days ago I software-updated to 3.6.1.

One of my developers was talking to me about the "opt" directory bug (and usually they don't run any RC and recently upgraded to 3.6.1 at my direction), which made me look for, find this bug and just +1 it.

If you think this isn't an issue in release downloads then you may ignore me. I'll ping back if I ever see it again now that I am done with RC versions for a while.
Comment 17 Pascal Rapicault CLA 2010-11-09 22:32:03 EST

*** This bug has been marked as a duplicate of bug 317562 ***