Sublime Forum

Crash Sublime Text 3 when press 'tab' key in style html attr

#1

Hi,
When I press ‘tab’ key in particular condition in the value of the style attribute Sublime Text will crash, such as with this code:

<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
	<a style="
*	"></a>
</body>
</html>

If you press ‘tab’ key before or after the ‘*’, or remove the ‘*’ and press ‘tab’ key Sublime Text will crash. You too?
I’ve this problem on my MacBook Pro with the last version of Sublime Text 3.2.1 (BUILD 3207).

0 Likes

Plugin_host crash on Win10 x64
Directory tree collapses randomly
#2

Are you by any chance using the Emmet package?

1 Like

#3

Would appreciate clarification – is the recommendation simply to not use emmet at all because the cause is unfixable or unknown?

I was using emmet but have now deactivated it to see if this prevents crashes over time. Crashes are/were occasional but the cause seems to be always when I hit tab in some complex syntax scenario. I don’t think I had customised emmet at all. Can anyone explain the approximate cause of the crash? Would be good to know.

0 Likes

#4

Emmet’s plugin code is poorly engineered (and unmaintained) and easily enters an infinite loop, which ofc never returns control back to the editor

1 Like