Bug 304505 - Syntax parser cannot find library headers even though project builds correctly
Summary: Syntax parser cannot find library headers even though project builds correctly
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: CMake (other bugs)
Version First Reported In: git master
Platform: unspecified Linux
: NOR normal
Target Milestone: 4.3.0
Assignee: kdevelop-bugs-null
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2012-08-03 16:25 UTC by David
Modified: 2018-10-27 02:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2012-08-03 16:25:08 UTC
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.
Comment 1 Aleix Pol 2013-03-06 17:35:52 UTC
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? :/
Comment 2 Andrew Crouthamel 2018-09-24 02:11:21 UTC
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!
Comment 3 Andrew Crouthamel 2018-10-27 02:03:43 UTC
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!