Review Request 122708: Crash when error in first line in *.py file

Alexandr Zamaraev tonal.promsoft at gmail.com
Wed Feb 25 08:21:33 UTC 2015



> On Фев. 24, 2015, 11:04 п.п., Sven Brauch wrote:
> > Hmm, I cannot reproduce this. I also don't know how it would happen, if the list is empty then the file should have no lines, and no lines cannot have errors ...
> > But if it fixes a crash for you, go ahead, the extra check doesn't hurt.
> > All this code really needs to be refactored anyways.

Realy crash project have many files. And error file not open directly. But kdev-python parse it while open project.
This files generates py2exe and starts with "\r\n".


- Alexandr


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122708/#review76554
-----------------------------------------------------------


On Фев. 24, 2015, 6:31 п.п., Alexandr Zamaraev wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/122708/
> -----------------------------------------------------------
> 
> (Updated Фев. 24, 2015, 6:31 п.п.)
> 
> 
> Review request for KDevelop and Sven Brauch.
> 
> 
> Repository: kdev-python
> 
> 
> Description
> -------
> 
> Steps for reproduce
>  1. Create test file *test.py*:
> ```
> $ echo '!!!' > test.py
> ```
>  2. Open *test.py* in KDevelop 1.7.x
> 
> 
> Diffs
> -----
> 
>   parser/astbuilder.cpp 00f4c5d 
> 
> Diff: https://git.reviewboard.kde.org/r/122708/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Alexandr Zamaraev
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20150225/47c3ee26/attachment.html>


More information about the KDevelop-devel mailing list