<div dir="ltr">Hi all,<div><br></div><div>I built kdevelop using kdesrc-build according to instructions on the website (<a href="https://community.kde.org/KDevelop/HowToCompile_v5">https://community.kde.org/KDevelop/HowToCompile_v5</a>). When I run kdevelop, I get the following clang error. Source code navigation does not work properly. I wrote a simple program to test the clang_parseTransitionUnit2 function. It works without any problem. But clang plugin gives errors in kdevelop because of clang_parseTransitionUnit2.</div><div><br></div><div>Do you have any experience with this error?</div><div><br></div><div>I am working on debian bullseye with kernel <span style="color:rgb(0,0,0);font-family:monospace">5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64 GNU/Linux</span></div><span style="font-family:monospace">
<br></span><div>Clang version is </div><div><br></div><div>kde/build/kdevelop/bin$ clang --version<br>Debian clang version 11.0.1-2<br>Target: x86_64-pc-linux-gnu<br>Thread model: posix<br>InstalledDir: /usr/bin<br></div><div><br></div><div><span style="font-family:monospace"><span style="font-weight:bold;color:rgb(84,84,255)">kde/build/kdevelop/bin</span><span style="color:rgb(0,0,0)">$ ./kdevelop  </span><br>kdevplatform.serialization: "The data-repository at /home/enes/.cache/kdevduchain/kdevelop-{2e78e62c-8b7d-4277-a699-d586b7b066c3} has to be cleared."
<br>Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication.
<br>kf.kio.slaves.file: copy() QUrl("file:///media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/ex1.kdev4") to QUrl("file:///tmp/kdevelop.shLcdo") mode= -1
<br>kf.kio.slaves.file: the file doesn't have any xattr
<br>qrc:/qml/area_code.qml:56:9: Type NewsFeed unavailable
<br>qrc:/qml/NewsFeed.qml:10:1: module "QtQuick.XmlListModel" is not installed
<br>kdevelop.plugins.clang: clang_parseTranslationUnit2 return with error code 4
<br>kdevelop.plugins.clang:   (start KDevelop with `KDEV_CLANG_DISPLAY_DIAGS=1 kdevelop` to see more diagnostics)
<br>kdevelop.plugins.clang: Failed to parse translation unit: "/media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/main.cpp"
<br>kdevelop.plugins.clang: clang_parseTranslationUnit2 return with error code 4
<br>kdevelop.plugins.clang:   (start KDevelop with `KDEV_CLANG_DISPLAY_DIAGS=1 kdevelop` to see more diagnostics)
<br>kdevelop.plugins.clang: Failed to parse translation unit: "/media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/build/CMakeFiles/3.18.4/CompilerIdCXX/CMakeCXXCompilerId.cpp"
<br>kdevelop.plugins.clang: clang_parseTranslationUnit2 return with error code 4
<br>kdevelop.plugins.clang:   (start KDevelop with `KDEV_CLANG_DISPLAY_DIAGS=1 kdevelop` to see more diagnostics)
<br>kdevelop.plugins.clang: Failed to parse translation unit: "/media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/build/CMakeFiles/3.18.4/CompilerIdC/CMakeCCompilerId.c"<br>
<br></span><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="text-align:left">Enes</div></div></div></div></div>