<table><tr><td style="">vbspam created this revision.<br />vbspam added a reviewer: KDevelop.<br />vbspam added a project: KDevelop.<br />Restricted Application added a subscriber: kdevelop-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D9297" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Fix #387391: Random responses from the C/C++ language support when using<br />
symbolic links to CMake sub-projects (<a href="https://bugs.kde.org/show_bug.cgi?id=387391" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=387391</a>)</p>

<p>Although the original idea of using canonicalFilePath() sounds as best solution, it looks like KDevelop uses absoluteFilePath() in C/C++ language support query url [1] to related build system artifact.</p>

<p>[1] file: plugins/clang/clangparsejob.cpp:119 method: ProjectFileItem* findProjectFileItem(const IndexedString& url, bool*hasBuildSystemInfo)<br />
( )</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Being new to KDevelop I have no idea what should be here.</p>

<p>Within the bug report I prepared steps to reproduce the bug.</p>

<p>I also prepared minimal and complex projects which may serve as this test plan test cases.</p>

<p>For details please see the bug  #387391 (<a href="https://bugs.kde.org/show_bug.cgi?id=387391" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=387391</a>).</p>

<p>I also have a question which I put into the bug report which is related to this patch. Simply: although I know why my solution works, it is not clear why the original solution does not work now. I guess that the query uses newly url with absoluteFilePath instead.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9297" rel="noreferrer">https://phabricator.kde.org/D9297</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plugins/cmake/cmakeserverimportjob.cpp</div></div></div><br /><div><strong>To: </strong>vbspam, KDevelop<br /><strong>Cc: </strong>kdevelop-devel, vbspam, njensen, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger<br /></div>