Closed ruskiyos closed 9 years ago
NOTE: I'm new to oss contributing, so I apologize ahead of time if I get something wrong...
I'm using Vundle to install my plugins.
vim --version VIM - Vi IMproved 7.4
VIM - Vi IMproved 7.4
My .vimrc
... " let Vundle manage Vundle, required Plugin 'gmarik/Vundle.vim' " The following are examples of different formats supported. " Keep Plugin commands between vundle#begin/end. " plugin on GitHub repo Plugin 'tpope/vim-fugitive' " Autocompletion plugin Plugin 'Valloric/YouCompleteMe' " emmet autocomplete Plugin 'mattn/emmet-vim' " vdebug Bundle 'joonty/vdebug.git' let g:vdebug_options = { \ "break_on_open" : 0, \} " php laravel autocompletion Plugin 'shawncplus/phpcomplete.vim' Bundle 'Shougo/vimproc' Bundle 'Shougo/unite.vim' Bundle 'm2mdas/phpcomplete-extended' "Bundle 'm2mdas/phpcomplete-extended-laravel' "phpcomplete-extended autocmd FileType php setlocal omnifunc=phpcomplete_extended#CompletePHP" ...
When I open vim in a directory that has a composer file, it vim asks if I want to "create index". I choose yes, and get this error:
Fatal error: Interface 'Symfony\Component\Config\Resource\ResourceInterfa ce' not found in /home/john/projects/Labman/api/vendor/symfony/translatio n/Tests/TranslatorCacheTest.php on line 285 Call Stack: 0.0048 243184 1. {main}() /home/john/.vim/bundle/phpcomplete-ex tended/bin/IndexGenerator.php:0 0.0234 1116296 2. IndexGenerator->generateIndex() /home/john/.vi m/bundle/phpcomplete-extended/bin/IndexGenerator.php:57 11.3173 259323560 3. IndexGenerator->processClass() /home/john/.vim /bundle/phpcomplete-extended/bin/IndexGenerator.php:491 11.3173 259323696 4. IndexGenerator->getClassInfo() /home/john/.vim /bundle/phpcomplete-extended/bin/IndexGenerator.php:594 11.3173 259331616 5. ReflectionClass->__construct() /home/john/.vim /bundle/phpcomplete-extended/bin/IndexGenerator.php:778 11.3173 259332008 6. spl_autoload_call() /home/john/.vim/bundle/php complete-extended/bin/IndexGenerator.php:778 11.3173 259332080 7. Composer\Autoload\ClassLoader->loadClass() /ho me/john/.vim/bundle/phpcomplete-extended/bin/IndexGenerator.php:778 11.3173 259332080 8. Composer\Autoload\includeFile() /home/john/pro jects/Labman/api/vendor/composer/ClassLoader.php:301 11.3178 259545872 9. include('/home/john/projects/Labman/api/vendor /symfony/translation/Tests/TranslatorCacheTest.php') /home/john/projects/ Labman/api/vendor/composer/ClassLoader.php:412
Solved the issue by deleting tests directory
rm -rf ~/projects/Labman/api/vendor/symfony/translation/Tests
@ruskiyos also give a try https://github.com/mkusher/padawan.vim
NOTE: I'm new to oss contributing, so I apologize ahead of time if I get something wrong...
I'm using Vundle to install my plugins.
vim --version
VIM - Vi IMproved 7.4
My .vimrc
When I open vim in a directory that has a composer file, it vim asks if I want to "create index". I choose yes, and get this error: