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

Syntax highlighting not working with lang="scss" #3337

Open
LMS007 opened this issue Feb 4, 2022 · 5 comments
Open

Syntax highlighting not working with lang="scss" #3337

LMS007 opened this issue Feb 4, 2022 · 5 comments
Labels

Comments

@LMS007
Copy link

LMS007 commented Feb 4, 2022

Info

  • Platform: Mac
  • Vetur version: v35
  • VS Code version: 1.64

Problem

SCSS is causing syntax highlight errors. I can only guess that it think this should be css, but it looks like it should be supports according to docs

I have also disabled all other plugins.

.vue file
Screen Shot 2022-02-04 at 10 44 52 AM

@jiverson
Copy link

jiverson commented Feb 7, 2022

Need a semi colon -> color: red;

@LMS007
Copy link
Author

LMS007 commented Feb 7, 2022

Sorry, bad example, here is a better one

Screen Shot 2022-02-07 at 8 43 27 AM

Screen Shot 2022-02-07 at 8 45 39 AM

@LMS007
Copy link
Author

LMS007 commented Feb 8, 2022

Today, for reasons I don't fully understand, the highlight started working! I suspect my issues may have come from other plugins affecting this one, but I honestly have no idea. I'll close this ticket for now and if I learn anything else, I will reopen with more details.

@LMS007 LMS007 closed this as completed Feb 8, 2022
@LMS007
Copy link
Author

LMS007 commented Feb 11, 2022

Update: ESlint was part of the problem, when that plugin is enabled, it causes errors in scss scopes. When its disabled, I don't have any issues, but none of my js files are working.

So I dont know if this issue is with Ventr or with ESLint, but I'd like to run both plugins at the same time unless there is another solution?

I further tracked this down to simply not working after restarted vscode after install vetur.

  1. Uninstall Vetur
  2. Disable all plugins
  3. Install Vetur
  4. Notice that scss works in vue files
  5. Restart vscode
  6. Notice that scss no longer works in vue files

vet2

@LMS007 LMS007 reopened this Feb 11, 2022
@yoyo930021
Copy link
Member

Do you try to use <style lang="scss" scoped> ?

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

No branches or pull requests

3 participants