| Summary: | Syntax parser cannot find library headers even though project builds correctly | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | David <daviddoria> |
| Component: | Build tools: CMake | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | CC: | aleixpol |
| Priority: | NOR | Keywords: | triaged |
| Version First Reported In: | git master | ||
| Target Milestone: | 4.3.0 | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Hm.. sounds like a valid bug report, but I don't have ITK available in my system (archlinux) and I can't test. Can you maybe provide a simpler case that fails? :/ Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone! |
Take for example the ITK library (git clone git://itk.org/ITK.git) With this code: #include "itkImage.h" int main(int, char* [] ) { return 0; } and this CMakeLists.txt cmake_minimum_required(VERSION 2.8) PROJECT(TestITK) FIND_PACKAGE(ITK REQUIRED ITKCommon) INCLUDE(${USE_ITK_FILE}) ADD_EXECUTABLE(TestITK TestITK.cxx) TARGET_LINK_LIBRARIES(TestITK ${ITK_LIBRARIES}) the line: #include "itkImage.h" is underlined in red squiggly by the syntax parser, and if you hover over it it says "included file was not found". However, the project builds correctly, so apparently the included file WAS found :) Reproducible: Always Steps to Reproduce: 1. Include an ITK header Actual Results: Syntax parser underlines the include in red squiggly and says it is not found Expected Results: Syntax parser should find the header. I would imagine this has more to do with the KDevelop CMake module than the CPP module, so I marked "Component" as such in this bug report.