## Bug: assert and crash when printing from a TextCommand?

### Bug: assert and crash when printing from a TextCommand?

Create a text command that prints something such as this, bind it to a key and activate it through the keybinding.

Code: Select all
class Test(sublimeplugin.TextCommand):    def run(self, view, args):                print "test"

Using the latest beta everything usually works fine, but sometimes I get a crash with message "Assertion failed in .\text\text_buffer.cpp:390:m_constructionDepth == 0". Looks like this happens always if I have focus set to the text buffer in the console. It works fine if another view (or input field in console) is focused.
mry

Posts: 10
Joined: Fri Oct 30, 2009 5:42 am

### Re: Bug: assert and crash when printing from a TextCommand?

Thanks for the report - will fix for the next beta
jps