Closed manyoussef closed 1 year ago
Hello, which versions of plugin & IDE are you using?
also happening on latest web storm
WebStorm 2021.1.1
Build #WS-211.7142.46, built on April 30, 2021
Registry: eslint.additional.file.extensions=svelte
Non-Bundled Plugins:
dev.blachut.svelte.lang (0.18.0.203)
One more thing, could you attach example file that triggers this error?
I'm getting the same thing on IntelliJ IDEA 2021.1 (Ultimate Edition) Build #IU-211.6693.111, built on April 6, 2021 Licensed to Andrew Newton Subscription is active until December 5, 2021. Runtime version: 11.0.10+9-b1341.35 amd64 VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o. Linux 5.8.0-53-generic GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 8 Registry: eslint.additional.file.extensions=svelte Non-Bundled Plugins: IdeaVIM (0.66), dev.blachut.svelte.lang (0.18.0.203), org.jetbrains.kotlin (211-1.5.0-release-759-IJ6693.72), io.ktor.intellij.plugin (1.5.1-obsolete) Kotlin: 211-1.5.0-release-759-IJ6693.72 Current Desktop: ubuntu:GNOME
I don't with page caused the error because it didn't seem to cause any problems. I just looked down and saw the IDE warning.
My guess is that it has something to do with reactive declared variables in components. Because sometimes they are red in the editor. If I then modify the code they get the default color again. Example that I just have had: A reactive variable declaration $: x = ....;
and one usage in an await {#await x}
which where both in color red. After commenting out the await statement and then undoing this, the variable has got its default color.
@robsch Thanks, this is very valuable. I'll investigate
This issue was solved some time ago, apologies for not closing it here.