Out of synch... just delete...



  • For one of my projects, I am tasked with customizing an out of the box piece of open source php software. At some point the powers that be decided to start over at the latest and greatest version.

    After it is set up and working I add it to source control. After this I delete the outdated code on my local machine and get latest… this is actually not a gripe about source control, it worked perfectly…

    I open up my IDE (EclipsePHP) and when I open up my target file I am greeted with the following message, “File out of synch.” My bad I guess, so then I hit refresh in IDE on the project root. I get the same message… but then I realize there was a twist… all the files were deleted!!!! I didn’t lose any work, but who the hell would think the appropriate course of action on an out of date file would be to delete it?!?! Wtf?

     

    mod: edited out asshole Word html -dh



  • I don't get what happened exactly. You had files, then you checked-in files, then you deleted files, then you opened Eclipse (a fatal error), then Eclipse deleted files again?



  • @this_code_sucks said:

    get latest

    TRWTF is SourceSafe and Eclipse.



  • Miff, I am using SVN.

    @blakeyrat said:

    I don't get what happened exactly. You had files, then you checked-in files, then you deleted files, then you opened Eclipse (a fatal error), then Eclipse deleted files again?


    I got the new files fine, but when I tried to open them in EclipsePHP Eclipse deleted all the new files...

    Sorry for not being clear, here is a numerical list:

    1. Installed new software on the dev server

    2. Manager happy

    3. Commit new software to SVN

    4. Throw out old files on my local machine

    5. Bring down the new files on to local machine from SVN

    6. Open them with Eclipse

    7. Eclipse deleted the new files

    I know I am at fault for doing this wrong, in retrospect putting the new files in the same folder as the old ones while leaving the eclipse project settings the same was a mistake. However, when I fudge up like that I expect things not to work... but eclipse actually deleting the files (without any sort of prompting), that seems a little harsh.



  • Was thrown off by your use of "Get Latest" instead of "Update" as all.

    Last time I dared use Eclipse, the project file was part of the source control. I take it that's not the case for your setup?



  • @this_code_sucks said:

    1. Installed new software on the dev server

    2. Manager happy

    3. Commit new software to SVN

    Ok well first of all, that's the wrong order.

    @this_code_sucks said:

    5. Bring down the new files on to local machine from SVN

    What new files? Is this step a typo?

    Are you saying you used the same SVN repo local folder for two entirely different products? You're not clearing stuff up buddy, you're just confusing me more.

    EDIT: wait, are you saying the "new files" (presumably the changes your manager was happy with) were made DIRECTLY ON THE DEV SERVER? And were never checked-in to source control until you were finished?



  • @blakeyrat said:

    @this_code_sucks said:

    1. Installed new software on the dev server

    2. Manager happy

    3. Commit new software to SVN

    Ok well first of all, that's the wrong order.

    @this_code_sucks said:

    5. Bring down the new files on to local machine from SVN

    What new files? Is this step a typo?

    Are you saying you used the same SVN repo local folder for two entirely different products? You're not clearing stuff up buddy, you're just confusing me more.

    EDIT: wait, are you saying the "new files" (presumably the changes your manager was happy with) were made DIRECTLY ON THE DEV SERVER? And were never checked-in to source control until you were finished?



    Manager doesn't see a need for source control... I didn't actually put it on the dev server my self. I run three different unrelated projects (one .Net, one Java, one PHP), while I was off writing Java code, Manager and Jr tech person put the software on the dev server. Then they call me in to tweak, I refuse until it is in source control, which brings us to the start of the story.

    Ya, our process is WTF, but when I first took the project over from the consultants they were doing dev directly on the test server. Also, we have the excuse of having to work with a content accelerator making local dev hard. I don't have the time to get angry about the little wtfs.


  • @this_code_sucks said:

    5. Bring down the new files on to local machine from SVN

    6. Open them with Eclipse

     

    I take it step (5) is a checkout of some kind, prior to working on them in Eclipse.

    Does Eclipse have a plugin to do this? Or did you do this using an SVN front-end before letting Eclipse loose on them?

     



  • @this_code_sucks said:

    … all the files were deleted!!!!

    So, the short story is:

    You checked out files from your source control, opened them in Eclipse, which told you 'File out of sync', and promptly deleted them?

    That's a WTF alright, but in that case, the other WTF is that you wrote the whole story :)</p



  • I'm also confused on the walk through, but I believe somehow the SVN plugin is doing something there because this is not the default behaviour for Eclipse. I'm thinking about not deleting the files correctly from SVN.



  • @this_code_sucks said:

    Manager doesn't see a need for source control

    Your manager is a fucking idiot.


  • ♿ (Parody)

    @GNU Pepper said:

    @this_code_sucks said:

    Manager doesn't see a need for source control

    Your manager is a fucking idiot.

    He probably scribbles all over the files.



  • @Aeolun said:

    @this_code_sucks said:

    … all the files were deleted!!!!

    So, the short story is:

    You checked out files from your source control, opened them in Eclipse, which told you 'File out of sync', and promptly deleted them?

    That's a WTF alright, but in that case, the other WTF is that you wrote the whole story :)



    I didn't realize we were allowed to write one sentance wtfs. :D


  • @Aeolun said:

    @this_code_sucks said:

    … all the files were deleted!!!!

    So, the short story is:

    You checked out files from your source control, opened them in Eclipse, which told you 'File out of sync', and promptly deleted them?

    That's a WTF alright, but in that case, the other WTF is that you wrote the whole story :)



    I didn't realize we were allowed to write one sentance wtfs. :D


  • @ubersoldat said:

    I'm also confused on the walk through, but I believe somehow the SVN plugin is doing something there because this is not the default behaviour for Eclipse. I'm thinking about not deleting the files correctly from SVN.

    Had nothing to do with SVN. There is no SVN plugin intalled my Eclipise instance. But don't forget, this is Eclipse for PHP. I use Eclipse J2EE for my other project and it's never done that kind of thing.



  • @this_code_sucks said:

    I didn't realize we were allowed to write one sentance wtfs. :D
     

    I have plans to move TDWTF to twitter.


Log in to reply