If Pygments is installed, KDevelop will cash when parsing its files. Specifically, in the Python site-packages dir, "pygments/lexers/functional.py". Backtrace is attached. Reproducible: Always Steps to Reproduce: 1. Load KDevelop 2. Wait for parsing to reach pygments/lexers/functional.py Actual Results: KDevelop crashes. Expected Results: KDevelop contines parsing.
Created attachment 70945 [details] Backtrace of the crash using gdb
I can reproduce this, I'm currently trying to find a fix.
Git commit bf99fa429234ea7d66a121c6a7313f6e739a312d by Sven Brauch. Committed on 19/05/2012 at 21:16. Pushed by brauch into branch 'master'. Proper fix for the "the python parser has no information about where a node ends" problem. This adds a visitor which recursively fixes the missing ranges. Hopefully also fixes (my tests work) M +27 -27 duchain/contextbuilder.cpp M +1 -1 duchain/declarationbuilder.cpp M +1 -0 duchain/expressionvisitor.cpp M +17 -0 duchain/tests/pyduchaintest.cpp M +0 -1 duchain/usebuilder.cpp M +8 -7 parser/ast.h M +19 -0 parser/astbuilder.cpp http://commits.kde.org/kdev-python/bf99fa429234ea7d66a121c6a7313f6e739a312d