<div dir="ltr"><br><div>Thanks for your quick response Sven,</div><div><br></div><div>I forgot to mention that KDEV_CLANG_DISPLAY_DIAGS does not help much. It gives the following error with KDEV_CLANG_DISPLAY_DIAGS</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)">$ KDEV_CLANG_DISPLAY_DIAGS=1 ./kdevelop
</span><br>Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication.
<br>Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
<br>kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed
<br>kf.kio.slaves.file: copy() QUrl("file:///media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/ex1.kdev4") to QUrl("file:///tmp/kdevelop.BtoEwf") 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: 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: Failed to parse translation unit: "/media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/build/CMakeFiles/3.18.4/CompilerIdC/CMakeCCompilerId.c"
<br>kdevelop.plugins.clang: clang_parseTranslationUnit2 return with error code 4
<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>
<br></span><span style="font-family:monospace">
<br></span></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 10, 2022 at 8:03 PM Sven Brauch <<a href="mailto:mail@svenbrauch.de">mail@svenbrauch.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi, as a first step I'd try setting KDEV_CLANG_DISPLAY_DIAGS=1 as <br>
recommended by the error message. That will show you details on the <br>
error on console, maybe it is clear then what happens.<br>
<br>
Greetings!<br>
<br>
On 4/10/22 18:37, Enes Albay wrote:<br>
> Hi all,<br>
> <br>
> I built kdevelop using kdesrc-build according to instructions on the <br>
> website (<a href="https://community.kde.org/KDevelop/HowToCompile_v5" rel="noreferrer" target="_blank">https://community.kde.org/KDevelop/HowToCompile_v5</a> <br>
> <<a href="https://community.kde.org/KDevelop/HowToCompile_v5" rel="noreferrer" target="_blank">https://community.kde.org/KDevelop/HowToCompile_v5</a>>). When I run <br>
> kdevelop, I get the following clang error. Source code navigation does <br>
> not work properly. I wrote a simple program to test the <br>
> clang_parseTransitionUnit2 function. It works without any problem. But <br>
> clang plugin gives errors in kdevelop because of clang_parseTransitionUnit2.<br>
> <br>
> Do you have any experience with this error?<br>
> <br>
> I am working on debian bullseye with kernel 5.10.0-13-amd64 #1 SMP <br>
> Debian 5.10.106-1 (2022-03-17) x86_64 GNU/Linux<br>
> <br>
> Clang version is<br>
> <br>
> 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>
> <br>
> kde/build/kdevelop/bin$ ./kdevelop<br>
> kdevplatform.serialization: "The data-repository at <br>
> /home/enes/.cache/kdevduchain/kdevelop-{2e78e62c-8b7d-4277-a699-d586b7b066c3} <br>
> has to be cleared."<br>
> Qt WebEngine seems to be initialized from a plugin. Please set <br>
> Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before <br>
> constructing QGuiApplication.<br>
> kf.kio.slaves.file: copy() <br>
> QUrl("file:///media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/ex1.kdev4") <br>
> 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 <br>
> code 4<br>
> kdevelop.plugins.clang:   (start KDevelop with <br>
> `KDEV_CLANG_DISPLAY_DIAGS=1 kdevelop` to see more diagnostics)<br>
> kdevelop.plugins.clang: Failed to parse translation unit: <br>
> "/media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/main.cpp"<br>
> kdevelop.plugins.clang: clang_parseTranslationUnit2 return with error <br>
> code 4<br>
> kdevelop.plugins.clang:   (start KDevelop with <br>
> `KDEV_CLANG_DISPLAY_DIAGS=1 kdevelop` to see more diagnostics)<br>
> kdevelop.plugins.clang: Failed to parse translation unit: <br>
> "/media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/build/CMakeFiles/3.18.4/CompilerIdCXX/CMakeCXXCompilerId.cpp" <br>
> <br>
> kdevelop.plugins.clang: clang_parseTranslationUnit2 return with error <br>
> code 4<br>
> kdevelop.plugins.clang:   (start KDevelop with <br>
> `KDEV_CLANG_DISPLAY_DIAGS=1 kdevelop` to see more diagnostics)<br>
> kdevelop.plugins.clang: Failed to parse translation unit: <br>
> "/media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/build/CMakeFiles/3.18.4/CompilerIdC/CMakeCCompilerId.c"<br>
> <br>
> <br>
> -- <br>
> Enes<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div style="text-align:left">Enes Albay</div></div></div>