Bug 577712 - Some files are disappearing automaticaly from the 'Project Explorer'
Summary: Some files are disappearing automaticaly from the 'Project Explorer'
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.22   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-09 09:12 EST by Thomas Vienna CLA
Modified: 2021-12-09 09:12 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 Thomas Vienna CLA 2021-12-09 09:12:42 EST
The work around for the bug that helped me:

create a new folder (=Java-Package) with a new name. I used the System-Filemanager.
copy the disappearing files to the new folder (=Java-Package).
correct the links (JavaCommand 'import') to the new folder.
delete the old files and the old folder.
As the problem happened in my case:

------------------------------------------------------------
I am using Eclipse IDE 2021-12 (4.22.0) for my Java project.
After importing an existing Project into Workspace all was fine.
While building the project, some files disappeared from the 'Project Explorer'-tree.
These files still do exist as the System-File-Explorer shows. So no file got deleted. But no more listed.
After Refresh (F5) most of the files got listed again in the 'Project Explorer'-tree.
Without doing anything an Eclipse background process let files again disappear from the 'Project Explorer' - Tree. Compilation of the project leads to missing files.
Sometimes 3 files disappeared. Some seconds later more files disappeared. Sometimes it leads to an empty Java-Package. It was random.
This disappearance of some files happened without any input from me. It was done by a flawed Eclipse background process. It felt like watching a movie.
What does not help in my case: Restarting of eclipse, Close and Open the project, editing the files.

BUG 255795 shows the problem very well. Especially the screenshots. But the way it occurs is different.

BUG 98551 is very similar. But perhaps in BUG 98551 all (?) source files disappear. In my case only a few of them.

Perhaps the Workspace-.methdata from an older Eclipse-Release makes the problem.

How it should work:
After Refreshing (F5) all really existing files should be listed and should stay listed.