Wrong type argument , stringp, 1

I am using the latest cedet version from bzr. My cedet configuration is given below ( Taken from Alex Ott's file ).

(setq cedet-root-path (file-name-as-directory "~/cedet"))  
(load-file (concat cedet-root-path "cedet-devel-load.el"))  
(add-to-list 'load-path (concat cedet-root-path "contrib"))  

;; select which submodes we want to activate

(add-to-list 'semantic-default-submodes 'global-semantic-mru-bookmark-mode)  
(add-to-list 'semantic-default-submodes 'global-semanticdb-minor-mode)  
(add-to-list 'semantic-default-submodes 'global-semantic-idle-scheduler-mode)  
(add-to-list 'semantic-default-submodes 'global-semantic-stickyfunc-mode)  
(add-to-list 'semantic-default-submodes 'global-cedet-m3-minor-mode)  
(add-to-list 'semantic-default-submodes 'global-semantic-highlight-func-mode)  
(add-to-list 'semantic-default-submodes 'global-semanticdb-minor-mode)  

;; Activate semantic

(semantic-mode 1)  

I always get error "Wrong type argument , stringp 1" whenever I open a C source code.
Looks like (semantic-mode 1)
is causing the issue. Any help is appreciated.

I am using emacs 24, and I didn't see this issue if I use cedet that comes with emacs.

EDIT : Stack trace attached. Will send this to cedet-delevel mailing list also. .~/.semanticdb is not created yet( new laptop ).

Debugger entered--Lisp error: (wrong-type-argument stringp 1)
string-match("n" 1 0)
split-string(1 "n")
semantic-cpp-defs(1)
semantic-gcc-setup()
semantic-default-c-setup()
semantic-new-buffer-fcn()
semantic-mode(1)
eval-buffer(#<buffer  *load*> nil "/home/sudheesh/Dropbox/cedet_new.el" nil t)  ;     Reading at buffer position 898
load-with-code-conversion("/home/sudheesh/Dropbox/cedet_new.el" "/home/sudheesh/Dropbox /cedet_new.el" nil nil)

load("/home/sudheesh/Dropbox/cedet_new.el" nil nil t) load-file("~/Dropbox/cedet_new.el")

SOLVED: This issue is solved now. I haven't installed g++ compiler. The issue is because of this. Installing g++ compiler solved this issue. Thanks to the support of David Engster from cedet-dlevel mailing list.

链接地址: http://www.djcxy.com/p/62182.html

上一篇: 附加到Emacs服务器

下一篇: 错误的类型参数,stringp,1