Bug 376571 - Click on errors in CMakeLists.txt opens empty file
Summary: Click on errors in CMakeLists.txt opens empty file
Status: RESOLVED DUPLICATE of bug 321982
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: CMake (show other bugs)
Version: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-17 07:42 UTC by peje66
Modified: 2017-02-17 07:52 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***