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
- [VIM Plugin] Disable the omni-complete errors by default As this breaks the assumptions of some auto-complete managers (set `g:phpactorOmniError` to `v:true` to enable again), fixes #370. — committed to phpactor/phpactor by dantleech 6 years ago
- [VIM Plugin] Disable the omni-complete errors by default (#401) As this breaks the assumptions of some auto-complete managers (set `g:phpactorOmniError` to `v:true` to enable again), fixes #370. — committed to phpactor/phpactor by dantleech 6 years ago
@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
Plugor whatever you use, that would be great too ๐ )@fenetikm can you share how did you manage to setup deoplete to work with phpactor omnifunc?