emacs-semantic

Strange semantic error

怎甘沉沦 提交于 2019-12-21 07:56:29
问题 I have reinstalled emacs 24.2.50 on a new linux host and started a new dotEmacs config based on magnars emacs configuration. Since I have used CEDET to some success in my previous workflow I started configuring it. However, there is some strange behaviour whenever I load a C++ source file. [This Part Is Solved] As expected, semantic parses all included files (and during the initial setup parses all files specified by the semantic-add-system-include variables), but it prints this an error

How to create an EDE project for C++

て烟熏妆下的殇ゞ 提交于 2019-12-20 23:29:10
问题 I have been trying to set up an EDE project for C++ (emacs24 + builtin CEDET) and I'm starting to get desperate because I can't seem to find the way I want the makefiles to be generated. I'm relatively new to Emacs. I'll try to describe what I'm doing: I have a toy project set like so: main.cpp other/ Utils.cpp Utils.h CGrabBuffer.cpp CGrabBuffer.h main.cpp includes both .h's inside the "other/" directory. These are the steps I follow to set up an EDE project with this simple directory setup:

How to include standard jdk library in emacs semantic?

旧时模样 提交于 2019-12-09 04:25:05
问题 I'm using Emacs 23.2. Here's how I'm loading semantic: (setq semantic-default-submodes '(global-semantic-idle-scheduler-mode global-semanticdb-minor-mode global-semantic-idle-summary-mode global-semantic-mru-bookmark-mode)) (semantic-mode 1) So, if I create a simple java file and visit it, I get code completion for locally defined methods and classes. But I can't figure out how to make semantic aware of jdk libraries. For example, if I try semantic-ia-complete-symbol on a String variable, I

Strange semantic error

此生再无相见时 提交于 2019-12-04 02:30:38
I have reinstalled emacs 24.2.50 on a new linux host and started a new dotEmacs config based on magnars emacs configuration. Since I have used CEDET to some success in my previous workflow I started configuring it. However, there is some strange behaviour whenever I load a C++ source file. [This Part Is Solved] As expected, semantic parses all included files (and during the initial setup parses all files specified by the semantic-add-system-include variables), but it prints this an error message that goes like this: WARNING: semantic-find-file-noselect called for /usr/include/c++/4.7/vector

How to create an EDE project for C++

佐手、 提交于 2019-12-03 07:15:13
I have been trying to set up an EDE project for C++ (emacs24 + builtin CEDET) and I'm starting to get desperate because I can't seem to find the way I want the makefiles to be generated. I'm relatively new to Emacs. I'll try to describe what I'm doing: I have a toy project set like so: main.cpp other/ Utils.cpp Utils.h CGrabBuffer.cpp CGrabBuffer.h main.cpp includes both .h's inside the "other/" directory. These are the steps I follow to set up an EDE project with this simple directory setup: Open main.cpp in emacs and do M-x ede-new ; type: Make ; name: main-proj . Open one of the files in

How to include standard jdk library in emacs semantic?

谁说胖子不能爱 提交于 2019-12-03 00:34:13
I'm using Emacs 23.2. Here's how I'm loading semantic: (setq semantic-default-submodes '(global-semantic-idle-scheduler-mode global-semanticdb-minor-mode global-semantic-idle-summary-mode global-semantic-mru-bookmark-mode)) (semantic-mode 1) So, if I create a simple java file and visit it, I get code completion for locally defined methods and classes. But I can't figure out how to make semantic aware of jdk libraries. For example, if I try semantic-ia-complete-symbol on a String variable, I get Cannot find types for 'String blah' . Does anyone know how to load the jdk libraries into semanticdb

Emacs/CEDET. Multiple projects and code completion

萝らか妹 提交于 2019-11-29 04:32:39
问题 I've setup emacs 23.1.50.1 with CEDET 1.0 and ECB 2.40 (heavily inspired by Alex Otts setup at http://github.com/alexott/emacs-configs/blob/master/rc/emacs-rc-cedet.el and his gentle introduction to Cedet ( http://alexott.net/en/writings/emacs-devenv/EmacsCedet.html ), thanks Alex). It works quite well, but I need more understanding about how code-completion and symbol-references are handled when working with multiple projects. I've created a simple ede project like this: (ede-cpp-root