Error in process sentinel: Selecting deleted buffer

在编写代码时经常被这个error中断(error in process sentinel: Selecting deleted buffer),这个是什么错误,不知道有谁碰到过。

你可以搜索一下是哪个 package 报的这个错误,我之前用ycmd 好像有出错过。

我用了clang,不知道怎么搜索具体是哪个package报的错误,请山人指点下

这个我试过,调了半天。先toggle-debug-on-error看堆栈发上来,如果有#[]这东西,把elpa下所有的.elc删掉重来,这样调试的时候不会全是bytecode可以看多一点。如果能看到是哪个包最好,不行的话更难找。。因为是macro-expanded代码

试了你的方法得到下面的信息,但是看不懂。

Debugger entered–Lisp error: (error “Selecting deleted buffer”)

[#(“StockKN” 0 1 (fontified t) 1 2 (fontified t) 2 3 (fontified t) 3 4 (fontified t) 4 5 (fontified t) 5 6 (fontified t) 6 7 (fontified t)) “^\(.+?\):\([0-9]+\):\(?:$\|[^0-9\n]\|[0-9][^0-9\n]\|[0-9][0-9].\)” # # ggtags-get-definition-default #[257 “\300D\302!\207” [#(“StockKN” 0 1 (fontified t) 1 2 (fontified t) 2 3 (fontified t) 3 4 (fontified t) 4 5 (fontified t) 5 6 (fontified t) 6 7 (fontified t)) ggtags-eldoc-cache eldoc-message] 3 “\n\n(fn S)”] nil re-search-forward t 2 line-end-position match-string 1 string-to-number kill-buffer] 8 “\n\n(fn STATUS)”] process-status (exit signal) process-buffer set-process-buffer nil process-exit-status] 5 “\n\n(fn PROC MSG)”](#<process global<1>> “finished\n”)

这个就是Bytecode。可以disassemble或者删除.elc重新load过再重现

看起来是ggtags的锅

恩,只能大概的看是ggtags的,但不知道具体的问题

你把ggtags的所有elc删了重启emacs或者把ggtags全部load一遍