1

我已经使用http://cedet.sourceforge.net/中的信息和 Alex Ott 的文章 (http://alexott.net/en/writings/emacs-devenv/EmacsCedet ) 使用 CEDET 1.1 设置了我的 Emacs(v 23.3) .html)

我已经解决了与我的 init.el 文件相关的链接的大部分问题。

现在解决问题。我自己构建 TAGS,所以我的项目根目录中有一个 TAGS 文件。但是语义似乎不想使用该文件和 barfs 并出现以下错误:

Source file `/users/lshvarts/.emacs.d/cedet-1.1/semantic/ctags/semantic-ectag-util.el' newer than byte-compiled file
Exuberent CTags not found. Found ctags that comes with Emacs
semantic-ectag-test-version: Exuberent CTags not found. Use M-x semantic-ectag-version RET
Exuberent CTags not found. Use M-x semantic-ectag-version RET
Exuberent CTags not found. Found ctags that comes with Emacs

我拥有的 Etags 可能不是最新版本,但我很困惑为什么它明确拒绝使用它。
boxy:92> etags --version
etags (GNU Emacs 20.7)
Copyright (C) 1996 Free Software Foundation, Inc. and Ken Arnold
This program is distributed under the same terms as Emacs
boxy:93>

任何帮助/见解表示赞赏。

4

2 回答 2

3

你需要的不是etags,而是Exuberent CTags!您可以从您的 linux/mac 存储库(通常具有 nameectagsexuberant-ctags在 Debian 上)或从它的站点安装它。

于 2012-08-15T06:08:57.237 回答
1

这与您遇到的问题并不完全相关,但是在升级到 ubuntu 12.04 后,我得到了同样的错误(找不到丰富的 CTags。使用 Mx semantic-ectag-version RET)。

问题是 ctags-exuberant --version 返回了一个非数字版本:

Exuberant Ctags 5.9~svn20110310, Copyright (C) 1996-2009 Darren Hiebert
  Compiled: Nov  9 2011, 17:40:39
  Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net
  Optional compiled features: +wildcards, +regex

只需替换正则表达式

"Exuberant Ctags \\([0-9.]+\\),"

经过

"Exuberant Ctags \\([0-9.]+\\)[~,]"

在semantic-ectag-version 中(在semantic-ectag-util.el 中)并重新编译文件。

于 2012-08-25T05:54:20.943 回答