m2mdas / phpcomplete-extended

A fast, extensible, context aware autocomplete plugin for PHP composer projects with code inspection features.
MIT License
216 stars 23 forks source link

Several errors after installation, missing param --optimize and Dictionary required #49

Open tino415 opened 9 years ago

tino415 commented 9 years ago

I installed this plugin with neobundle and add set omnifunc, but after I get:

phpcomplete_extended#CompletePHP..<SNR>44_get_complete_start_pos..   
<SNR>44_get_complete_context..<SNR>44_guessTypeOfParsedTokens..     
<SNR>44_getFQCNFromFileLocation:
line   10: 
E715: Vyžaduje sa Slovník (Dictionary)

During update I get:

[RuntimeException]
The "--optimize" option does not exist.

update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom- 
installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-
o|--optimize-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [packages1] ... 

[packagesN]

Index Loaded

It's fresh vim config with:

neocomplete neosnippet neosnippet-snippets

unite vimproc

tino415 commented 9 years ago

Second i have typo in wimrc, now I have problém with:

Generating index... Generating optimized autoload files PHP Fatal error: Interface 'Composer\Package\CompletePackageInterface' not found in /home/martin/Projects/bc/vendor/fxp/composer-asset-plugin/Package/LazyPackageInterface.php on line 23 PHP Stack trace: PHP 1. {main}() /home/martin/Projects/vim-settings-2/vim/bundle/phpcomplete-extended/bin/IndexGenerator.php:0 PHP 2. IndexGenerator->generateIndex() /home/martin/Projects/vim-settings-2/vim/bundle/phpcomplete-extended/bin/IndexGenerator.php:57 PHP 3. IndexGenerator->processClass() /home/martin/Projects/vim-settings-2/vim/bundle/phpcomplete-extended/bin/IndexGenerator.php:491 PHP 4. IndexGenerator->getClassInfo() /home/martin/Projects/vim-settings-2/vim/bundle/phpcomplete-extended/bin/IndexGenerator.php:594 PHP 5. IndexGenerator->getMethodData() /home/martin/Projects/vim-settings-2/vim/bundle/phpcomplete-extended/bin/IndexGenerator.php:836 PHP 6. ReflectionParameter->getClass() /home/martin/Projects/vim-settings-2/vim/bundle/phpcomplete-extended/bin/IndexGenerator.php:886 PHP 7. spl_autoload_call() /home/martin/Projects/vim-settings-2/vim/bundle/phpcomplete-extended/bin/IndexGenerator.php:886 PHP 8. Composer\Autoload\ClassLoader->loadClass() /home/martin/Projects/vim-settings-2/vim/bundle/phpcomplete-extended/bin/IndexGenerator.php:0 PHP 9. Composer\Autoload\includeFile() /home/martin/Projects/bc/vendor/composer/ClassLoader.php:301 PHP 10. include() /home/martin/Projects/bc/vendor/composer/ClassLoader.php:412

Fatal error: Interface 'Composer\Package\CompletePackageInterface' not found in /home/martin/Projects/bc/vendor/fxp/composer-asset-plugin/Package/LazyPackageInterface.php on line 23

Call Stack: 0.0020 577728 1. {main}() /home/martin/Projects/vim-settings-2/vim/bundle/phpcomplete-extended/bin/IndexGenerator.php:0 0.0043 921104 2. IndexGenerator->generateIndex() /home/martin/Projects/vim-settings-2/vim/bundle/phpcomplete-extended/bin/IndexGenerator.php:57 0.9495 78297704 3. IndexGenerator->processClass() /home/martin/Projects/vim-settings-2/vim/bundle/phpcomplete-extended/bin/IndexGenerator.php:491 0.9495 78297840 4. IndexGenerator->getClassInfo() /home/martin/Projects/vim-settings-2/vim/bundle/phpcomplete-extended/bin/IndexGenerator.php:594 0.9521 78438224 5. IndexGenerator->getMethodData() /home/martin/Projects/vim-settings-2/vim/bundle/phpcomplete-extended/bin/IndexGenerator.php:836 0.9522 78441776 6. ReflectionParameter->getClass() /home/martin/Projects/vim-settings-2/vim/bundle/phpcomplete-extended/bin/IndexGenerator.php:886 0.9522 78442120 7. spl_autoload_call() /home/martin/Projects/vim-settings-2/vim/bundle/phpcomplete-extended/bin/IndexGenerator.php:886 0.9522 78442192 8. Composer\Autoload\ClassLoader->loadClass() /home/martin/Projects/vim-settings-2/vim/bundle/phpcomplete-extended/bin/IndexGenerator.php:0 0.9522 78442192 9. Composer\Autoload\includeFile() /home/martin/Projects/bc/vendor/composer/ClassLoader.php:301 0.9522 78445440 10. include('/home/martin/Projects/bc/vendor/fxp/composer-asset-plugin/Package/LazyPackageInterface.php') /home/martin/Projects/bc/vendor/composer/ClassLoader.php:412

Loading Index Chyba pri spracovaní function phpcomplete_extended#readDataForProject..phpcomplete_extended#loadProject..44_loadIndex..44_readIndex: riadok 2: Could not read index file .phpcomplete_extended/phpcomplete_index