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 have CCS Version: 6.0.1.00040 and it has been working fine with a medium-large project. Today, I used my code generator tool (EA) to add a new cpp file and hpp file to the project like I've done many times before but only the hpp file appeared in the Project Explorer (in the includes folder, as normal) The cpp file is visible in Windows Explorer, but not in Project Explorer.
That's odd, but this is weirder : if I rename the file (add or change one letter) it appears in Project Explorer in the source folder, where it should be. Pretty much any name seems to work. But if it's called MessageDecoder_t.cpp it doesn't display. Is this a forbidden filename?
Roy
Interesting. If I rename another file to MessageDecoder_t.cpp it DOES disappear, and reappears when the name is changed back. However, when I do that in a different source folder it DOESN'T disappear. Only one of my source folders behaves oddly! It doesn't make any difference whether the rename operation is carried out inside Project Explorer, or outside CCS.
Well, provided the problem doesn't get any worse, I can live with it. It does make me feel concerned though.
Roy
Are each of the source folders in separate CCS projects, or are they part of the same CCS project?Roy Jackson said:Only one of my source folders behaves oddly!
For the CCS project which contains the source folder which behaves oddly, can you check the project properties to make sure there is no resource filter to hide files? E.g. in the following example I applied a filter to "hide" main.c from a project:
If a resource filter doesn't explain the problem, can you post the .cproject, .project and .ccsproject files from the CCS project for the source folder which behaves oddly, to see if there is some other project attribute(s) which are causing the problem?
Roy - it looks like somehow those files/folders were specified to be excluded from the project and the view filter for the Project Explorer had the below option enabled:
That would include filtering out all excluded folders/files from the view.
The question is how did this happen if you didn't explicitly do this? Are you using some Eclipse plug-in (like VectorCAST) that might have mucked around with your settings automatically?
Thanks
ki
I don't know, Ki, it's a mystery. I haven't used that dialog to set up any filters, and Non-C elements isn't checked
Someone setup Vector Cast for me a few months ago, but I don't use it. And I can't imagine why VCast would finger one particular file.
So, is there any reason why I shouldn't remove the whole of the exclude list using a text editor? None that I can see!
What I have discovered is that if you R-click on a file in Project explorer and select 'Exclude from Build' that file is added to this exclude list in .cproject. The file doesn't completely disappear though - it goes grey and moves to the bottom of the list where it's a little harder to see. That's probably how it happened.
Thanks to you both, especially Chester for the hot tip about looking in .cproject.
Roy