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
Repeatable crash in syntax highlighter with embed. #2342
Comments
also confirmed on Win7 x64. |
Can confirm this on macOS too :). Good luck debugging. |
also somewhat related to this, is the %YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
scope: source.test-embed-prototype-handling
contexts:
prototype:
- match: foo
scope: keyword
push: foo
- match: hello
scope: constant.language
embed: inside
escape: world
escape_captures:
0: constant.language
main:
- match: ''
foo:
- match: bar
scope: bar
pop: true
inside:
- match: \d+
scope: constant.numeric if one was to use the above syntax definition and type |
@wbond Just bumping this because it's probably the cause of an easily-produced crash when using the core Java syntax. Not sure whether this would constitute a “critical” bug under the circumstances. |
Thanks for the reminder - I saw a crash report recently around lexing, so I made a mental note of coming back to this soon to see if fixing this solves the crash that was reported. |
Hah, so adding this test case hit an assertion in our debug build. 🙂 |
|
So is this fixed? I consistently couldn't open Java files - when clicking one ST3 just crashes. |
while this bug is being worked on, is there any action we can take in the meantime to be able to use Sublime for Java again ? |
@gardelea Yes, the stable build of Sublime Text is the solution until we have the next dev build (which is hopefully within the next week). |
@wbond ah ha, the stable build, of course ! |
This was fixed in build 3186 |
Summary
A certain pattern in a syntax definition, combined with certain input, causes Sublime to crash.
Steps to reproduce
Use the following syntax definition:
Open a new tab. Select the above syntax definition. The following inputs will cause Sublime to crash (
\n
denotes newline):AaZ
.A a Z
.A\naZ
The following will not:
AazZ
Aa\nZ
A\nazZ
Platform
Sublime 3175 x64
Fedora 25
The text was updated successfully, but these errors were encountered: