phpactor: [COMPL] Omni-complete func. gives feedback with errors, breaks Deoplete

In Drupal, there is a class called ContentEntityBase that uses the __get method for โ€œfieldsโ€ such that you can validly do:

$content->field_custom->value = 'blah';

Unfortunately this throws the following when using deoplete in Vim and omnicompletion (anywhere in the file):

Error detected while processing function phpactor#Complete
line 31:
Class "Drupal\Core\Entity\ContentEntityBase" has no properties named "field_custom"

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (11 by maintainers)

Commits related to this issue

Most upvoted comments

@dantleech I created initial version https://github.com/kristijanhusak/deoplete-phpactor Still needs some tweaks, and rank is too high. Will finish it during the weekend, and create a PR to add a link to it.

Just gave your plugin a shot @kristijanhusak - works fabulously! ๐Ÿ‘

Awesome ๐Ÿ˜ƒ Would be great if you could create a PR for the vim plugin documentation and perahps also the VIM Doc (at some point that one will be generated, but currently Iโ€™m maintaining them both).

(p.s. if you wanted to a short installation instruction for Plug or whatever you use, that would be great too ๐Ÿ˜„ )

@fenetikm can you share how did you manage to setup deoplete to work with phpactor omnifunc?