Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are traits supported? #111

Open
reafle opened this issue Nov 22, 2017 · 2 comments
Open

Are traits supported? #111

reafle opened this issue Nov 22, 2017 · 2 comments

Comments

@reafle
Copy link

reafle commented Nov 22, 2017

reafle@~/dotfiles/vim/plugged/deoplete-padawan/vendor/bin[master ?]$ ./padawan --version
Padawan CLI 0.3
reafle@~/dotfiles/vim/plugged/deoplete-padawan/vendor/bin[master ?]$ git rev-parse HEAD
43e06c02dc93c8becf433bfecaf9bb52f79f0d31
reafle@~/dotfiles/vim/plugged/deoplete-padawan/vendor/bin[master ?]$ nvim --version
NVIM v0.2.1-dev

Was just trying out padawan.php + deoplete, and realized my symfony project is unable to autocomplete some basic stuff.

Dug around with it and found this:
image

Moreover, when trying to edit the inside of a sneakyTraitFunction(), some stuff seems to break.

POST /complete
[2017-11-22 05:00:39] completer.INFO: Traversing with 1 walkers [] []
[2017-11-22 05:00:39] completer.DEBUG: Processing 1 classes [] []
[2017-11-22 05:00:39] completer.DEBUG: Processing 0 interfaces [] []
[2017-11-22 05:00:39] completer.DEBUG: Processing 0 functions [] []
[2017-11-22 05:00:39] completer.DEBUG: Processing node Traitor [] []
[2017-11-22 05:00:39] completer.INFO: Traversing with 1 walkers [] []
Unhandled error: Argument 1 passed to Padawan\Framework\Domain\Project\InMemoryIndex::findClassByFQCN() must be an instance of Padawan\Domain\Project\FQCN, instance of Padawan\Domain\Project\FQN
 given, called in /home/reafle/dotfiles/vim/plugged/deoplete-padawan/vendor/mkusher/padawan/src/Padawan/Parser/Walker/ScopeWalker.php on line 172
POST /complete
[2017-11-22 05:00:42] completer.INFO: Traversing with 2 walkers [] []
Unhandled error: Argument 3 passed to Padawan\Framework\Generator\IndexGenerator::processFileScope() must be an instance of Padawan\Domain\Scope\FileScope, array given, called in /home/reafle/do
tfiles/vim/plugged/deoplete-padawan/vendor/mkusher/padawan/src/Padawan/Framework/Complete/CompleteEngine.php on line 142

Am I doing something wrong, or this is a bug?

@mkusher
Copy link
Member

mkusher commented Nov 22, 2017

traits are not supported yet in padawan

@reafle
Copy link
Author

reafle commented Nov 22, 2017

I see. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants