Sublime Forum

Error using set_timeout

#1

Inside my plugin, sometimes I get the following error:

Boost.Python.ArgumentError: Python argument types in
    sublime.set_timeout(function, float)
did not match C++ signature:
    set_timeout(boost::python::api::object, int)

I call it such as:

        new_delay = changed + 2 - time.time()
        func = lambda: deferred_get_list(view, changed)
        sublime.set_timeout(func, new_delay)

Can anyone spot what I’m doing wrong? thanks!

0 Likes

#2

Thanks FichteFoll for correcting me on github - I was suppling float to a function that expected int.

0 Likes