D14288: Initial version of Clazy analyzer plugin

Friedrich W. H. Kossebau noreply at phabricator.kde.org
Fri Aug 17 22:07:44 BST 2018


kossebau added a comment.


  Got a crash when running on kdevelop/kdevplatform, seems some normalization of path is needed, have not yet investigated further. Relevant part of backtracce:
  
    #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
  
  
  
    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
  
  Added in job before the call this snippet...
  
                const auto document = KDevelop::IndexedString(match.captured(1));
    qDebug() << "FFFFFAIL" << document.toUrl() << document.toUrl().adjusted(QUrl::NormalizePathSegments);
  
  which got me this before the crash
  
    FFFFFAIL QUrl("file:///home/koder/projects/kdevelop/kdevplatform/language/duchain/navigation/../indexeddeclaration.h") QUrl("file:///home/koder/projects/kdevelop/kdevplatform/language/duchain/indexeddeclaration.h")
  
  Besides that, works as intended for what I got to test :) But will need to do some more, e.g. how fixits work.

REPOSITORY
  R32 KDevelop

REVISION DETAIL
  https://phabricator.kde.org/D14288

To: antonanikin, #kdevelop
Cc: pino, kossebau, kdevelop-devel, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20180817/f8e51adc/attachment.html>


More information about the KDevelop-devel mailing list