Recursive Directory Bug in Eclipse Project Import

From Texas Instruments Wiki
Jump to: navigation, search

Problem Description

There exists a set of circumstances in which the Eclipse project manager will create a recursive directory structure when importing an existing project with the "Copy projects into workspace" option checked. The result is a deeply nested directory structure on your PC that Windows cannot delete because the path names are too long.

If this happens, there is a Perl script available (see link below) used to delete the directory structure.

Circumstances under which the Bug Occurs

Described below are one set of circumstances in which this bug occurs. It should be noted however that other circumstances may exist that are not known to the author of this article at this time.

  1. Project ---> Import Existing CCS/CCE Eclipse Project
  2. The 'Copy projects into workspace' option is checked
  3. The workspace directory is the same as the project directory


File Import Dialog Screenshot


The key element here is that the project directory and the workspace directory are the same. The project directory is the one that contains the CCS project folders as shown below.

Project Directory



research essay topics

Perl Script Download

A Perl script is available that can be used to delete the recursive directory structure. This is needed because Windows is unable to delete it due to long pathnames.

NOTE: Since the Perl script permanently deletes a directory tree,
care must be taken. This script is being provided "as-is" and TI is
not responsible for any data loss as a result of running the script.

The script will ask for confirmation prior to deleting anything.

Download the Perl script here: recursiveDelete.zip

Tested with ActiveState Perl 5.8.0 and 5.8.8 on Windows XP SP2