2012-08-15 74 views
1

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

我已经得到了大部分关于我的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

ETag时,我有可能不是最新版本,但我很困惑,为什么说白了拒绝工作用它。
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>

任何帮助/见解是赞赏。

回答

3

你不需要etags,但是Exuberent CTags!您可以从您的linux/mac存储库(通常在Debian上有ectagsexuberant-ctags)或从it's site进行安装。

+0

这是一个无赖 - 我的开发机器没有root权限,没有ectags。也许我可以谈谈一些IT专家。 – pinkstone 2012-08-16 19:14:27

+2

为什么不把它安装到你的主目录,并将'semantic-ectags-program'变量(通过'M-x customize-variable')设置到新位置?它应该没有问题 – 2012-08-17 10:34:01

+0

然后解决所有的依赖问题 - 内核版本在机器上也很旧。我尝试过一次,只是在那个阶段放弃了。 – pinkstone 2012-08-28 17:02:45

1

这与你所遇到的问题并不完全相关,但升级到Ubuntu 12.04之后,我得到了同样的错误(Exuberent CTags没有找到,使用M-x语义-ectag版本RET)。

的问题是,ctags的,旺盛--version返回非数字版本:

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

通过

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

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

只需更换正则表达式语义ectag-版本(在semantic-ectag-util.el中)并重新编译该文件。

+0

上编译CEDET的哪个版本?我相信,这在1.1版本中得到修复...... – 2012-08-30 10:25:15