-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Markup incorrectly parsed after <style global> SCSS flag #136
Comments
This is because the transformation behind the scenes mistakenly takes the === as the end of the global attribute. Thank you for the report. |
So this is another case where our regex-parser fails? Maybe we could refactor it as proposed here and then fix both these issues at once. |
This one is in
|
yeah, it seems that |
how can i see is this is added in the current version? is it auto-deployed when merged? At this moment it still shows the error |
It is autodeployed nightly, in about 8 hours. |
language-server and svelte-vscode seem to be released with the version of |
Oh, we definetely should somehow order the releases during the deploy then. @orta can we somehow change this so that it's "deploy svelte2tsx to npm first, then svelte-language-server, then svelte-check, then deploy svelte-vscode to marketplace", so that the |
I have tried to push some changes as a PR but it seems that the project is locked and I does not admit branches and PRs. I just did 2 changes to reorder the build in any case. Still today the vscode extension fails on this and I can see it seems that is failing the deployments for the last 3 or 4 days. |
Deployment: orta will look into it, he has made an issue to track it. |
Fixed in the last deployed version 🙇 👍 |
Describe the bug
HTML Svelte interpolated code with comparisons
{condition === 2}
starts to make the rest of the file to be wrongly parsed after <style> tag if 'global' flag is provided at the end of the style tag for SCSS preprocessors.This does not affect builds and the same svelte.config is both used for rollup and for vscode with the preprocessor.
To Reproduce
script - style - markup
.global
preprocessor flag attribute after any other attrib like<style src="./path.scss" global>
{x === 2}
.Minimal reproducible example:
Expected behavior
Nothing should be prompted unless it is a real error.
Screenshots
System (please complete the following information):
WORKAROUND
I found out that if
global
is set just before thesrc=""
attribute, the compiler will work.This clarifies that this issue is, in fact, from the language-tool, perhaps as a conflict with other built-in plugins from VSCode
The text was updated successfully, but these errors were encountered: