https://bugs.kde.org/show_bug.cgi?id=340841

--- Comment #30 from felix_ma...@web.de ---
hm, my comment got eaten up somehow...

I'm also facing the same issue with parsing colorama from python2

====> PARSING ====> parsing file 
KUrl("file:///usr/lib/python2.7/dist-packages/colorama/initialise.py") ; has
priority 9989 
 ====> AST     ====>     building abstract syntax tree for 
"/usr/lib/python2.7/dist-packages/colorama/initialise.py" 
kdevelop(25563)/kdevelop (python support) Python::AstBuilder::parse: DID NOT
RECEIVE A SYNTAX TREE -- probably parse error. 
('invalid syntax', ('<kdev-editor-contents>', 1, 14, 'import
atexit\r\n'))Eventual errors while extracting tuple:  
invalid syntaxinvalid syntaxkdevelop(25563)/kdevelop (python support)
Python::AstBuilder::parse: Discarding parts of the code to be parsed because of
previous errors 
kdevelop(25563)/kdevelop (python support) Python::ParseJob::run: ---- Parsing
FAILED ---- 
 ====> PARSING ====> parsing file 
KUrl("file:///usr/lib/python2.7/dist-packages/colorama/ansitowin32.py") ; has
priority 9989 
 ====> AST     ====>     building abstract syntax tree for 
"/usr/lib/python2.7/dist-packages/colorama/ansitowin32.py" 
kdevelop(25563)/kdevelop (python support) Python::AstBuilder::parse: DID NOT
RECEIVE A SYNTAX TREE -- probably parse error. 
('invalid syntax', ('<kdev-editor-contents>', 1, 1, '\r\n'))Eventual errors
while extracting tuple:  
invalid syntaxinvalid syntaxkdevelop(25563)/kdevelop (python support)
Python::AstBuilder::parse: Discarding parts of the code to be parsed because of
previous errors 
ASSERT failure in QList<T>::at: "index out of range", file
/usr/include/qt4/QtCore/qlist.h, line 469
KCrash: Application 'kdevelop' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit

This problem occurred, as soon as I added a file that imports colorama:

from pip._vendor import colorama, pkg_resources

Changing the line endings to unix ones fixes the problem for me, as well.

Without knowing the code, just from the output: Wouldn't it be suitable to
check whether the given QList is empty? I guess it is, since no syntax tree was
found, right?

Cheers
Felix

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to