shawncplus/phpcomplete.vim

Doesn't show standart methods

Raensul opened this issue · 3 comments

Please help me to understand what am i doing wrong. I have tags file by phpctags. If I type code like this
$a = User::
and press ctrl+space, autocomplete works well and I am seeing all static methods defined in class User. But if I am writing code like

$b = new UserController;
$arr = $b->

and press ctrl+space nothing is happening.

In theory this scenario is supported. There are 3 different things that can be a reason:

  1. ctrl+space is not triggering this plugin since it's not the default binding. Give it a try with ctrl+xo the default omni-complete keybinding just in case
  2. The tag UserController for some reason is not found by the plugin in the tagfiles, you can verify this with :tselect UserController and see if anything shows up.
  3. The tag is found, but when the code tries to open the file it's supposed to be in from the tag file it can't open it and/or the file itself somehow failed to be parsed.

Can you show me the tag file and/or if you can show me the environment you are getting this, i might be able to look into it.

Thank you for reply.
I made tags file in the directory where class is defined and it is ok now.
Sorry to disturb you.

No worries, I'm glad you managed to figure it out. 👍