Bug 376571

Summary: Click on errors in CMakeLists.txt opens empty file
Product: [Applications] kdevelop Reporter: peje66
Component: Build tools: CMakeAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description peje66 2017-02-17 07:42:45 UTC
When I have a project with a non-standard build directory and get an error in CMakeLists.txt and click on the error line in the build window an empty CMakeLists.txt opens. Saving that file reveals that it is located inside the build directorys parent dir instead of project root.

I usually create a build directory named "build/Debug/x86_64" instead of the default "build".

If I have a build directory which is a first-level dir under project root it works as advertised.

I have tested the following build directories:

/home/user/src/qwe/build works
/home/user/src/qwe/build/Debug/x86_64 fails
/home/user/src/qwe/build/debug fails
/tmp/qwe/build fails
/home/user/src/build fails
Comment 1 Kevin Funk 2017-02-17 07:52:56 UTC
Thanks, but a known issue.

Patches/ideas how to approach these kind of issues in the output parser are welcome. See bug 321982 for more info.

*** This bug has been marked as a duplicate of bug 321982 ***