Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366122 - Error clicking tab of a file that doesn't exist anymore
Summary: Error clicking tab of a file that doesn't exist anymore
Status: CLOSED DUPLICATE of bug 186977
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7.1   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-08 17:12 EST by Alessio Pollero CLA
Modified: 2011-12-14 05:31 EST (History)
2 users (show)

See Also:


Attachments
Eclipse error log (116.57 KB, application/octet-stream)
2011-12-08 17:13 EST, Alessio Pollero CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessio Pollero CLA 2011-12-08 17:12:58 EST
Build Identifier: M20110909-1335

After deleting a project that had file opened when you click on a file tab to close the file you will get an exception in a MessageBox.

The exception says : 

Ignored attempt to add saveable that was already registered

Reproducible: Always

Steps to Reproduce:
1.Open some file of a project A 
2.Delete the entire A project from the Package Explorer
3.Try to close the opened file related to the project A
Comment 1 Alessio Pollero CLA 2011-12-08 17:13:47 EST
Created attachment 208128 [details]
Eclipse error log
Comment 2 Dani Megert CLA 2011-12-09 04:51:22 EST
Alessio, I think your steps are incomplete. I suspect that you did something like this:

1. opened editor(s)
2. exit Eclipse
3. start Eclipse
4. delete the project
5. click on an editor tab of a deleted file
==> exceptions.
Comment 3 Dani Megert CLA 2011-12-09 04:53:19 EST

*** This bug has been marked as a duplicate of bug 186977 ***
Comment 4 Alessio Pollero CLA 2011-12-09 15:08:04 EST
Steps to reproduce :

1) Open Eclipse, create a project and some java files inside it.
2) Open some files in the Java Editor 
3) Close eclipse
4) Open Eclipse (you will find your files opened as you leave it when previously closed eclipse)
5) Go in Package explorer 
6) Select the project which that opened files belongs.
7) Delete the project 


I've reproduced this error on Mac OS X Lion, Windows 7, Debian 6 Squeeze .


Eclipse SDK

Version: 3.7.1
Build id: M20110909-1335
Comment 5 Dani Megert CLA 2011-12-14 05:31:13 EST
(In reply to comment #4)
> Steps to reproduce :
> 
> 1) Open Eclipse, create a project and some java files inside it.
> 2) Open some files in the Java Editor 
> 3) Close eclipse
> 4) Open Eclipse (you will find your files opened as you leave it when
> previously closed eclipse)
> 5) Go in Package explorer 
> 6) Select the project which that opened files belongs.
> 7) Delete the project 
> 
> 
> I've reproduced this error on Mac OS X Lion, Windows 7, Debian 6 Squeeze .

After (auto-) closing the active editor, the workbench tries to activate an editor whose file is also part of the deleted project. And this what bug 186977 covers.