mediaupstream/SublimeText-NodeEval

Does not work with ST 3 - issue with import thread

Gutek opened this issue · 3 comments

Hi,

I'm not Python dev, so sorry I can't fix it, but you depends in code on Python import thread which is causing plugin not to work :(

at least: Win8, default download of ST3.

What I've read in net is:

In such cases, you might need to recompile your Python interpreter to get access to threads. This usually involves invoking the configure script with the --with-thread option. Check the README file for your distribution to obtain specific instructions on how to compile Python with threads for your system.

but I do not know if this is a case.

This Pull Request #5 is causing this issue, reverting back makes it work again.

Cheers

Thanks for reporting this, i'll work on a workaround for versions of Python that don't have thread support.

Let me know if this fixes it for you, for now i've just disabled threading for Windows users, in the future it might be worthwhile to add a Windows specific threading feature.

Without threads, if you do something like:

setTimeout(function(){
    console.log('Test...');
}, 10000);

it will freeze up SublimeText for 10 seconds before giving you the results.

Python2 and python3 both have thread support on windows. But there is not thread package in python3.So we should use threading package only as we use Sublime Text 3 because the python version in ST3 is python3.