Sublime Forum

Crashes when I type in a particular Python method name

#1

Sublime Text 3 consistently crashes, whenever I type in a particular Python method name.

In a module ‘Module1.py’, I have a class ‘foo’ with ‘method1()’ and ‘method2()’, along with a ton of other stuff that I’ve written over the last few months, none of which has given me any trouble. I’ve now added ‘method3()’ to this class, copied and pasted from method2() with a few changes.

I have a unit test for ‘Module1’.py’, ‘unit-test-module1.py’, with a few classes, each with lots of test methods. In one particular test method, I have:

baz = Module1.foo()
baz.method2() # this works
baz.method3() # this crashes, every single time I either type it, or copy/paste.

Just typing ‘method3’ doesn’t crash. It will crash regardless of whether the parenthesis are there or not. But as soon as baz.method3 is typed, bam, it just shuts down, no error messages, no 'windows has blah blah blah… ’ the window just disappears.

I’m running on Windows 7 64-bit, ST3 latest release build, installed plugins are package control, anaconda, sublime linter, python pep8 autoformat, and some other unrelated stuff. This is honestly the first time that I’ve ever seen Sublime Text crash like this, it’s been rock solid and I’ve been using it for years.

It is extremely frustrating because I can’t even begin to figure out how to troubleshoot it when it isn’t giving me any information to work with.

Any help would be appreciated. Is this common? How do I troubleshoot or fix this?

0 Likes

#2

Try temporarily disabling the anaconda package, and seeing if the crash still occurs.

0 Likes

#3

Do any of your packages show a popup containing method information? I just fixed a bug related to the HTML popup that can cause crashes (seen on Windows, but not OS X). The fix for that should be part of the next build.

1 Like

#4

Disabling Anaconda indeed fixes it. Am I to assume that I need to take this bug up with the creators of that package? Is it normal for a package to completely crash Sublime Text without so much as a warning? I would have thought the Python sandbox would have been a bit more forgiving than that?

0 Likes

#5

API calls in Python still get translated to calls in ST’s internal C++ code, which is easily able to crash if it is faulty.

The particular issue that was talked about is this:

0 Likes