Re: [cedet-semantic] Help with auto-completion
Brought to you by:
zappo
From: Farhan A. <ah...@gm...> - 2009-08-27 18:07:12
|
Another tid-bit of information - it seems like Semantic is firing on idle and I'm getting this error in the debug frame: Idle Work Including Error: "#<buffer .emacs> - Wrong type argument: number-or-marker-p, (512 39 . 8739)" What does it mean? Farhan On Thu, Aug 27, 2009 at 10:39 AM, Farhan Ahmed <ah...@gm...> wrote: > Hi there, > > I'm following instructions on > http://cedet.sourceforge.net/intellisense.shtml to enable auto-completion > of code in Emacs 23.1. > > Here's the relevant part from my .emacs file: > > (load-file "D:/tools/cedet-1.0pre6/common/cedet.el") > (global-ede-mode 1) ; Enable the Project management > system > (semantic-load-enable-code-helpers) ; Enable prototype help and smart > completion > (require 'semantic-ia) > I don't see any errors while loading Emacs and I've started it in > -debug-init mode as well. > > Here's some sample code I've written to test out the auto-completion: > > #include <stdio.h> > class A { > public: > A(); > ~A(); > int x; > int y; > int z; > int Init(); > private: > int DoIt(); > }; > > int main(int argc, char *argv[]) { > A* ca = new A(); > ca-> > } > When I put the cursor at the end of ca->, and then type M-x > semantic-ia-complete-symbol-menu, I don't get any options for > auto-completion. I only see "Cannot find types for "ca"" in the mini-buffer. > > In the debug window, I see: > > let*: Cannot find types for `"ca"' > Cannot find types for `"ca"' [2 times] > What am I doing wrong? Do I need to enable some option for Semantic to > analyze my code or does it do it on demand when I try to use an > auto-completion option? Also, how do I let SemanticDB analyze and cache > pre-existing 'include' files so that I can get auto-completion for those > functions? > > Any help would be greatly appreciated! > > Farhan > > |