universal-ctags / citre

A superior code reading & auto-completion tool with pluggable backends.
GNU General Public License v3.0
320 stars 26 forks source link

kill the process when citre-get-output-lines freeze over citre-proces… #135

Closed wcq062821 closed 1 year ago

wcq062821 commented 1 year ago

最近拿citre做后端,糊了一个在emacs最下方显示变量定义的工具, 由于空闲0.5s后就要去拿光标下的symbol的定义, 当光标频繁移动的时候,就会频繁调用 citre-get-definitions ,这个函数经常会崩溃, 最后debug 到是卡在下面这一段 (while (not finished) (accept-process-output)) 所以加了个with-timeout

AmaiKinono commented 1 year ago

I think this is not the best solution.

You could wrap citre-get-definitions in while-no-input. See the implementation of citre-capf--get-collection.

wcq062821 commented 1 year ago

It works fine, Thanks! Dalao :)