List Info

Thread: Project for file




Project for file
user name
2008-02-15 18:42:20
Hi list,
Today I noticed that there was a lot of problems when
opening a c++
file (on a cmake project).

I saw that it wasn't able to find any headers and digging
through the
output I have found that:

kdevelop(29102)/kdevelop (cpp support)
CppLanguageSupport::findIncludePaths: Did not find a
build-manager for
KUrl("file:///home/kde-devel/kdevelop/buildtools/manage
rs/cmake/parser/variablemap.cpp")
kdevelop(29102)/kdevelop (cpp support)
CppLanguageSupport::findIncludePaths: Failed to resolve
include-path
for "
KUrl("file:///home/kde-devel/kdevelop/buildtools/manage
rs/cmake/parser/variablemap.cpp")
": "Makefile is missing in folder
"/home/kde-devel/kdevelop/buildtools/managers/cmake/par
ser""
 "problem while trying to resolve include-paths for
variablemap.cpp"

Well, it is actually saying that he can't find a project for
the
specified file, which is found on the project obviously.

Does anybody have any idea about how to solve this?

Thanks,
Aleix

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

Re: Project for file
user name
2008-02-16 02:49:09
On 16.02.08 01:42:20, Aleix wrote:
> Hi list,
> Today I noticed that there was a lot of problems when
opening a c++
> file (on a cmake project).
> 
> I saw that it wasn't able to find any headers and
digging through the
> output I have found that:
> 
> kdevelop(29102)/kdevelop (cpp support)
> CppLanguageSupport::findIncludePaths: Did not find a
build-manager for
>
KUrl("file:///home/kde-devel/kdevelop/buildtools/manage
rs/cmake/parser/variablemap.cpp")
> kdevelop(29102)/kdevelop (cpp support)
> CppLanguageSupport::findIncludePaths: Failed to resolve
include-path
> for "
KUrl("file:///home/kde-devel/kdevelop/buildtools/manage
rs/cmake/parser/variablemap.cpp")
> ": "Makefile is missing in folder
>
"/home/kde-devel/kdevelop/buildtools/managers/cmake/par
ser""
>  "problem while trying to resolve include-paths
for variablemap.cpp"
> 
> Well, it is actually saying that he can't find a
project for the
> specified file, which is found on the project
obviously.
> 
> Does anybody have any idea about how to solve this?

Fix projectForFile on IProject, at least I suspect the
problem is there.
After all thats what C++ support calls. Having a file
visible in the
project tree does not necessarily mean C++ support can find
the project
for it, simply because projectForFile might have a logic bug


Andreas

-- 
You are dishonest, but never to the point of hurting a
friend.

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

Re: Project for file
user name
2008-02-16 02:49:32
On 16.02.08 01:42:20, Aleix wrote:
> Hi list,
> Today I noticed that there was a lot of problems when
opening a c++
> file (on a cmake project).
> 
> I saw that it wasn't able to find any headers and
digging through the
> output I have found that:
> 
> kdevelop(29102)/kdevelop (cpp support)
> CppLanguageSupport::findIncludePaths: Did not find a
build-manager for
>
KUrl("file:///home/kde-devel/kdevelop/buildtools/manage
rs/cmake/parser/variablemap.cpp")
> kdevelop(29102)/kdevelop (cpp support)
> CppLanguageSupport::findIncludePaths: Failed to resolve
include-path
> for "
KUrl("file:///home/kde-devel/kdevelop/buildtools/manage
rs/cmake/parser/variablemap.cpp")
> ": "Makefile is missing in folder
>
"/home/kde-devel/kdevelop/buildtools/managers/cmake/par
ser""
>  "problem while trying to resolve include-paths
for variablemap.cpp"
> 
> Well, it is actually saying that he can't find a
project for the
> specified file, which is found on the project
obviously.
> 
> Does anybody have any idea about how to solve this?

PS: If you don't find anything I'll try to look into this
later today.

Andreas

-- 
Good day to let down old friends who need help.

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

Re: Project for file
user name
2008-02-16 04:33:59
On Saturday 16 February 2008 01:42:20 Aleix wrote:
> Hi list,
> Today I noticed that there was a lot of problems when
opening a c++
> file (on a cmake project).
>
> I saw that it wasn't able to find any headers and
digging through the
> output I have found that:
>
> kdevelop(29102)/kdevelop (cpp support)
> CppLanguageSupport::findIncludePaths: Did not find a
build-manager for
>
KUrl("file:///home/kde-devel/kdevelop/buildtools/manage
rs/cmake/parser/vari
>ablemap.cpp") kdevelop(29102)/kdevelop (cpp
support)
> CppLanguageSupport::findIncludePaths: Failed to resolve
include-path
> for "
>
KUrl("file:///home/kde-devel/kdevelop/buildtools/manage
rs/cmake/parser/vari
>ablemap.cpp") ": "Makefile is missing in
folder
>
"/home/kde-devel/kdevelop/buildtools/managers/cmake/par
ser""
>  "problem while trying to resolve include-paths
for variablemap.cpp"
>
> Well, it is actually saying that he can't find a
project for the
> specified file, which is found on the project
obviously.
>
> Does anybody have any idea about how to solve this?
>
> Thanks,
> Aleix

This probably needs some debugging. For me it works
currently, but it often 
had bugs that made it fail in the past. Seems like the
projectForFile(..) 
code is a little fragile. 

greetings, DAvid

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )