sveltejs / svelte

Cybernetically enhanced web apps
https://svelte.dev
MIT License
78.6k stars 4.12k forks source link

Svelte 5 REPL: not display error or warning wavy lines when first opened #11888

Open qupig opened 4 months ago

qupig commented 4 months ago

Describe the bug

You will never see any red or yellow wavy lines the first time you open a REPL links unless you change the code content once.

For errors, at least you will see the compilation error on the right. But as with any warning messages, you won't see them once you open the REPL unless you edit the code area.

Reproduction

Svelte5-REPL

Note that the issue is not 100% reproducible, see comments below.

Logs

No response

System Info

Firefox ESR
Across multiple Svelte5 versions including the latest.

Severity

annoyance

7nik commented 4 months ago

I see the warning. Firefox 126.0.1 (64-bit) for Majaro Linux. Though, for me, often the entire code doesn't render at the first opening 😆

qupig commented 4 months ago

@7nik You are right, I re-ran the refresh test multiple times and I can confirm that the issue is not 100% reproducible.

Sometimes the wavy lines will appear very quickly, before the right side has finished rendering.

But more often than not I have to make an edit in the code area for it to appear (such as entering a space).

Though, for me, often the entire code doesn't render at the first opening 😆

It looks like you are experiencing additional problems. Might as well elaborate. Maybe something like #11886.