This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS Deleting Files Project Files

Hello,

I am running CCS Version: 4.2.1.00004 and it has happened several times today, that a build will fail and it will delete either a) all my source files, or b) just recently, it deleted my entire project.  Please note, this is not removing it from the CCS workspace, it is deleting it entirely from the hard drive.

Please advise what info you need to debug this.
Thanks,
Will

 

 

  • Will,

    I am sorry to hear that. I haven't seen anything as critical as this before and sincerely I don't know where to start, since it seems CCS does not crashes, right? The closest thing that CCS does that actually delete files is when you issue a Clean or a Rebuild Project (all .out and .obj files are deleted, together with some intermediate files).

    If you haven't done so, I would first check the hard disk for errors using chkdsk or any other low-level tool - if the disk is getting corrupt for whatever reason, it is always a good idea to correct any possible issues before attempting to fix it.

    After that I would see if I can recover the files using an undelete tool (many are available on the internet). Recovering the lost files could give you a better clue to what may have happened.

    I would then reopen CCS but cleaning the workspace - check step 2 of the General IDE section of the troubleshooting guide:

    http://processors.wiki.ti.com/index.php/Troubleshooting_CCS

    After that I would try to put the project in a different drive/directory and import it to the workspace, but leaving it in the original location (uncheck the option Copy Project to workspace during the import process). This may help indicate if the source of errors is related to the current drive.

    After importing the project I would then close CCS and save the entire workspace directory and the original source file places somewhere else - you can quickly recover if the issue comes back.

    You mentioned that this only occurs when a build fails - what is the exact error message? Also, when this happens does CCS crash or simply remove everything from the workspace? What is the operating system used?

    Ultimately we would need the project and the workspace snapshot to try to reproduce the same error here.

    Best regards,

    Rafael

  • What does the structure of the project look like?  As Rafael mentions CCS will clean before doing a rebuild.  As part of this clear it may delete the project config directory i.e. the \Debug or \Release folder.

     

    john

  • Hello,

    Thanks for the replies.  The project directory structure is pretty standard, but looks like this:

    Root Folder
       [CCS Project Files]
       inc
          [Project header files]
       src
          [Project source files]
       Debug
          [Generated folder for debug build]
       Release
          [Generated folder for release build]

     

     

  • Rafael,

    It is correct that CCS does not crash.  I seem to be able to reproduce it the easiest when i do a 'Rebuild All' followed by a 'Build'.  I get the message that there is nothign to be done to build the project, which is correct, but then it deletes the following files (Directory structure was mentioned in another reply).

    Root Folder
       [Removes all CCS project files except .project]
       inc
          [Removed all the files, but not the directory
       src
          [All files and directory deleted]
       Release
          [All files deleted, directory still present]

    I will give it a try one some other machines and see if it is a localized problem with mine.  Thanks for the helps so far.  I will try the other steps you mentioned soon hopefully...i am trying to see right now if I can consistently reproduce it.

    Thanks

     

  • Thanks, William. Please let us know the results of your experiments.

    And yes, the project structure is pretty standard and should not cause any trouble.

    Cheers,

    Rafael

  • I have tried to figure this out a bit further, but still don't have any ideas as to why it is deleting my files...this only seems to happen with one specific project.

    The project is a dependent project of the main library...I am able to reproduce it fairly regularly.  If i rebuild the project, no problems, all files are cleaned and rebuilt ok. the problem is when i try to Build the project, (either the main project or the dependent project), it deletes the entire dependent project (all src and inc folders) and tries to rebuild it.

    Not sure if this helps or makes things more difficult, but let me know what you think.

    Thanks

  • If you have created project through copying old project. Even if you edit the new project, doing a simple Ctrl-Z (Undo) when the focus is on project view will remove entire new project without any prompt. This is quite dangerous as you might think you are Undoing something in editor.

    It just happen to me and I lost ~1hr of work.

    It is unbelievable that this have not been fixed for 6 years :)

    To workaround this, restart CCS when copying project. This helps clear history and avoid tragedy.
  • Peng,

    I am not able to reproduce this in the CCSv7 beta which uses Eclipse 4.6.  I can reproduce it in CCSv6.2 which uses Eclipse 4.5.

    In Eclipse 4.6 the option to undo the copy action doesn't appear.  Below is a quick video capture showing the behavior in CCSv7.

    Regards,

    John

  • I am using CCS 6.1.2 and it just deleted my whole directory with all my projects.  I told it to delete just one single project and it deleted project and whole root folder with other projects.  Not happy, last backup was 6 days ago.  No way to recover from what I can tell, files do not go to recycle bin.