LightTable / Python

Python language plugin for Light Table
MIT License
98 stars 51 forks source link

Fix bug: Namespace switch prevents LT from returning eval result #13

Closed edwastone closed 10 years ago

edwastone commented 10 years ago

If the source file contains errors, namespace switch will fail. Subsequent submission of eval(s) would need to wait for the msgloop to pick up the Exception, otherwise they will be considered to be from the same batch of erroneous submitted source.

This sleep() should not be repeated for each eval, unless the user switch the namespace. As such, I added the check to reduce the latency.