Summary: | KDevelop crashes at CMake configure | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Sebastian Dörner <sebastian> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | crash | Keywords: | investigated |
Priority: | NOR | ||
Version: | 4.2.60 | ||
Target Milestone: | 4.2.0 | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Sebastian Dörner
2011-03-23 01:19:15 UTC
I could reproduce this with kdesdk/okteta now as well. I guess you should be able to reproduce it with these two cases or any other case where the cmake root directory is above the project directory. CMakePreferences::configure(): m_srcFolder is KUrl("file:///home/kde-devel/kdesrc/kde-baseapps/"), i.e. the cmake root. kdevplatform/shell/projectcontroller.cpp: ProjectController::findProjectForUrl traverses the project with proj->folder()==KUrl("file:///home/kde-devel/kdesrc/kde-baseapps/dolphin"). I guess that's why proj->inProject( url ) returns false. However, I didn't find the cmake implementor for IProject atm, so I couldn't verify what inProject does yet. Anyway, I guess the information provided should be enough to fix. Let me know if you need anything more. Git commit 762d018e6e94d5d0dbbfb4d1c9a071bfde00c77d by Aleix Pol. Committed on 26/03/2011 at 03:51. Pushed by apol into branch '4.2'. Use the project directory to look for the correct project to configure. BUG: 269196 M +1 -1 projectmanagers/cmake/settings/cmakepreferences.cpp http://commits.kde.org/kdevelop/762d018e6e94d5d0dbbfb4d1c9a071bfde00c77d |