Bug 335435 - Project resources deleted from 'bin' folder
Summary: Project resources deleted from 'bin' folder
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-26 06:31 EST by hanslim77 CLA
Modified: 2011-01-27 05:42 EST (History)
5 users (show)

See Also:


Attachments
Log File (134.19 KB, text/plain)
2011-01-26 09:48 EST, hanslim77 CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description hanslim77 CLA 2011-01-26 06:31:00 EST
Build Identifier:  20100917-0705

It crashed at one point then everything in my workspace got erased, everything except the classes and source codes.. everything else got wiped... images... sound files.. sprites... animations, databases, sprites(lots of art and edited images that I'll never get back) and pretty much everything... is this normal or did my eclipse just really fuck up? now have to remake every single resource from scratch (save for a small number I backed up previously), just started using it, swapped from netbeans and I like it a lot more... though now... if it really is a ticking time bomb waiting to erase several months of work(and possibly cost me a lot more than just those), I'll probably switch back... this is just bullshit..

Reproducible: Didn't try
Comment 1 Szymon Brandys CLA 2011-01-26 06:43:37 EST
I've been using Eclipse SDK for years. I haven't seen something like that before. 

Do you use just Eclipse SDK or you have some extra plug-ins installed? Do you see any errors in the log?
Comment 2 hanslim77 CLA 2011-01-26 07:00:53 EST
not a single one, no plugins, mods or extras, not even JMF though planning to add it... currently remaking all my images.. thankfully sprites are intact(that would be hell to make) and mostly all that's lost was a few recent entries in one of the databases a lot of image files and backgrounds, come composites of others, others from scratch ._. though... very happy I backed up a few days back(was actually transferring all my work to another comp), or else, I'd be really pissed...

though as I said.. not sure what it did but while coding I accidentally pressed run(on a harmless animation tester I made, works fully no leaks or bugs, just to prepare for this game I was going to make, it stored and preloaded images from bin/images/ folder automatically and then played animations on queue, ran a few timers but that's it.. anyway, it crashed and when I reloaded, it said null pointers to my imports and then when I went to the folder... well, it wasn't pretty...

that's the gist of what I was doing, other than preparing to watch Chuck... have photoshop on as well if it means anything.. all classes and source codes are fully intact, just every single imported non jar resource got wiped.. and they're really gone, full system scan.. 

Good Luck sorting it out, and hopefully it's one of those incredibly rare problems... like chimerism or something... it would be a real dealbreaker if it happens again.. backing up every build anyway just to be sure...
Comment 3 Remy Suen CLA 2011-01-26 08:09:11 EST
(In reply to comment #2)
> it stored and preloaded images
> from bin/images/ folder

Where are your images usually stored? In src/images/? Is the bin/ folder where your Java class files are generated?
Comment 4 John Arthorne CLA 2011-01-26 09:07:17 EST
Never heard of this either. Can you attach your error log (workspace/.metadata/.log). Could you also attach the .classpath file from a project that was deleted. Was it many projects or just one? Assuming the project itself wasn't deleted, you can also right click a project and select "Restore From Local History" to get back deleted files, as long as they were deleted from within Eclispe and not by an external process. In fact if this doesn't work to restore your files, chances are it was a process other than Eclipse that deleted them.
Comment 5 hanslim77 CLA 2011-01-26 09:48:19 EST
Created attachment 187638 [details]
Log File
Comment 6 hanslim77 CLA 2011-01-26 09:50:49 EST
And yes, in the bin since that's where my function reads them from, since that's where the class files are generated, are they not supposed to be there?
Comment 7 Remy Suen CLA 2011-01-26 09:59:29 EST
(In reply to comment #6)
> And yes, in the bin since that's where my function reads them from, since
> that's where the class files are generated, are they not supposed to be there?

http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/ref-jdt-faq.htm

http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/preferences/java/compiler/ref-preferences-building.htm
Comment 8 John Arthorne CLA 2011-01-26 10:04:54 EST
Ah, so you manually added those files to the bin/ folder. A "clean" build will start by deleting the contents of the bin folder... this isn't a folder you should be adding files to directly. Place additional resources in your src/ folder and the compiler will copy them to the bin folder automatically.

Unfortunately this looks like a case of user error, but I'll move to JDT folder in case there is something they can do here (detect files were added manually perhaps and warn user).
Comment 9 hanslim77 CLA 2011-01-26 13:01:10 EST
Thanks a lot then, sorry about that :) first time with eclipse after all(just my first week) and I do love the interface more than VS(though I still use this for C++ because of the familiarity) and it's a lot faster than netbeans(and less annoying...) thanks for the information and sorry for this, bye.
Comment 10 Dani Megert CLA 2011-01-27 02:57:56 EST
Also note that Eclipse out of the box protects you from doing that: the 'bin' folder is hidden.This means you had to disable some filters in order to even be able to put things into the 'bin' folder.
Comment 11 hanslim77 CLA 2011-01-27 03:57:19 EST
oh.. it's not hidden on mine, I'm on show hidden files but bin isn't a hidden folder on my eclipse, running on helios though that's pretty obvious...

and first time I put files in src it wouldn't compile properly, though it worked when I put it to bin, though now compiling with it in src works(no idea why though) but the bin folder is not hidden for me, if it means anything anyway. just clarifying.
Comment 12 Dani Megert CLA 2011-01-27 04:04:04 EST
(In reply to comment #11)
> oh.. it's not hidden on mine, I'm on show hidden files but bin isn't a hidden
> folder on my eclipse, running on helios though that's pretty obvious...
But then you changed the filters, right? Can you attach a screenshot?

> and first time I put files in src it wouldn't compile properly, though it
> worked when I put it to bin, though now compiling with it in src works(no idea
> why though)
You've probably set up the Java build patch wrong.
Comment 13 Markus Keller CLA 2011-01-27 05:40:37 EST
(In reply to comment #11)
> oh.. it's not hidden on mine, I'm on show hidden files but bin isn't a hidden
> folder on my eclipse, running on helios though that's pretty obvious...

In the Package Explorer and the Project Explorer, it is hidden by default. If you choose to use the Navigator, you're on your own.


(In reply to comment #12)
> You've probably set up the Java build patch wrong.

Either it was a broken build path, or you didn't actually build (maybe Project > Build Automatically was disabled?).
Comment 14 hanslim77 CLA 2011-01-27 05:42:39 EST
just ran it normally after I downloaded it, and the java build path was right... I set it all properly, though I guess putting them in bin without putting them in src too was a bad idea... thanks all the same though