Sublime Forum

My sublime-syntax is hard crashing ST3 3122

#1

I’ve been working on a new sublime-syntax file when I tried an experiment.

name: Razor C#
file_extensions: cshtml
scope: source.razor.cs text.html.basic

Right after I added that second scope to my file, Sublime Text instantly crashed. Every time I opened Sublime Text, it would instantly crash. I removed the text.html.basic line in Notepad and managed to get Sublime Text to load, but now whenever I try to set a file to use my syntax, Sublime Text instantly crashes again.

I have tried:

  • Deleting all my workspaces and sessions.
  • Deleting my index and cache.

I’m not sure why it refuses to work anymore.

Here is my custom syntax:

It currently requires the version of C# here:

0 Likes

#2

Ah, I’ve managed to solve it.

Apparently clear_scopes was causing Sublime Text to crash horribly.

0 Likes

#3

I’ll look into it. Thanks for following up with what you found.

0 Likes

#4

I was most definitely using it incorrectly. The documentation doesn’t really do a good job explaining how it works, so I was experimenting with it in different places to see how it changes scopes. I wasn’t able to figure it out at all but I really didn’t need it.

0 Likes

#5

Well, in any case we shouldn’t crash. I’ll try to expand the documentation with an example or two also.

2 Likes