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: How to rename the folder name?

Tool/software: Code Composer Studio

The IP_SPEAKER(old) on the left is corresponding to the last folder on the right.

I want to change the folder name on the right to the same name as project name, but I cannot open the project as the result.

 Why I cannot open the project after changing the folder name? Thanks

  • Andy,

    You can't rename the folder from the file-system. Renaming has to be done from with CCS itself so that all references to the name of the project are also updated.

    Here I have a project called LPG2 in my workspace. You can see the physical folder at the bottom part of the capture.

    I then rename that project from within CCS:

    After renaming the project in CCS you can see that both the project name in CCS and the physical folder are updated:

    If you have manually renamed the folder then you have broken the linkage from CCS to where the project is located. The workspace in CCS has a list of their projects and locations. You changed the location.  The projects files themselves also have many references to the project name as well.

    Regards,

    John

  • Thanks.

    Actually, I've done this before.

    try to rename

    folder's name didn't change

    That's why I want to change folder's name directly.

  • Is the project inside your workspace or is it located in another location?
  • Hi, it's located in another location.
  • Andy,

    Ok that scenario is a little different then.

    For the case where the project is located outside of the workspace then the project name and the folder name are not directly tied. So doing a rename from within CCS will change the name of the project within the project file and workspace but not the name of the folder. Manually renaming the folder would break the linkage to the workspace.

    I would do it this way:

    1) rename the project via CCS

    2) remove the project from your workspace by right clicking on the project in CCS and selecting. Delete. Make sure to NOT check the box to delete the files from the file system.

    3) rename the folder in your file system

    4) import the project into your workspace. Make sure to uncheck the box to copy the project into your workspace.

    Here I renamed and you can see the new name in CCS but not in the file system

    Now I remove it from my workspace

    I go to the file system and rename the folder.

    Now I import it back into my workspace

    Now it is back in CCS and pointing to the project in the new folder

    Regards,

    John

  • Hi.
    What if I want to directly change name from CCS, how do I do? Change workspace path?
  • Andy,

    In this case you cannot do it from within CCS. In this case the CCS workspace is noting that it has project X in location Y (where Y is outside of the workspace). For that scenario the general assumption is that the project is outside of the workspace as it is being managed by something else.

    If the project resides inside the workspace then renaming from within CCS will rename the project and the folder.

    Regards,
    John
  • Hi.

    I switched workspace to the location where project is, therefore, from now on, the project resides inside the workspace(as image). Then I found my personal CCS setting is all gone(go back to default).

    Then I decided copy files ".jxbrowser-data", ".metatdata" and "RemoteSystemsTempFiles" from previous location to the location where project is.

    Although personal setting is back, but I still cannot change project's name directly from within CCS.

  • So you created a new workspace in the parent folder where the projects were located?

    The way I would do it is to use your original workspace that has all of your preferences.
    Remove the projects from the workspace. Select them and delete. Say no to removing the files from the workspace.
    Then go to Project -> Import CCS Projects
    Select the projects and import them into your workspace. Make sure to have the Copy into workspace box checked.
    This will copy the project into your workspace folder. You will be able to rename the project in CCS.

    John