Remove all prints from the background thread. The parsing/reparsing stats are now using the CodeCompleteTimer API.
With that code, vim no longer segfault in debug mode!
Calling python print in a thread can segv vim.
So this patch actually fixes crashes in debug mode for you? Neither #228 nor #230 seem to be fixed by this, no?
In any case, I am fine with those changes.
Yes this patch completely fix all the segfault in debug mode.
#230 is crashing when we call complete_check(), so that's not related to calling vim functions in a thread. I don't know about #228...