D18982: prevent assertion in regex load

2019-02-13 Thread Christoph Cullmann
This revision was automatically updated to reflect the committed changes. Closed by commit R216:152968754edc: prevent assertion in regex load (authored by davschul, committed by cullmann). REPOSITORY R216 Syntax Highlighting CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D18982?vs=516

D18982: prevent assertion in regex load

2019-02-13 Thread David Schulz
davschul added a comment. David Schulz david.sch...@qt.io REVISION DETAIL https://phabricator.kde.org/D18982 To: davschul, vkrause, cullmann Cc: cullmann, dhaumann, kwrite-devel, kde-frameworks-devel, gennad, michaelh, ngraham, bruns, demsking, sars

D18982: prevent assertion in regex load

2019-02-13 Thread Christoph Cullmann
cullmann added a comment. I can push that for you, which user to use? "David Schulz" REVISION DETAIL https://phabricator.kde.org/D18982 To: davschul, vkrause, cullmann Cc: cullmann, dhaumann, kwrite-devel, kde-frameworks-devel, gennad, michaelh, ngraham, bruns, demsking, sars

D18982: prevent assertion in regex load

2019-02-13 Thread Christoph Cullmann
cullmann accepted this revision. cullmann added a comment. This revision is now accepted and ready to land. I assume Volker profiled it. I think it is ok to just check if the logging is on. 99% of the syntax definitions are anyways bundled and are checked by the indexer for such obvious fa

D18982: prevent assertion in regex load

2019-02-13 Thread David Schulz
davschul updated this revision to Diff 51643. davschul added a comment. added additional context to the diff CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D18982?vs=51588&id=51643 REVISION DETAIL https://phabricator.kde.org/D18982 AFFECTED FILES src/lib/rule.cpp To: davschul,

D18982: prevent assertion in regex load

2019-02-13 Thread David Schulz
davschul added inline comments. INLINE COMMENTS > dhaumann wrote in rule.cpp:579-582 > I even wonder whether this should be always printed, i.e.: > > const bool isValid = m_regexp.isValid(); > if (!isValid) > qCWarning(...) << "Invalid regexp:" << m_regexp.pattern(); > } > return i

D18982: prevent assertion in regex load

2019-02-13 Thread Dominik Haumann
dhaumann added a comment. I think that makes a lot of sense. Maybe we should even always print the warning, not only in debug mode? See comment below... PS: When submitting patches without phabricator's arc tool, could you add more diff context, like `git diff -U99 ...`. Then reviewing i

D18982: prevent assertion in regex load

2019-02-13 Thread David Schulz
davschul created this revision. davschul added a reviewer: vkrause. Herald added projects: Kate, Frameworks. Herald added subscribers: kde-frameworks-devel, kwrite-devel. davschul requested review of this revision. REVISION SUMMARY Instead of crashing the complete application with an assert on a