- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在 X86_64-pc-gnu-linux (ubuntu 10.04) 上使用 emacs 23.1.1 并点击著名的链接 http://alexott.net/en/writings/emacs-devenv/EmacsCedet.html将所有配置添加到 .emacs。
但它甚至不能做基本的工作。我的设置或配置一定有问题。
如果我尝试让它显示成员函数,则无法找到。
[自动完成使用clang作为解析器。那么解析器语义使用什么? ]
;; Load CEDET
(load-file "~/backup/cedet-trunk/common/cedet.el")
(global-ede-mode 1)
;(semantic-load-enable-code-helpers)
(semantic-load-enable-excessive-code-helpers)
;(semantic-load-enable-semantic-debugging-helpers)
(global-srecode-minor-mode 1)
(global-semantic-tag-folding-mode 1)
(require 'semantic-tag-folding)
(global-semantic-idle-scheduler-mode 1)
(global-semantic-idle-completions-mode 1)
(global-semantic-idle-summary-mode 1)
(global-semantic-idle-completions-mode)
(require 'semantic-ia)
(require 'eassist)
(require 'semantic-gcc)
(require 'semanticdb-global)
(semanticdb-enable-gnu-global-databases 'c-mode)
(semanticdb-enable-gnu-global-databases 'c++-mode)
(setq qt4-base-dir "/usr/include/qt4")
(setq qt4-gui-dir (concat qt4-base-dir "/QtGui"))
(setq qt4-core-dir (concat qt4-base-dir "/QtCore"))
(semantic-add-system-include qt4-base-dir 'c++-mode)
(semantic-add-system-include qt4-gui-dir 'c++-mode)
(semantic-add-system-include qt4-core-dir 'c++-mode)
(add-to-list 'auto-mode-alist (cons qt4-base-dir 'c++-mode))
(add-to-list 'semantic-lex-c-preprocessor-symbol-file (concat qt4-base-dir
"/Qt/qconfig.h"))
(add-to-list 'semantic-lex-c-preprocessor-symbol-file (concat qt4-base-dir "/Qt/qconfig-large.h"))
(add-to-list 'semantic-lex-c-preprocessor-symbol-file (concat qt4-base-dir "/Qt/qglobal.h"))
(defun my-cedet-hook ()
(local-set-key [(control return)] 'semantic-ia-complete-symbol-menu)
(local-set-key "\C-c?" 'semantic-ia-complete-symbol)
(local-set-key "\C-c>" 'semantic-complete-analyze-inline)
(local-set-key "\C-c=" 'semantic-decoration-include-visit)
(local-set-key "\C-cj" 'semantic-ia-fast-jump)
(local-set-key "\C-cb" 'semantic-mrub-switch-tags)
(local-set-key "\C-cd" 'semantic-ia-show-doc)
(local-set-key "\C-cs" 'semantic-ia-show-summary)
(local-set-key "\C-cp" 'semantic-analyze-proto-impl-toggle)
(local-set-key "\C-cr" 'semantic-symref)
(local-set-key "\C-c\-" 'senator-fold-tag)
(local-set-key "\C-c\+" 'senator-unfold-tag)
)
(add-hook 'c-mode-common-hook 'my-cedet-hook)
(add-hook 'lisp-mode-hook 'my-cedet-hook)
(add-hook 'emacs-lisp-mode-hook 'my-cedet-hook)
(ede-cpp-root-project "Test"
:name "Test Project"
:file "~/project/shared/test-qt-semantic.cpp"
:include-path '("/"
)
:system-include-path '("/usr/include/qt4"
"/usr/include/qt4/Qt"
"/usr/include/qt4/QtGui"
"/usr/include/qt4/QtCore"
))
#include <QApplication>
#include <QPushButton>
#include <QString>
int main (int argc, char ** argv)
{
QApplication app (argc, argv);
QPushButton hello ("Hello, World!");
hello.resize (100, 30);
hello.show ();
QString id("hi");
return app.exec ();
}
Unable to find datatype for: "class QPushButton hello ()".
Declared type is: "class QPushButton {}"
Raw data type is: ("QPushButton" type (:type "class") nil nil)Semantic could not find this data type in any of its global tables.
Semantic locates datatypes through either the local scope, or the global typecache.
Local Scope Information:
* Tag Class Constraint against SCOPE: (type)
* No known parents in current scope.
* No known symbols currently in scope.
* No known symbols declared locally.
Semantic creates and maintains a type cache for each buffer.
If the type is a global type, then it should appear in they typecache.
To examine the typecache, type:M-x semanticdb-typecache-dump RET [ Do It ]
Current typecache Statistics:
0 types global in this file
0 types from includes.If the datatype is not in the typecache, then your include path may be incorrect.
Include Path Summary:
This file's project include search is handled by the EDE object:
Buffer Target: #ede-cpp-root-target /home/mike/project/shared/>
Buffer Project: #ede-cpp-root-project Test>
Backup Locator: #ede-locate-base Loc>The system include path is:
/usr/include/qt4/
/usr/include/qt4/QtGui/
/usr/include/qt4/QtCore/
/usr/include/c++/4.4/
/usr/include/c++/4.4/x86_64-linux-gnu/
/usr/include/c++/4.4/backward/
/usr/local/include/
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/include/
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/include-fixed/
/usr/include/Include Summary: /home/mike/project/shared/test-qt-semantic.cpp
test-qt-semantic.cpp contains 3 includes.
Unknown Includes: 0
Unparsed Includes: 0
Parsed Includes: 3
No unknown includes.
最佳答案
那么在底部它说:
It seems, that this approach will not work in fresh CEDET - I'm working on fix
It seems, that CEDET wasn't compiled properly. Please, take CEDET from CVS and compile according instructions
关于emacs cedet 语义与 Qt4 如何配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11796744/
我让 CEDET 大部分时间在 emacs 24.2 上工作,最新的来自 bzr存储库。 当我搜索符号或定义时,我看到 cedet 迷你缓冲区显示通过大量文件进行解析,其中一些不作为头文件存在,这些文
我的工作计算机(Ubuntu 8.10)安装了 CEDET 版本 1.0pre4,我正在尝试在我的本地目录中安装最新版本的 CEDET(1.0pre6)(最终目标是将 ECB 升级到最新版本)。 不幸
我想添加 openMPI 库头文件的路径。因此,在我发现所有 openMPI 头文件都在/usr/lib/openmpi/include/* 之后,我将这两行添加到了我的 .emacs 中: (sem
我将 ECB 与 Cedet 一起使用 - 语义搜索引擎在其缓存文件中存储有关我访问的文件的标签。 我也在使用欧洲央行的 left-symboldef layout - 显示光标所在标签的定义。为了实
我使用最新的 CEDET 和 emacs 23.2。我发现 CEDET 有问题,不知何故,我当前的编辑缓冲区在没有任何错误消息的情况下使用语义加载启用guady-code-helpers 模式被杀死。
我正在使用 Emacs 和 CEDET 并自动完成代码完成。最初我设置了 CEDET,所以它每次在 Emacs 启动时加载。 但是,这花了很长时间,所以我认为在需要时加载它会很聪明,即 - 在我的情况
尽我所能,我无法让 CEDET 做任何事情。 Emacs 24.3。我下载了最新的 CEDET 快照。我从他的底部(不是这样)Gentle Introduction 中获取了 Alex Ott 的设置
我已经使用 CEDET 1.0 和 ECB 2.40 设置了 emacs 23.1.50.1(很大程度上受到了亚历克斯·奥茨在 http://github.com/alexott/emacs-conf
我将 CEDET(最新的 CVS)与几个中等规模的项目(每个项目几百 kLOC,主要是 C,但也有一些 C++)一起使用,有时会遇到长时间的停顿,系统在几秒钟内完全没有响应。更罕见的是,它完全失控,我
在我的 .emacs 文件中我有: (add-to-list 'load-path (expand-file-name "emacs/site/jde/lisp")) (add-to-list 'lo
我的测试设置: 英特尔双核 3GHz、Windows XP 32 位、Emacs 23.2.1、CEDET v1.0(按照 INSTALL 文档中的描述进行字节编译)。 Emacs init 文件只包
我希望每次打开 .cpp 文件时,语义标签折叠都会被激活。我正在使用最新版本的 cedet(加载 cedet-devel-load.el)。我有 (semantic-mode 1) (require
我读过亚历克斯·奥特的 fantastic guide to CEDET对于 Emacs,我想我知道如何正确设置我的 EDE 项目。 但是,当我尝试跳转到 时本地 符号(例如 C++ 中的 main(
我有以下设置:我在自定义构建系统下处理 C++ 项目,并且源代码目录在我的开发机器上不是很稳定,因为我经常在他们自己的目录中检查某些项目的特定版本(关闭我存储所有源代码的单个源目录)用于维护或新功能开
试图通过使用 EDE 生成 Makefile 来理解 EDE 的工作原理 包含特定目标下的多个目标的项目目录 等级制度。我运气不好,信息页面似乎也没有 回答我的问题。 我的目录结构类似于: (星号 (
我必须使用 C/C++ 构建环境,该环境会到处丢弃中间文件: .i 包含 C 预处理器输出的文件(大致是原始 C) .s 包含 C 汇编程序输入的文件 CEDET(我假设是语义分析器)最终找到了这些文
我想使用 cedet 包 (emacs) 中的语义代码折叠。我安装了 1.1 版本并在 .emacs 中添加了以下行: (load-file "~/software/cedet-1.1/common/
我已经按照 Alex article 为 emacs 配置了 CEDET (伟大的!!)。现在,问题: 我已经在我的 /usr/include 中使用 Gnu Global 生成了 GTAGS,我如何
我是 emacs cedet 用户。我得到了 cedet 的大力帮助。 但是,我发现在 cedet 中处理 #ifdef 时出现一些错误。 不确定它是来自 cedet 内部还是我的错误配置。 我在 C
我在 X86_64-pc-gnu-linux (ubuntu 10.04) 上使用 emacs 23.1.1 并点击著名的链接 http://alexott.net/en/writings/emacs
我是一名优秀的程序员,十分优秀!