The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

Out of synch... just delete...

Last post 03-08-2013 1:50 PM by dhromed. 16 replies.
Page 1 of 1 (17 items)
Sort Posts: Previous Next
  • 03-07-2013 3:34 PM

    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

  • 03-07-2013 5:16 PM In reply to

    Re: Out of synch... just delete...

    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 couldn't make my shit work, so here's a Godzilla head.


    "There is no such thing as a diet." - Lorne Kates

  • 03-07-2013 6:48 PM In reply to

    Re: Out of synch... just delete...

    this_code_sucks:
    get latest

    TRWTF is SourceSafe and Eclipse.


    [Sanity Not Available until further notice. The trolls have won.]

  • 03-07-2013 7:56 PM In reply to

    Re: Out of synch... just delete...

    Miff, I am using SVN.

    blakeyrat:
    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.

  • 03-07-2013 8:03 PM In reply to

    Re: Out of synch... just delete...

    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?


    [Sanity Not Available until further notice. The trolls have won.]

  • 03-07-2013 8:03 PM In reply to

    Re: Out of synch... just delete...

    this_code_sucks:

    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:
    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?

      <-  I couldn't make my shit work, so here's a Godzilla head.


    "There is no such thing as a diet." - Lorne Kates

  • 03-07-2013 8:18 PM In reply to

    Re: Out of synch... just delete...

    blakeyrat:
    this_code_sucks:

    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:
    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.
  • 03-07-2013 9:54 PM In reply to

    Re: Out of synch... just delete...

    this_code_sucks:

    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?

     

  • 03-08-2013 1:42 AM In reply to

    Re: Out of synch... just delete...

    this_code_sucks:

    … 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 :)

    Filed under:
  • 03-08-2013 4:17 AM In reply to

    Re: Out of synch... just delete...

    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.
  • 03-08-2013 5:45 AM In reply to

    Re: Out of synch... just delete...

    this_code_sucks:
    Manager doesn't see a need for source control

    Your manager is a fucking idiot.

  • 03-08-2013 6:02 AM In reply to

    Re: Out of synch... just delete...

    GNU Pepper:

    this_code_sucks:
    Manager doesn't see a need for source control

    Your manager is a fucking idiot.

    He probably scribbles all over the files.
  • 03-08-2013 9:18 AM In reply to

    Re: Out of synch... just delete...

    GNU Pepper:

    this_code_sucks:
    Manager doesn't see a need for source control

    Your manager is a fucking idiot.

     

    Provided said manager (a) doesn't use their viewpoint as a barrier to implementing source control and (b) doesn't interract with it in any way (leaves code well alone) I don't see the fucking idiot problem.

     

  • 03-08-2013 12:18 PM In reply to

    Re: Out of synch... just delete...

    Aeolun:
    this_code_sucks:

    … 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
  • 03-08-2013 12:18 PM In reply to

    Re: Out of synch... just delete...

    Aeolun:
    this_code_sucks:

    … 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
  • 03-08-2013 12:20 PM In reply to

    Re: Out of synch... just delete...

    ubersoldat:
    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.

  • 03-08-2013 1:50 PM In reply to

    Re: Out of synch... just delete...

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

    I have plans to move TDWTF to twitter.


    boomzilla: I think the obvious answer is for everyone to just stop programming.

Page 1 of 1 (17 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems