Skip to content

Are traits supported? #111

@reafle

Description

@reafle
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions