Semantic termination of emacs24

I am trying to get semantic add-ons that work with emacs 24 and the version of cedet that comes with it. Shutdown for classes defined by me in my source file, but shutdown does not work for standard library or STL element. Here is my emacs configurator:

(require 'cedet) (require 'semantic) (require 'semantic/ia) (require 'semantic/bovine/gcc) (semantic-add-system-include "/usr/include/c++/4.6.3" 'c++-mode) (setq semantic-default-submodes '(global-semantic-idle-scheduler-mode global-semanticdb-minor-mode global-semantic-idle-summary-mode global-semantic-idle-completions-mode global-semantic-highlight-func-mode global-semantic-decoration-mode global-semantic-mru-bookmark-mode)) (setq semanticdb-default-save-directory "~/.semanticdb/" semantic-complete-inline-analyzer-idle-displayor-class 'semantic-displayor-ghost) (semantic-mode t) 

In my ~ / .semanticdb directory, I see only "! Usr! Include! C ++! 4.6! X86_64-linux-gnu! Bits! Semantic.cache", which does not even use the version specified in the config.

When I try to execute Mx semantic-analysis-possible-completions in std :: list, for example, I get an error: "Unable to find types for std :: list"

Any suggestions for debugging this or how to fix it?

+4
source share
1 answer

I installed the new Ubuntu 13.04 today on my new SSD, and here are my steps for setting up CEDET (I checked that it gives completion for std::list ).

basic settings

  • Get fresh emacs and create it from the source. It is as simple as

    ./configure && make && sudo make install

  • Add to .emacs (semantic mode 1)

What is the whole installation.

Testing

  • Launch emacs without downloading anything:

    emacs -q test.cc

  • Enter a code

    #include <list>

     int main() { std::list lst; lst.$ return 0; } 
  • Mx semantic-mode

  • with a dot in $, Mx semantic-ia-show-variants

Troubleshooting

If the material does not work, it is likely that semanticdb is damaged.

Just find where it is, for me it is semanticdb-default-save-directory = "~ / .emacs.d / semanticdb", and delete everything from there.

Then, when visiting the source file, call semantic-force-refresh .

+1
source

All Articles