Autocompletion stopped working

Hi

All of a sudden even the very basic JavaScript autocomplete stopped working

I am using Webstorm 2017.3.4

I created a native app using create-reac-native-app using the CLI, then open the project using Webstorm

As you can see in the first image i started typing 'con' and nothing came up - there are vanilla things like console or const which should have shown


Here are images of my settings:


As I said it was working fine and then it just stopped. The only thing I did subsequently is added folders for plain javascript.

Thanks
Stephen

 

7 comments
Comment actions Permalink

Does the completion appear if you invoke it explicitly, via Ctr+Space? Also, try disabling Use Flow server for / Navigation, code completion, and type hinting - does it make any difference?

0
Comment actions Permalink

HI

Ctr+Space is only working with things already in the file for example look at the following image:

'Navigation'  only shows if i use 'ctrl + space' and it only appears briefly and then disappears. It didnt work for something like trying to use the vanilla JavaScript command 'document' or anything not already declared in the file :

The only instance when it automatically showed can be seen in the next image, where i had to first type out Navigation:

Thanks
Stephen

 

1
Comment actions Permalink

Strange.. did you try invalidating caches (File | Invalidate caches, Invalidate and restart)? Can you recreate the issue in a new project?

2
Comment actions Permalink

Oh great its working, that 'File | Invalidate caches, Invalidate and restart' seems to have done the trick

Thanks
Stephen

2
Comment actions Permalink

In my case the completion popup only showed up if I pressed Ctr+Space. It didn't automatically appear. Invalidating the caches solved the issue.

It appeared after upgrading to WebStorm 2019.1

0
Comment actions Permalink

Please make sure that power save mode is not enabled (File | Power Save Mode).

Note that completion doesn't auto-popup always, in some cases (string literals, paths, etc.) it has to be invoked explicitly

1
Comment actions Permalink

This started happening on 2019.1 out of blue. Initially code analysis got slower, now even code completion stopped working.

Gone through the pain(waiting for indexing) of Invalidating Caches thingy, made no difference.

Updated to latest build 192.6262.58 made no difference.

Did a fresh setup of the project made no difference.

Finally downloaded a fresh copy of IntelliJ and it worked.

There were below errors in the logs repeatedly with the non-working version IntelliJ

 

2019-08-26 16:47:26,822 [ 123027] ERROR - m.intellij.util.ExecutorsQuery - While loading class com.intellij.psi.jsp.BaseJspFile: loader constraint violation: loader com.intellij.ide.plugins.cl.PluginClassLoader @24d97c06 (instance of com.intellij.ide.plugins.cl.PluginClassLoader, child of 'bootstrap') wants to load interface com.intellij.psi.jsp.BaseJspFile. A different interface with the same name was previously loaded by com.intellij.util.lang.UrlClassLoader @59494225 (instance of com.intellij.util.lang.UrlClassLoader, child of 'platform' jdk.internal.loader.ClassLoaders$PlatformClassLoader). [Plugin: com.intellij.java]
com.intellij.diagnostic.PluginException: While loading class com.intellij.psi.jsp.BaseJspFile: loader constraint violation: loader com.intellij.ide.plugins.cl.PluginClassLoader @24d97c06 (instance of com.intellij.ide.plugins.cl.PluginClassLoader, child of 'bootstrap') wants to load interface com.intellij.psi.jsp.BaseJspFile. A different interface with the same name was previously loaded by com.intellij.util.lang.UrlClassLoader @59494225 (instance of com.intellij.util.lang.UrlClassLoader, child of 'platform' jdk.internal.loader.ClassLoaders$PlatformClassLoader). [Plugin: com.intellij.java]
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:221)
at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:165)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:73)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:877)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:335)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:330)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:294)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:218)
at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:165)
at com.intellij.ide.plugins.cl.PluginClassLoader.access$200(PluginClassLoader.java:28)
at com.intellij.ide.plugins.cl.PluginClassLoader$1.execute(PluginClassLoader.java:136)
at com.intellij.ide.plugins.cl.PluginClassLoader$1.execute(PluginClassLoader.java:128)
at com.intellij.ide.plugins.cl.PluginClassLoader.processResourcesInParents(PluginClassLoader.java:113)
at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:169)
at com.intellij.ide.plugins.cl.PluginClassLoader.access$200(PluginClassLoader.java:28)
at com.intellij.ide.plugins.cl.PluginClassLoader$1.execute(PluginClassLoader.java:136)
at com.intellij.ide.plugins.cl.PluginClassLoader$1.execute(PluginClassLoader.java:128)
at com.intellij.ide.plugins.cl.PluginClassLoader.processResourcesInParents(PluginClassLoader.java:113)
at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:169)
at com.intellij.ide.plugins.cl.PluginClassLoader.access$200(PluginClassLoader.java:28)
at com.intellij.ide.plugins.cl.PluginClassLoader$1.execute(PluginClassLoader.java:136)
at com.intellij.ide.plugins.cl.PluginClassLoader$1.execute(PluginClassLoader.java:128)
at com.intellij.ide.plugins.cl.PluginClassLoader.processResourcesInParents(PluginClassLoader.java:113)
at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:169)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:73)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at org.jetbrains.plugins.grails.lang.gsp.search.JspPageReferenceSearcher.processQuery(JspPageReferenceSearcher.java:26)
at org.jetbrains.plugins.grails.lang.gsp.search.JspPageReferenceSearcher.processQuery(JspPageReferenceSearcher.java:17)
at com.intellij.openapi.application.QueryExecutorBase.execute(QueryExecutorBase.java:77)
at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:31)
at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:91)
at com.intellij.util.AbstractQuery.delegateProcessResults(AbstractQuery.java:114)
at com.intellij.util.MergeQuery.processResults(MergeQuery.java:26)
at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:91)
at com.intellij.util.AbstractQuery.delegateProcessResults(AbstractQuery.java:114)
at com.intellij.util.UniqueResultsQuery.processResults(UniqueResultsQuery.java:40)
at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:91)
at com.intellij.util.AbstractQuery.forEach(AbstractQuery.java:83)
at com.intellij.util.AbstractQuery.findAll(AbstractQuery.java:27)
at com.intellij.find.findUsages.FindUsagesHandler.findReferencesToHighlight(FindUsagesHandler.java:170)
at com.intellij.find.findUsages.JavaFindUsagesHandler.findReferencesToHighlight(JavaFindUsagesHandler.java:268)
at com.intellij.codeInsight.daemon.impl.IdentifierHighlighterPass.getUsages(IdentifierHighlighterPass.java:172)
at com.intellij.codeInsight.daemon.impl.IdentifierHighlighterPass.getHighlightUsages(IdentifierHighlighterPass.java:149)
at com.intellij.codeInsight.daemon.impl.IdentifierHighlighterPass.lambda$highlightTargetUsages$0(IdentifierHighlighterPass.java:206)
at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:127)
at com.intellij.codeInsight.daemon.impl.IdentifierHighlighterPass.highlightTargetUsages(IdentifierHighlighterPass.java:205)
at com.intellij.codeInsight.daemon.impl.IdentifierHighlighterPass.doCollectInformation(IdentifierHighlighterPass.java:97)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:55)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:429)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1106)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:422)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:591)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:537)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:421)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:397)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:164)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:204)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:395)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:161)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
Caused by: java.lang.LinkageError: loader constraint violation: loader com.intellij.ide.plugins.cl.PluginClassLoader @24d97c06 (instance of com.intellij.ide.plugins.cl.PluginClassLoader, child of 'bootstrap') wants to load interface com.intellij.psi.jsp.BaseJspFile. A different interface with the same name was previously loaded by com.intellij.util.lang.UrlClassLoader @59494225 (instance of com.intellij.util.lang.UrlClassLoader, child of 'platform' jdk.internal.loader.ClassLoaders$PlatformClassLoader).
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:877)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:335)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:330)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:294)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:218)
... 67 more

 

0

Please sign in to leave a comment.