Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Problems with extra include paths creation!

Hi Fedja,


I am unable to reproduce your issue on my Linux x86 machine with the latest sources from HEAD.


Could you create a bugzilla report regarding this and attach the following additional info there:

1.       some sample project with some user-modified paths that work incorrectly for you

2.       the file with persisted discovery path information. The location of this file is: <workspace_location>/.metadata/.plugins/org.eclipse.cdt.make.core/<project_name>.sc

3.       could you also specify whether the behavior of path settings depends on the project location, i.e. do you have the same behavior when the project resides:

a.       within the workspace directory

b.       outside the workspace directory





From: Fedja Jeleskovic [mailto:mrawd2@xxxxxxxxx]
Sent: Wednesday, March 14, 2007 4:32 AM
To: CDT General developers list.; Sennikovsky, Mikhail
Subject: Re: [cdt-dev] Problems with extra include paths creation!


One more thing I just found out that might be useful to add regarding the same problem. I was using another project tonight and realized that every time I open Project/Properties and close it with OK button (instead of with Cancel) extra paths are added to all of the entries. Extra stuff consist of the full path to the location where I have my project (/home/user_name/project_name).

Also, in some other cases (assuming that I have named my project PRJ) if my previously established include path was something like "PRJ/part_one/include", the new path would become PRJ/PRJ/part_one/include. As you could see either extra PRJ or full path that is equal to the PRJ (in this case /home/user_name/project_name) is added to the begining of every path that is out there.

One more thing. If I add external include path with its full path name after clicking on the OK button full path equal to the PRJ is added again. If you add just the last part ("part_one/include") then PRJ is added in the front and everything works fine. But, of course you can't get in there and click on OK again.

Hope this helped.

ps. this was all done on x86 Linux if it was missed earlier

On 3/13/07, Sennikovsky, Mikhail < mikhail.sennikovsky@xxxxxxxxx> wrote:

What OS are you running on?




From: cdt-dev-bounces@xxxxxxxxxxx [mailto: cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Fedja Jeleskovic
Sent: Tuesday, March 13, 2007 12:15 AM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] Problems with extra include paths creation!


I keep having the problems with the latest versions of the CDT and M5eh version. After trying latest two CDT builds I realized that something else underneath builds those include paths that are wrong! Here is the version of software that I am running:
   Version: 3.3.0
   Build id: I20070222-0951
   Build id: 200703120600

Here is more detailed description of the problem. I used to create projects as standard make with previous versions, but that was no more available so I used standard C++ project instead. As type I selected Makefile project and no toolchain option. When the project was created I would be getting lots of the little yellow triangles before the some of the include files in the Outline window, so I decided to check the project paths. Another pointer that something was wrong with the pats was coming from the Description window, which showed 6 warnings about incorrect paths.

When I opened Project/Properties/C++ Include Paths and Symbols I would see those 6 paths and they where all wrong. Basically, the paths in error where standard paths  from /usr folder ( /usr/include. /usr/include/c++/3.4.3 and so on). Unfortunately, they would show up with a prefix path that was combination of my home folder/user name combination plus /usr/... part.

If I go in and edit every single line and take out home/username part number of project pat entries that have error would drop down to zero (top of the window). When I would finally click OK, Description window would still show 6 warnings and back in the Project Properties all of those paths that I just edited would show up again the same way they where originally.

Interesting thing is that all of those paths (in correct form this time) are also stored under the "Configuration Description info container/Include Paths", but I have no option to do anything with them (no edit nor remove).

What can I do here to sort out my include paths and make CDT to stop generating those wrong ones?

Thanks a lot!


cdt-dev mailing list


Back to the top