-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
Error loading syntax file: 'Packages/Babel/JavaScript (Babel).sublime-syntax' #419
Comments
Can you post your list of installed packages? It looks like it's having an problem loading the new Styled Components definition, and I wonder if a third-party package is interfering with that. |
@Thom1729 Yes, of course! This is what I have installed at the moment: |
Nothing seems like it would obviously conflict. Can you run the following in the Sublime terminal and post the result?
|
@IvanIsakof Just pinging you in case you missed my comment. |
@Thom1729 Yes, I am getting an empty array: |
That means that, somehow, the Styled Components syntax is not getting loaded. The only thing I can think of that would cause that is if you have the core CSS package set to ignored. Is that possible? |
@Thom1729 I don't think so. I have been working in sublime without adding packages or changing configuration for a long time. I get error after updating the sublime to a new build. Thank you for trying to help, later I will try to reinstall the sublime with all packages. |
I have a same problem. |
Can you close and reopen Sublime, then copy-paste the console output here? There might be something in there explaining why the Styled Components syntax is not loading. |
@Thom1729 It's my log about the error, and my ST version is 'build 4121', running on macOS 12.0.1.
|
Is there any message about the |
@Thom1729 , it's nothing just like @IvanIsakof
|
I mean, in the log messages when Sublime starts up, is there possibly a message about the Styled Components syntax like there is about the Babel syntax? |
OK, I provide the complete log messages from starts up, until open a javascript file. But i can't find that you want.
|
Thanks.
This is the problem. The Babel syntax relies on the Styled Components syntax, which in turn relies on the core CSS syntax (as of v11). (I'm surprised that there is no separate error for the Styled Components syntax failing to load.) The documentation doesn't explicitly mention that the core CSS package is required, and I should add that to the docs. Is there a particular reason that you've disabled the core CSS package? Making the new Styled Components syntax work without the core CSS package disabled would be complicated, but if there's an real need for that then I can look into it. If you didn't explicitly disable it yourself, then I wonder if one of the packages you have installed automatically disables the core CSS package. That would be a weird thing for a package to do, but I've seen weirder. |
Thanks for your reply. Yeah, it's work well when I enable the CSS package. But i don't know why disable it, it happened a long time ago. |
Hey, I found the reason that why i disable the default CSS package. Because i use the CSS3. And the installation guide tell me disable it.
|
@Thom1729 Hey, there has any update? |
Disabling default CSS syntax absolutely discouraged! The way how syntax inheritance and embedding works, these days, it is no longer possible to use 3rd-party syntaxes such as CSS3 as drop-in replacement for ST's default CSS syntax, which is embedded in all sorts of templating syntax definitions. |
Hello, after update sublime I have new error:
Error loading syntax file "Packages/Babel/JavaScript (Babel).sublime-syntax": Packages/Babel/JavaScript (Babel).sublime-syntax: no such target scope:source.js.css#at-keyframe-block-content
And my syntax hasn't definitions:
My sublime version is:
My OS version:
The text was updated successfully, but these errors were encountered: