tomblachut / svelte-intellij

Svelte components in WebStorm and friends
MIT License
482 stars 38 forks source link

Webstorm 2019.1.4 0.9.0 error #58

Closed korywka closed 4 years ago

korywka commented 5 years ago
java.lang.NoSuchMethodError: com.intellij.lang.javascript.psi.resolve.ResolveResultSink.<init>(Lcom/intellij/psi/PsiElement;Ljava/lang/String;ZZ)V
    at dev.blachut.svelte.lang.SvelteJSReferenceExpressionResolver.resolveInScriptTag(SvelteJSReferenceExpressionResolver.kt:89)
    at dev.blachut.svelte.lang.SvelteJSReferenceExpressionResolver.resolveInComponent(SvelteJSReferenceExpressionResolver.kt:29)
    at dev.blachut.svelte.lang.SvelteJSReferenceExpressionResolver.resolve(SvelteJSReferenceExpressionResolver.kt:21)
    at dev.blachut.svelte.lang.SvelteJSReferenceExpressionResolver.resolve(SvelteJSReferenceExpressionResolver.kt:17)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:150)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:180)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:172)
    at com.intellij.lang.javascript.psi.resolve.JSResolveUtil.resolve(JSResolveUtil.java:2117)
    at com.intellij.lang.javascript.psi.impl.JSReferenceExpressionImpl.multiResolve(JSReferenceExpressionImpl.java:472)
    at com.intellij.lang.javascript.highlighting.JSSemanticHighlightingUtil.highlight(JSSemanticHighlightingUtil.java:174)
    at com.intellij.lang.javascript.validation.JSAnnotatingVisitor.visitJSReferenceExpression(JSAnnotatingVisitor.java:485)
    at com.intellij.lang.javascript.psi.impl.JSReferenceExpressionImpl.accept(JSReferenceExpressionImpl.java:459)
    at com.intellij.lang.javascript.validation.JSAnnotator.annotate(JSAnnotator.java:17)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.runAnnotators(DefaultHighlightVisitor.java:120)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:87)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.runVisitors(GeneralHighlightingPass.java:351)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$collectHighlights$5(GeneralHighlightingPass.java:284)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:311)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$analyzeByVisitors$6(GeneralHighlightingPass.java:314)
    at com.intellij.codeInsight.daemon.impl.analysis.XmlHighlightVisitor.analyze(XmlHighlightVisitor.java:597)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:314)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$analyzeByVisitors$6(GeneralHighlightingPass.java:314)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:71)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:314)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectHighlights(GeneralHighlightingPass.java:281)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:225)
    at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:84)
    at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:69)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:430)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1166)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:423)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:422)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:398)
    at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:164)
    at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:218)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:396)
    at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:174)
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
korywka commented 5 years ago

WebStorm 2019.1.4 Build #WS-191.8026.39, built on July 29, 2019 Subscription is active until January 9, 2020 JRE: 1.8.0_212-release-1586-b4 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.14.6

korywka commented 5 years ago

file:

<script>
    let name = 'world';
</script>

<style>
    h1 {
        color: red;
    }
</style>

<h1 on:click={}>Hello {name}!</h1>
tomblachut commented 5 years ago

Did you download the update form JetBrains page or Github? @bravecow

korywka commented 5 years ago

Jetbrains marketplace: https://plugins.jetbrains.com/plugin/12375-svelte (GET button)

tomblachut commented 5 years ago

Yeah, thanks, I've changed the setting in settings page but turns out it isn't working the way I thought it will work.

2019.1 won't be supported because JB changed some JS code and sadly I don't have bandwidth to support older products.

Sorry about the confusion, I'll retract this version and upload another one with version ranges set in different way.

korywka commented 5 years ago

Ops. I thought 2019.1 is the latest version. Downloading 2019.2... Thanks for your awesome work! ❤️

tomblachut commented 5 years ago

Hah good for you. 0.8.0 is bugged in 2019.2 because they changed how injections work 😛