<table><tr><td style="">kossebau added a comment.
</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/D14288">View Revision</a></tr></table><br /><div><div><p>Got a crash when running on kdevelop/kdevplatform, seems some normalization of path is needed, have not yet investigated further. Relevant part of backtracce:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">#10 0x00007f5f452c97d9 in qt_assert(char const*, char const*, int) (assertion=<optimized out>, file=<optimized out>, line=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qlogging.h:91
#11 0x00007f5f08ca68fd in KDevelop::DocumentRange::DocumentRange(KDevelop::IndexedString const&, KTextEditor::Range const&) (this=0x7fffe8850f90, document=..., range=...) at /home/koder/Kode/kdegit/kf5/extragear/kdevelop/kdevelop/kdevplatform/language/editor/documentrange.h:42
#12 0x00007f5f08ca570e in Clazy::Job::postProcessStderr(QStringList const&) (this=0x5dbc6f0, lines=...) at /home/koder/Kode/kdegit/kf5/extragear/kdevelop/kdevelop/plugins/clazy/job.cpp:174</pre></div>



<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">ASSERT: "document.toUrl() == document.toUrl().adjusted(QUrl::NormalizePathSegments)" in file /home/koder/Kode/kdegit/kf5/extragear/kdevelop/kdevelop/kdevplatform/language/editor/documentrange.h, line 42</pre></div>

<p>Added in job before the call this snippet...</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">            const auto document = KDevelop::IndexedString(match.captured(1));
qDebug() << "FFFFFAIL" << document.toUrl() << document.toUrl().adjusted(QUrl::NormalizePathSegments);</pre></div>

<p>which got me this before the crash</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">FFFFFAIL QUrl("file:///home/koder/projects/kdevelop/kdevplatform/language/duchain/navigation/../indexeddeclaration.h") QUrl("file:///home/koder/projects/kdevelop/kdevplatform/language/duchain/indexeddeclaration.h")</pre></div>

<p>Besides that, works as intended for what I got to test :) But will need to do some more, e.g. how fixits work.</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/D14288">https://phabricator.kde.org/D14288</a></div></div><br /><div><strong>To: </strong>antonanikin, KDevelop<br /><strong>Cc: </strong>pino, kossebau, kdevelop-devel, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>