ERROR - on.CompletionProgressIndicator - CodeCompletion from parent class

Hey,

I'm currently setting up some Selenium tests with the sausage class from sauce labs:
https://github.com/jlipps/sausage

My code is the following:

class SauceWrapper extends Sauce\Sausage\WebDriverTestCase {

     //Set the selenium server (sauce labs or local server)
     public function __construct() {

          //Setup WordPress
          $wp = new WP_UnitTestCase();
          $wp->setUp();

          if ( OWN_SELENIUM_SERVER ) {
               parent::setupSpecificBrowser( array( 'local' => OWN_SELENIUM_SERVER ) );
          }
     }


     public function setupSpecificBrowser( $params ) {
          if ( OWN_SELENIUM_SERVER && ! isset( $params['local'] ) ) {
               $params = $params + array( 'local' => OWN_SELENIUM_SERVER );
          }
          parent::setupSpecificBrowser( $params );
     }
}

I would expect that if I enter

$this->isTex

phpstorm suggests the 'isTextPresent' function from the 'WebDriverTestCase' class.
But I only get a "No Suggestions" popup.

If I mark the 'WebDriverTestCase' class I can go to the source code with F3, so PHPStorms seems to know the location of this class.
I then started PhpStorm via command line and get the following error when it searches the autocomplete:

[ 326591]  ERROR - on.CompletionProgressIndicator - com.intellij.psi.impl.source.tree.LeafPsiElement cannot be cast to com.jetbrains.php.lang.psi.elements.ClassReference
java.lang.ClassCastException: com.intellij.psi.impl.source.tree.LeafPsiElement cannot be cast to com.jetbrains.php.lang.psi.elements.ClassReference
     at com.jetbrains.php.lang.documentation.phpdoc.psi.impl.PhpDocMethodsListImpl.getType(PhpDocMethodsListImpl.java:24)
     at com.jetbrains.php.lang.documentation.phpdoc.psi.impl.PhpDocMethodImpl.getType(PhpDocMethodImpl.java:137)
     at com.jetbrains.php.completion.PhpVariantsUtil.getLookupItem(PhpVariantsUtil.java:169)
     at com.jetbrains.php.completion.PhpVariantsUtil.getLookupItems(PhpVariantsUtil.java:137)
     at com.jetbrains.php.completion.PhpCompletionContributor$PhpMemberRefCompletionProvider.addCompletions(PhpCompletionContributor.java:432)
     at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:36)
     at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:155)
     at com.jetbrains.php.completion.PhpCompletionContributor.fillCompletionVariants(PhpCompletionContributor.java:288)
     at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:84)
     at com.intellij.codeInsight.completion.CompletionService.performCompletion(CompletionService.java:115)
     at com.intellij.codeInsight.completion.CompletionProgressIndicator.a(CompletionProgressIndicator.java:769)
     at com.intellij.codeInsight.completion.CompletionProgressIndicator.access$900(CompletionProgressIndicator.java:84)
     at com.intellij.codeInsight.completion.CompletionProgressIndicator$1CalculateItems.run(CompletionProgressIndicator.java:751)
     at com.intellij.codeInsight.completion.AsyncCompletion$1$1$1.run(CompletionThreading.java:93)
     at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:908)
     at com.intellij.codeInsight.completion.AsyncCompletion$1$1.run(CompletionThreading.java:88)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
     at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)
     at com.intellij.codeInsight.completion.AsyncCompletion$1.run(CompletionThreading.java:84)
     at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:420)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
     at java.lang.Thread.run(Thread.java:744)
     at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:150)
[ 326592]  ERROR - on.CompletionProgressIndicator - PhpStorm 7.1.1  Build #PS-133.679
[ 326592]  ERROR - on.CompletionProgressIndicator - JDK: 1.7.0_51
[ 326592]  ERROR - on.CompletionProgressIndicator - VM: OpenJDK 64-Bit Server VM
[ 326592]  ERROR - on.CompletionProgressIndicator - Vendor: Oracle Corporation
[ 326592]  ERROR - on.CompletionProgressIndicator - OS: Linux
[ 326592]  ERROR - on.CompletionProgressIndicator - Last Action: CodeCompletion


CodeCompletion in other files does work.

Any idea whats the problem?

Cheers,
Chris

2 comments
Comment actions Permalink

Hi there,

Please try 7.1.2 EAP build -- http://blog.jetbrains.com/phpstorm/2014/01/phpstorm-7-1-2-eap-133-768/

If it was working before but stopped after you have upgraded IDE -- try "File | Invalidate caches..."

0
Comment actions Permalink

Works great in the 7.1.2 build!

0

Please sign in to leave a comment.