svelte-intellij icon indicating copy to clipboard operation
svelte-intellij copied to clipboard

Svelte components in WebStorm and friends

Results 62 svelte-intellij issues
Sort by recently updated
recently updated
newest added

The following screenshot shows a case where the plugin fails to find dependencies. This is, to be fair a nasty special case. Here I use svelte for electron browser windows....

Me again ;) I was just puzzled that a svelte file that 'looked' good didn't compile. I missed one single quotation mark on an import and both me and the...

bug

Github supports svelte in markdown like this ```text ```svelte ``` But the IDE only supports ```text ```sveltehtml ```

``` java.lang.AssertionError at com.intellij.lang.javascript.psi.impl.JSParameterImpl.getUseScope(JSParameterImpl.java:268) at com.intellij.psi.impl.search.PsiSearchHelperImpl.getUseScope(PsiSearchHelperImpl.java:76) at com.intellij.psi.search.searches.ReferencesSearch$SearchParameters.getEffectiveSearchScope(ReferencesSearch.java:112) at dev.blachut.svelte.lang.codeInsight.SvelteReferencesSearch.processQuery(SvelteReferencesSearch.kt:19) at dev.blachut.svelte.lang.codeInsight.SvelteReferencesSearch.processQuery(SvelteReferencesSearch.kt:12) at com.intellij.openapi.application.QueryExecutorBase.execute(QueryExecutorBase.java:77) at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:28) at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:91) at com.intellij.util.AbstractQuery.delegateProcessResults(AbstractQuery.java:108) at com.intellij.util.MergeQuery.processResults(MergeQuery.java:22) at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:91) at com.intellij.util.AbstractQuery.delegateProcessResults(AbstractQuery.java:108) at com.intellij.util.UniqueResultsQuery.processResults(UniqueResultsQuery.java:39) at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:91)...

waiting for reply

Refer to this test: https://github.com/sveltejs/svelte/tree/master/test/parser/samples/textarea-children And this repl: https://svelte.dev/repl/1e98afa6a765431d9368139f9f48c6dc?version=3.24.1

Svelte core
help wanted
area: html
platform: parser

Therefore, as the variable is treated as unused, its import gets removed when running 'Reformat code' with 'Optimize imports' option. Apart from all other problems like not found usages etc....

bug
platform: parser

I encountered this when using same quotes in the curly braces as in the html tags. ![image](https://user-images.githubusercontent.com/20517052/102222605-ed05a300-3ee3-11eb-9df8-162844bd1a19.png) --- ![image](https://user-images.githubusercontent.com/20517052/102222741-1c1c1480-3ee4-11eb-9d1a-02f3b19a43dc.png) --- ![image](https://user-images.githubusercontent.com/20517052/102222885-4d94e000-3ee4-11eb-8ec5-f0c469b4b477.png) I can provide additional code and examples if needed....

bug
area: html
platform: parser

Hi, thanks for this really nice plugin ! Would it be possible to add type suggestion for component props ? ![image](https://user-images.githubusercontent.com/33571141/117066363-a24fc080-acf6-11eb-9818-2e6818c1cc1e.png)

area: types

I often would rather have double quotes instead of curly braces. In the case when the js code within the braces has spaces, double quotes need to be used anyways....

discussion
area: html
platform: typing

Hi again, thx for the latest update spotted another bug. Something like this breaks the file: `class:materials={/"/.test()}` --- ![image](https://user-images.githubusercontent.com/20517052/105911413-730c2200-602a-11eb-841d-737bf9a6ed84.png)

platform: parser