Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.13.0-beta feedback #136

Closed
tomblachut opened this issue Aug 5, 2020 · 9 comments · Fixed by #137
Closed

v0.13.0-beta feedback #136

tomblachut opened this issue Aug 5, 2020 · 9 comments · Fixed by #137

Comments

@tomblachut
Copy link
Owner

tomblachut commented Aug 5, 2020

Do not hesitate to also comment if everything works so I know that somebody tested it, thanks 😃

Downloads here: https://github.com/tomblachut/svelte-intellij/releases/tag/v0.13.0-beta

Please attach text snippets AND screenshots/recordings where applicable

@russelgal
Copy link

russelgal commented Aug 6, 2020

WebStorm 2020.2
Build #WS-202.6397.88, built on July 25, 2020
Subscription expired on June 13, 2020
Runtime version: 11.0.7+10-b944.20 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.14.6
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 12

ok

{#if name}
    <h3>
        Form
        <b>{name}</b>
    </h3>
{:else}
{/if}

error

{#if name}
    <h3>
        Form
        <b>{name}</b>
    </h3>
{:else}{/if}
Stacktrace
java.lang.AssertionError: (788,788), text: {#if name}
    <h3>
        Form
        <b>{name}</b>
    </h3>
{:else}{/if}, language = Language: SvelteHTML
	at com.intellij.lang.folding.FoldingDescriptor.<init>(FoldingDescriptor.java:180)
	at com.intellij.lang.folding.FoldingDescriptor.<init>(FoldingDescriptor.java:104)
	at com.intellij.lang.folding.FoldingDescriptor.<init>(FoldingDescriptor.java:85)
	at com.intellij.lang.folding.FoldingDescriptor.<init>(FoldingDescriptor.java:70)
	at com.intellij.lang.folding.FoldingDescriptor.<init>(FoldingDescriptor.java:57)
	at dev.blachut.svelte.lang.editor.SvelteFoldingBuilder.appendBlockDescriptors(SvelteFoldingBuilder.kt:49)
	at dev.blachut.svelte.lang.editor.SvelteFoldingBuilder.doAddForChildren(SvelteFoldingBuilder.kt:18)
	at com.intellij.lang.XmlCodeFoldingBuilder.buildLanguageFoldRegions(XmlCodeFoldingBuilder.java:74)
	at com.intellij.lang.folding.CustomFoldingBuilder.buildFoldRegions(CustomFoldingBuilder.java:44)
	at com.intellij.lang.folding.LanguageFolding.buildFoldingDescriptorsNoPlaceholderCaching(LanguageFolding.java:92)
	at com.intellij.lang.folding.LanguageFolding.buildFoldingDescriptors(LanguageFolding.java:75)
	at com.intellij.codeInsight.folding.impl.FoldingUpdate.getFoldingsFor(FoldingUpdate.java:261)
	at com.intellij.codeInsight.folding.impl.FoldingUpdate.getFoldingsFor(FoldingUpdate.java:228)
	at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.buildInitialFoldings(CodeFoldingManagerImpl.java:134)
	at com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorImpl.loadEditorInBackground(PsiAwareTextEditorImpl.java:52)
	at com.intellij.openapi.fileEditor.impl.text.AsyncEditorLoader.lambda$scheduleLoading$0(AsyncEditorLoader.java:95)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:744)
	at com.intellij.openapi.fileEditor.impl.text.AsyncEditorLoader.lambda$scheduleLoading$1(AsyncEditorLoader.java:93)
	at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.insideReadAction(NonBlockingReadActionImpl.java:498)
	at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$attemptComputation$2(NonBlockingReadActionImpl.java:446)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1110)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:77)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:153)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:114)
	at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:56)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:170)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:629)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:581)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157)
	at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:56)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:111)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:77)
	at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.attemptComputation(NonBlockingReadActionImpl.java:463)
	at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$transferToBgThread$0(NonBlockingReadActionImpl.java:387)
	at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:215)
	at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:26)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:194)
	at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:207)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:183)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
	at java.base/java.lang.Thread.run(Thread.java:834)

@r00t3g
Copy link

r00t3g commented Aug 6, 2020

I am not sure if it was planned to be fixed, however, named imports usages are still not recognised when used only with reactive prefixes:
image

@tomblachut
Copy link
Owner Author

@r00t3g sadly nothing about that was done for now. Basically Find usages is broken for auto subscriptions

@r00t3g
Copy link

r00t3g commented Aug 6, 2020

Single-line script blocks get impromerly formatted - closing </script> tag sticks to the end of the code line. Does not occur when there are more that one line in the block

codeformat

@tomblachut
Copy link
Owner Author

@r00t3g
Screen Recording 2020-08-06 at 21 24 16

This is weird, actually Optimize imports is removing new line for some reason. Thx for finding it.

BTW why didn't you open issue for svelte-preprocess attributes sooner? ;)

@r00t3g
Copy link

r00t3g commented Aug 6, 2020

@tomblachut

BTW why didn't you open issue for svelte-preprocess attributes sooner? ;)

I've been working through the module structure for a new project at its very early stage, so I just don't pay enough attention to styles yet to spot the issue. 😁 The module from the screencap is just a part of experimental playground for sapper.

@shirotech
Copy link
Contributor

shirotech commented Aug 9, 2020

A minor issue which wasn't there prior to v0.12

Screen Shot 2020-08-09 at 3 05 12 pm

When using detect import, the variable shouldn't be red. It should be yellow with an underline to indicate there are imports available.

If I find any more, will sure to report it. Other than that, great effort in getting that #100 merged. Now looking forward to #97 next 😄

@tomblachut
Copy link
Owner Author

@shirotech actually I changed it on purpose. Reasoning:

  • TS always highlighted those in red
  • JS is more permitting because WS can't definitely know that symbol isn't somehow added to global scope
  • Svelte is a compiler with global symbol whitelist, so such debounceLazy definitely won't work without import - hence error
  • I like it more, to be completely honest

Correct me if I'm wrong ofc.

@shirotech
Copy link
Contributor

shirotech commented Aug 9, 2020

Cool that makes sense, just highlighting the difference just incase it was missed. Actually I like that as well, more aware of actual errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants