padawan-php / padawan.php

php intelligent code completion http server
http://mkusher.name/padawan/
MIT License
253 stars 30 forks source link

Padawan crashes when generating index for fzaninotto/faker #109

Closed WouterSioen closed 7 years ago

WouterSioen commented 7 years ago

Padawan crashes when generating an index for this file: https://github.com/fzaninotto/Faker/blob/v1.7.1/src/Faker/Provider/cs_CZ/Text.php

halftan commented 7 years ago

@WouterSioen Can you see any exception or error log?

WouterSioen commented 7 years ago

where can I find those? When I run padawan generate It just stops after saying that it generates the index for that file. (also in verbose mode)

halftan commented 7 years ago

Usually it should be printed on your console. This is what padawan generate gave me when running against the provided file.

ζ padawan g
[2017-09-27 13:33:04] completer.INFO: processing Text.php [] []
[2017-09-27 13:33:04] completer.INFO: Traversing with 1 walkers [] []
[2017-09-27 13:33:04] completer.INFO: Parsing: [0.11756706237793]s [] []
[2017-09-27 13:33:04] completer.DEBUG: Processing 1 classes [] []
[2017-09-27 13:33:04] completer.DEBUG: Processing 0 interfaces [] []
[2017-09-27 13:33:04] completer.DEBUG: Processing 0 functions [] []
[2017-09-27 13:33:04] completer.DEBUG: Processing node Faker\Provider\cs_CZ\Text [] []
[2017-09-27 13:33:04] completer.DEBUG: Indexing: [0.12736797332764]s [] []
[2017-09-27 13:33:04] completer.DEBUG: Memory: 39026712 [] []
[2017-09-27 13:33:04] completer.INFO: Progress: 100% [] []
[2017-09-27 13:33:04] completer.INFO: [ 0.12736797332764 ] [] []

seems alright.

WouterSioen commented 7 years ago

generating tags for the project ended after this for me:

2017-09-27 13:43:20] completer.INFO: Parsing: [0.025376081466675]s [] []
[2017-09-27 13:43:20] completer.DEBUG: Processing 1 classes [] []
[2017-09-27 13:43:20] completer.DEBUG: Processing 0 interfaces [] []
[2017-09-27 13:43:20] completer.DEBUG: Processing 0 functions [] []
[2017-09-27 13:43:20] completer.DEBUG: Processing node Faker\Provider\cs_CZ\Person [] []
[2017-09-27 13:43:20] completer.DEBUG: Indexing: [0.025901079177856]s [] []
[2017-09-27 13:43:20] completer.DEBUG: Memory: 93203776 [] []
[2017-09-27 13:43:20] completer.INFO: Progress: 37% [] []
[2017-09-27 13:43:20] completer.INFO: processing vendor/fzaninotto/faker/src/Faker/Provider/cs_CZ/PhoneNumber.php [] []
[2017-09-27 13:43:20] completer.INFO: Traversing with 1 walkers [] []
PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /Users/woutersioen/.composer/vendor/mkusher/padawan/src/Padawan/Domain/Project/FQCN.php on line 19
Warning: count(): Parameter must be an array or an object that implements Countable in /Users/woutersioen/.composer/vendor/mkusher/padawan/src/Padawan/Domain/Project/FQCN.php on line 19
PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /Users/woutersioen/.composer/vendor/mkusher/padawan/src/Padawan/Domain/Project/FQCN.php on line 19
Warning: count(): Parameter must be an array or an object that implements Countable in /Users/woutersioen/.composer/vendor/mkusher/padawan/src/Padawan/Domain/Project/FQCN.php on line 19
[2017-09-27 13:43:20] completer.INFO: Parsing: [0.00056195259094238]s [] []
[2017-09-27 13:43:20] completer.DEBUG: Processing 1 classes [] []
[2017-09-27 13:43:20] completer.DEBUG: Processing 0 interfaces [] []
[2017-09-27 13:43:20] completer.DEBUG: Processing 0 functions [] []
[2017-09-27 13:43:20] completer.DEBUG: Processing node Faker\Provider\cs_CZ\PhoneNumber [] []
[2017-09-27 13:43:20] completer.DEBUG: Indexing: [0.00089192390441895]s [] []
[2017-09-27 13:43:20] completer.DEBUG: Memory: 93208176 [] []
[2017-09-27 13:43:20] completer.INFO: Progress: 37% [] []
[2017-09-27 13:43:20] completer.INFO: processing vendor/fzaninotto/faker/src/Faker/Provider/cs_CZ/Text.php [] []
WouterSioen commented 7 years ago

ow god, increased my memory limit and it easily passes it. Sorry for bothering you with my stupidity ;)