-
Notifications
You must be signed in to change notification settings - Fork 25
Parser crash during parse of TCPDF library #144
Comments
Ok it seems I'm not the only one with this problem (see #135). Is there any way to configure crane to ignore |
I get the same issue on a large project (2992 files). The file in particular it's dying on for me is sendgrid-php.php, content of which is only:
So I don't think it's an issue with parsing the file. The file itself uses UTF-8 encoding, the only 'unusual' thing is that there is no new-line at EOF, but I know for a fact there's many other files like that in this project. Edit: more info: I'm in Windows 10 so doesn't seem to be OS specific. |
Yep, it's weird. What I did now is:
Obviously this is not a fix, it's just a workaround for getting it to finish the indexing. |
Same issue here, with a symfony project (the tuto project) on Windows 10. |
I changed the title cause the error seems to happen with the folders of a symfony project. |
@pablopunk I've been doing some work on stability and trying to improve the parser over the last few days as you can see here #148. I've identified an issue (#154) with the latest version of Symfony in that the parser doesn't understand the PHP7 syntax in the This does seem to be unrelated to the issue that you are having, but I now recognise the error ( In any case, I'll download the PHPExcel library and test the latest version of the parser on it to see if I can reproduce this error. EDIT: Without checking the code, this is where I had seen that error before: #153 |
After futher investigation it appears this is related to #157 (memory leak during parsing large files) |
I'm still getting this error. I think it's related to this issue. This feature would be a great solution at least for now. |
This should be fixed with the update of php-parser to 2.0.0 |
Released in v0.3.0 |
So, I have a fairly large PHP project (half symfony2 and half raw php) and when I install this extension it always starts to index files very fast but it stops at 32.6%, like there was a huge file or something, but it never seems to continue.
I'm on MacOS 10.12 with PHP 5.6
UPDATE: I enabled debug mode and it seems to stop at this file:
The text was updated successfully, but these errors were encountered: