"Invalid" items in code completion

Code completion tips began operate not correctly after upgrade PhpStorm to 2016.2. Class methods do not appear at the tips of the first time when I start type method name. Instead of the correct methods the words "Invald" appear.

 

 

6 comments
Comment actions Permalink

Hi there,

First of all -- please try "File | Invalidate Caches..." and restart IDE -- usually helps in such cases.

On another hand, there is indeed similarly looking issue in 2016.2.

I see that you have custom Live Template to complete "th" (or similar) into "$this->" (and you are actually using it)

Right now IDE has issue that when Live Template is used some of the completion entries become "Invalid" in completion list. https://youtrack.jetbrains.com/issue/WI-32626 -- watch this ticket (star/vote/comment) to get notified on any progress.

Right now I may only suggest to disable that particular Live Template (BTW -- how does it look -- the body?).. or maybe complete it differently (e.g. maybe just record a macro where you are typing whole "$this->" sequence and assign custom shortcut to it..)

1
Comment actions Permalink

Thanks for reply!

>>> First of all -- please try "File | Invalidate Caches..." and restart IDE -- usually helps in such cases.

Restarting IDE each time after I adding a new members to the class... you probably kidding me :-)

>>> Right now IDE has issue that when Live Template is used some of the completion entries become "Invalid" in completion list.

The same thing happens if I even do not use Live Templates.

0
Comment actions Permalink

>The same thing happens if I even do not use Live Templates.

Seems to work OK for me.

I have "t" as Live Template abbreviation for "$this->". Typing "t[tab]" does completes it to "$this->" (no extra variables in live template that forcibly invoke code completion after expansion etc) and I can type and see all entries without "invalid" among them.

I still do see these "invalid" entries but only if I manually choose Live Template entry in completion list and finish it with Enter (at least this is how I understand of why it happens to me). Not sure at all what else can cause it in your case.

1
Comment actions Permalink

>The same thing happens if I even do not use Live Templates.

Could you please give us an example?

0
Comment actions Permalink

I'll show you example if it will happen again.

P.S. кстати можно и по русски :-)

0
Avatar
Vladimir Luchansky
Comment actions Permalink

Please don't - forum is an international place, let's stick to English.

0

Please sign in to leave a comment.