Closed bbalban closed 1 year ago
Error loading scope:source.sass: Unable to find syntax file for scope source.sass in Packages/Pug/Syntaxes/Pug.tmLanguage Error loading scope:source.less: Unable to find syntax file for scope source.less in Packages/Pug/Syntaxes/Pug.tmLanguage
Is this plugin still maintained?
This is directly related to changes made to the built-in JavaScript language package, it's not due to changes in Core. If you disable the JavaScript
package, highlighting of non-JS blocks works.
Temporary (hacky) workarounds:
source.js
in the Pug syntax definition with another scope (can be an invalid scope like source.jsnoop
, but you'll get Unable to find syntax file for scope
warnings in the console).
source.jsforpug
and then replacing source.js
in the Pug syntax file with source.jsforpug
might work.My (temporary) solution is set the default syntax for pug (jade) file using pug (python)
syntax.
@cristianl 's suggestion worked. The steps are
disable package
javascript
install package
babel
@Soviut that worked great! Thanks — One thing to note is that .js
files get set to Plain Text
and need to be switched to use Set Syntax: Babel (JavaScript)
after following your steps.
@cristianl 's suggestion worked. The steps are
- Ctrl + Shift + P` (Tools > Command Palette)
- type
disable package
- type
javascript
- Ctrl + Shift + P` (Tools > Command Palette)
- type
install package
- type
babel
thank you this saved me a lot of hassle. it worked!
Apparently they introduced a lot of syntax related changes.