[rtags] Rtags protocol version mismatch

之前一直在用 gtags, 现在尝试用 rtags,感觉功能更强大。 昨天晚上在Mac 上

brew install rtags

安装了 rtags (2.31.127)但是spacemacs 最新的 rtags (defconst rtags-protocol-version 128) 我尝试按这个办法去改为(defconst rtags-protocol-version 127) [https://github.com/Andersbakken/rtags/issues/1182]

但是仍然没有用,大家还有别的办法吗?

apply: RTags: protocol version mismatch. This is usually caused by getting rtags.el from melpa and installing a new rtags build that modified the protocol. They need to be in sync.

我遇到这个问题了,然后按照说明修改过来了。但是我不记得我怎么做的了。。。

哦,好的,多谢

rtags的el要和外部rtags程序版本一致。最好就是不用Emacs包管理的rtags相关的el,我以前是自己编译的rtags,make install的时候会按照相关的el文件,这样版本肯定会一致。

1 个赞

我重新编译了tags 而不是用 brew install rtags 就可以了,可能是brew 里面的版本老了,多谢你的建议

我现在开始使用lsp-ccls, Mac 下可以直接brew install。整体补全节奏很快,信息也很全。相比于rtags,目前体验好很多。

我也是,以前用rtags,现在已经改用lsp了