Sublime Forum

Random syntax change

#1

Alright, I will keep it short and simple. My syntax keeps randomly changing a lot, either after package updates and especially after the last sublime update. To remedy this, I have my color scheme file (.tmTheme) under user.

This is not the first time this happens and it gets me super frustrated when it happens. I am using a custom theme (Material theme) but I keep pointing to my custom color scheme file yet the syntax still changes.

Here is how my settings users file looks like

{ "bold_folder_labels": true, "color_scheme": "Packages/User/Material-Theme.tmTheme", "font_size": 11, "ignored_packages": [ "JavaScript Completions", "Vintage" ], "material_theme_accent_yellow": true, "theme": "Material-Theme.sublime-theme" }

Any help would be appreciated.

1 Like

#2

Your syntax is changing, or your color scheme. Confused because you are talking about two different things.

1 Like

#3

My syntax, but whenever I change my color scheme my syntax changes too so they are basically related right? But its just my syntax that changes.

0 Likes

#4

I think some screen shots showing what you are seeing would be helpful.

Syntax and color scheme are not related.

0 Likes

#5

With syntax, I am talking about the color of it.

Here is a gif of me changing the color scheme & the syntax color changing with it.

0 Likes

#6

The whole point of a color scheme is to change the color of syntax elements. Why would you expect the colors to stay the same when changing color scheme?

0 Likes

#7

The syntax just defines what each word or symbol labeled as. The color scheme decides how to color those labels, and don’t use the same groups as far as what they color the same.

1 Like

#8

I think you are missing the point. Whenever I am using the same color scheme and a package or sublime updates. My syntax color gets changed, without me even touching it. Is that normal behavior to you ?

0 Likes

#9

Alright thanks for your explanation. Do you understand my issue and what could be possibly causing it or not?

0 Likes

#10

I am really not understanding what the problem is… if that gif was supposed to show it.

0 Likes

#11

Then why did you post a gif of you changing the color scheme?

If the syntax file you are using (JavaScript, for example) gets updated by Sublime HQ you would expect the appearance of a file to change, without changing the color scheme, because the underlying syntax definition has changed.

0 Likes

#12

Because someone thought syntax color and my color scheme are different while I thought they are related because changing the color scheme also changes the syntax so I was just proving a point.

And that is the issue I am having, file appearance that just randomly changes. Is this supposed to be normal behavior, because at one point I get used to the syntax and I am not sure if you would get as annoyed and frustrated as me when the file appearance changes.

0 Likes

#13

I am having a hard time finding the proper terms to describe my issue. But basically the color of the ‘symbols’ and ‘words’ randomly changes.

0 Likes

#14

Well. It shouldn’t randomly change. Now if you are on the stable release rather than the dev release, I believe the last update changed a ton of the syntax definitions. Nothing that major should happen again. But if it is changing on a regular basis and is “random” that is not expected. You can try reinstalling, or disabling packages to try to see what is causing it.

The plain vanilla install shouldn’t be causing this.

0 Likes

#15

I am on the stable channel (Build 3114) And it does happen on a regular basis sadly, I assume I will just need to reinstall it & if the issue persists I will just switch over to another editor. Thanks for your help though!

0 Likes

#16

You mean it changes when you update your sublime version? There are a lot of fixes going on right now on syntaxes, but hopefully for the better.

Although it might seem wrong when you are used to something else.

0 Likes

#17

Not only when sublime updates, but also package updates change it sometimes and the level of frustration it causes is indescribable.

0 Likes

#18

I guess you can manually override the syntax as well as the color scheme if you do not want any changes to them

0 Likes

#19

Package Control temporarily switches the color scheme to a default scheme if the package providing it is updated. This is because the package will be temporarily unavailable while the update is performed and ST would complain about the file missing (an awful lot of times).

It should set the color scheme back to its original value however.

1 Like