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.
I am having trouble keeping 3 kinds of names straight:
A. The project name (as displayed in the "C/C++ Projects"
window of CCSv4,
B. The project folder (as displayed in Windows Explorer),
C. The working copy folder (as displayed in the Tortoise
SVN repo browser)
These are all for the same project, mind you.
I originally thought the first 2 were the same, but now I am
seeing exceptions--not sure how they happened. It may be
true when I create the project with the CCS wizard, but that
isn't always desirable.
1. Is it possible to re-name either A or B without
confusing CCS? If so, how?
2. Is it possible to designate an existing folder a CCS
project? If so, how?
Hi Gary,
Gary Lynch said:I originally thought the first 2 were the same, but now I am
seeing exceptions--not sure how they happened
Yup, the project name in the project view and the actual name of the project folder can be different. By default, CCS will create a project folder of the same name as the project name. But if you choose the custom option, you can specify a custom folder location which can be a different name as the project.
Gary Lynch said:1. Is it possible to re-name either A or B without
confusing CCS? If so, how?
The best way is to right-click on the project folder and in the context menu, select 'Refactor -> Rename'. This will assure CCS knows about the name change. If the 'default' location was specified where the project folder of the same name as the project was created, this refactoring will also rename the actual project folder name. If a 'custom'' location was used, it will not change the project folder name.
Gary Lynch said:2. Is it possible to designate an existing folder a CCS
project? If so, how?
When creating a new project, uncheck the 'Use default location' box and then specify the existing folder.
Thanks
ki
I got one step beyond this screen in the wizard before
hitting this dialog box:
Essentially, I am trying to make a project folder out of a
source deck checked into our revision control system by
another programmer and checked out by me. I have noticed
that when I check a source deck in, whatever CCS uses to
identify it as a project gets lost (I have never known
exactly what that was), but apparently he did something
different.
Is there a recovery from this?
Gary Lynch said:I have noticed
that when I check a source deck in, whatever CCS uses to
identify it as a project gets lost (I have never known
exactly what that was), but apparently he did something
different.
The folder you are trying to create a project in already has a project of the same name. What you mean by 'lost' is why you can't see the project in your workspace or why CCS has no reference of it, correct?
On Friday, July 13, 2012 4:34 PM; Ki-Soo Lee wrote:
>
> The folder you are trying to create a project in already has
> a project of the same name.
>
I was trying to create a project in a pre-existing folder,
using the 'uncheck the box' technique you described earlier.
As it turns out, I gave the project a different name than it
had in the other programmer's workspace.
>
> What you mean by 'lost' is why you can't see the project in
> your workspace or why CCS has no reference of it, correct?
>
I haven't done this in a while, but in the past I have tried
to add a project by pasting a folder from an outside source
into my workspace directory. It never worked, as the
pasted-in folder was invisible in the "C/C++ Projects"
window.
Gary Lynch said:I was trying to create a project in a pre-existing folder,
using the 'uncheck the box' technique you described earlier.
As it turns out, I gave the project a different name than it
had in the other programmer's workspace.
Sorry, I mentioned same name but basically you can't have multiple projects sharing the same project folder. That is because inside the project folder is where the actual project files are created (.ccsproject, .cdtbuild, etc). These files always have the same name so trying to have another project use the same folder would not work because it would overwrite them.
Gary Lynch said:I haven't done this in a while, but in the past I have tried
to add a project by pasting a folder from an outside source
into my workspace directory. It never worked, as the
pasted-in folder was invisible in the "C/C++ Projects"
window.
Yes, you always need to import the project. Copying the folder into the workspace folder is not enough. The list of projects are part of the workspace is stored in the workspace .metadata folder somewhere and that list is updated when a project is imported into the workspace by the project import tool
0On Friday, July 13, 2012 4:52 PM; Ki-Soo Lee wrote:
>
> Sorry, I mentioned same name but basically you can't have
> multiple projects sharing the same project folder. That is
> because inside the project folder is where the actual
> project files are created (.ccsproject, .cdtbuild, etc).
> These files always have the same name so trying to have
> another project use the same folder would not work because
> it would overwrite them.
>
So if I delete those files will the wizard let me complete
the process?
Gary Lynch said:So if I delete those files will the wizard let me complete
the process?
Yes.
You need to delete all the project files of the current project residing in that folder. Basically delete the files and folders mentioned here:
Slide 20 of: http://processors.wiki.ti.com/images/0/09/CCSv4_Tips_&_Tricks.pdf
Thanks
ki
I finally got around to testing that last suggestion today.
When I got to the last dialog box in the wizard, I had a
dilemma about which type of project to open, and selected
"Empty CCS project". When I clicked "Finish" it DELETED all
the source files in the folder, completely defeating my goal
of creating a project in a pre-existing folder.
We are not there yet.
Gary Lynch said:When I clicked "Finish" it DELETED all
the source files in the folder, completely defeating my goal
of creating a project in a pre-existing folder.
I cannot reproduce this, at least with v4.2.5. It does not delete any existing files in the folder. It just generates the project files in there and leaves everything else alone.
What version are you using?
I have that version somewhere else. I can try it and save you the trouble of updating. I don't recall anything special we did in 4.2.5. from 4.2.4 in this regard.
Tried this with 4.2.4 and I see no issues. perhaps I am missing a step. I may need to see for myself what is happening. Start a private conversation with me and we can try to set this up.
Thanks
ki