You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed require.js plugin
Configured it for my developed WP plugin (path /wp-content/plugins/pg-assets-portfolio/)
and added path to scripts /wp-content/plugins/pg-assets-portfolio/admin/js/pg-main
Error occured when tryed to autocomplete modules path in first param of
define(['paths I want to autocomplete','another path or name of module'], function(a_module, b_module){
// source of module
});
null
java.lang.NullPointerException
at requirejs.Path.probeResolveRequireAlias(Path.java:159)
at requirejs.Path.resolve(Path.java:111)
at requirejs.RequirejsProjectComponent.requireResolve(RequirejsProjectComponent.java:657)
at requirejs.RequirejsReference.resolve(RequirejsReference.java:40)
at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.resolves(PsiMultiReference.java:59)
at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.lambda$static$0(PsiMultiReference.java:43)
at java.util.TimSort.binarySort(TimSort.java:296)
at java.util.TimSort.sort(TimSort.java:221)
at java.util.Arrays.sort(Arrays.java:1438)
at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.chooseReference(PsiMultiReference.java:78)
at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.getRangeInElement(PsiMultiReference.java:94)
at com.intellij.psi.ReferenceRange.getRanges(ReferenceRange.java:38)
at com.intellij.codeInsight.completion.CompletionData.getReferencePrefix(CompletionData.java:145)
at com.intellij.codeInsight.completion.CompletionData.findPrefixStatic(CompletionData.java:176)
at com.intellij.codeInsight.completion.CompletionData.findPrefixStatic(CompletionData.java:187)
at com.intellij.codeInsight.completion.impl.CompletionServiceImpl.createResultSet(CompletionServiceImpl.java:88)
at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:80)
at com.intellij.codeInsight.completion.CompletionService.performCompletion(CompletionService.java:110)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.a(CompletionProgressIndicator.java:831)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.access$600(CompletionProgressIndicator.java:93)
at com.intellij.codeInsight.completion.CompletionProgressIndicator$1CalculateItems.run(CompletionProgressIndicator.java:813)
at com.intellij.codeInsight.completion.AsyncCompletion.b(CompletionThreading.java:108)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:931)
at com.intellij.codeInsight.completion.AsyncCompletion.a(CompletionThreading.java:105)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:176)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:556)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:501)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:163)
at com.intellij.codeInsight.completion.AsyncCompletion.a(CompletionThreading.java:103)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:334)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Plugin settings
The text was updated successfully, but these errors were encountered:
I installed require.js plugin
Configured it for my developed WP plugin (path /wp-content/plugins/pg-assets-portfolio/)
and added path to scripts /wp-content/plugins/pg-assets-portfolio/admin/js/pg-main
Error occured when tryed to autocomplete modules path in first param of
define(['paths I want to autocomplete','another path or name of module'], function(a_module, b_module){
// source of module
});
Plugin settings
The text was updated successfully, but these errors were encountered: