Some python file do not parse if contains string with "u" prefix. I run kdevelop with enable debug out: ====> PARSING ====> parsing file KUrl("file:///home/tonal/lang/projects/promsoft/epool/amon/amon/amon/downloadermiddleware/blocked.py") ; has priority -10000 ====> AST ====> building abstract syntax tree for "/home/tonal/lang/projects/promsoft/epool/amon/amon/amon/downloadermiddleware/blocked.py" kdevelop(1449)/kdevelop (python support) Python::AstBuilder::parse: DID NOT RECEIVE A SYNTAX TREE -- probably parse error. no codec search functions registered: can't find encodingEventual errors while extracting tuple: <nil>kdevelop(1449)/kdevelop (python support) Python::AstBuilder::parse: Error retrieving error message, not displaying, and not doing anything kdevelop(1449)/kdevelop (python support) Python::ParseJob::run: ---- Parsing FAILED ---- Reproducible: Always
Created attachment 85123 [details] file not parsed
Yeah, it's a problem. I'm unsure how to solve it for python 2. I think it had worked at some point, but I'm unsure how it broke. In Python 3, it should work fine, no? Greetings!
I use scrapy. Scrapy do not support python 3... http://doc.scrapy.org/en/latest/faq.html#does-scrapy-work-with-python-3
The same thing happens if you use from __future__ import unicode_literals instead of u''-strings.
Should be fixed by a recent patch supplied by Alexandr.