RE: Re[1]: [cedet-semantic] semantic not loading properly
Brought to you by:
zappo
From: Tahoma T. <tah...@ya...> - 2003-04-16 14:47:59
|
Thinking that this might be a problem, I tried it with all combinations of compiled/interpreted for both EIEIO and Semantic before I ever wrote to you. I got exactly the same results each time. So, you said you see two possible problems... What was the second you had in mind? Also, note that I have used prior versions of these packages (as the foundation for JDE) without this problem. I recently started learning C#, so I thought I'd give CSDE a whirl. Since it also depended on your packages (which are great, by the way), I thought I'd freshen up my libraries while I was mucking around in my Emacs config. Oh, while I'm at it, I might as well point out a minor editorial problem on the SourceForge site. The link to the release notes file for the most recent version of Speedbar is slightly misnamed. It claims to be for "1.4beta4", when it should be "0.14beta4", as the name of the archive file properly represents. So, I just tried to rebuild everything from scratch, including refreshening my library directories from the original archives. I tried first without byte-compilation and then with. I'm definitely still getting the same results. However, I do not get the problem when I comment out the turn-everything-on line, so I will start experimenting with subsetting the features to get around the problem. Eureka!! Okay, the problem turned out to be that I had not yet updated my old version of JDE (I was updating the libraries it was dependent upon first, right...), and it was located in the load-path before EIEIO. I found this when I started stripping pieces out of my (relatively complicated) Emacs configuration file. Okay, thanks for your patience, and thank you for building such great packages for my darling editor. Now, if I could just figure out how to get Speedbar to be contained in the same frame as Emacs but be unaffected by buffer splitting... ;-} Cheers! -- Tahoma -----Original Message----- From: Eric M. Ludlam [mailto:er...@si...] Sent: Wednesday, April 16, 2003 6:36 AM To: Tahoma Toelkes Subject: Re[1]: [cedet-semantic] semantic not loading properly I see two possible problems. Problem 1 is that you have not byte compiled semantic. This causes the problem only indirectly as senator does not depend on semanticdb at load time unless you are not byte compiled. In addtion, byte compilation will speed up parsing. Of course, with turn-everything-on, it will eventually load semanticdb anyway. Have you byte compiled all the code? Everything should work with out byte compilation, but I don't test and run it that way myself. This type of problem has been solved in the past by re-byte-compiling everything and making sure EIEIO is on the load path at the time. On a PC, if you don't have an implementation of make, you can use dired: C-x C-f ~/lisp/eieio and then put the cursor on a given file and hit "B" to byte compile each file. Good Luck Eric >>> "Tahoma Toelkes" <tah...@ya...> seems to think that: >All declarations involving 'defclass' look good to me, but I consistently >get this message. > > >Context: >-------- > >OS -> Windows 2000 >Emacs -> GNU Emacs 21.2.1 (i386-msvc-nt5.0.2195) of 2002-03-19 on buffy >EIEIO -> 0.17 >Semantic -> 1.4.3 >Speedbar -> 0.14beta4 > > >Backtrace: >---------- > >Debugger entered--Lisp error: (error "Too many arguments to `defclass'") > signal(error ("Too many arguments to `defclass'")) > error("Too many arguments to `defclass'") > (if (< 1 (length options-and-doc)) (error "Too many arguments to >`defclass'")) > (progn (aset newc class-doc (car options-and-doc)) (if (< 1 ...) (error >"Too many arguments to `defclass'"))) > (if (stringp (car options-and-doc)) (progn (aset newc class-doc ...) (if >... ...)) (let* (... ... ...) (aset newc class-options co) (if ... ... >...))) > (let* ((pname ...) (newc ...) (clearparent nil)) (aset newc 0 (quote >defclass)) (aset newc class-symbol cname) (if (stringp ...) (progn ... ...) >(let* ... ... ...)) (if pname (while pname ... ...) (if ... ... ... ... >...)) (eieio-copy-parents-into-subclass newc superclasses) (put cname (quote >eieio-class-definition) newc) (while fields (let* ... ... ... ... ... ... >... ...) (setq fields ...)) (aset newc class-public-a (nreverse ...)) (aset >newc class-public-d (nreverse ...)) (aset newc class-public-doc (nreverse >...)) (aset newc class-public-type (apply ... ...)) (aset newc >class-public-custom (nreverse ...)) (aset newc class-protection (nreverse >...)) (aset newc class-initarg-tuples (nreverse ...)) (aset newc >class-class-allocation-type (apply ... ...)) (aset newc >class-class-allocation-values (apply ... ...)) (set cname cname) (let* (... >... ... ... ... ... ...) (while pubsyms ... ... ... ... ...) (aset newc >class-symbol-obarray oa)) (fset cname (list ... ... ... ...)) (let (...) >(fset csym ...)) (eieio-rebuild-doc-string cname) (if clearparent (aset newc >class-parent nil)) (if (eq cname ...) (message "Bootstrapping >objects...done")) (let (...) (aset cache 0 ...) (aset cache object-class >cname) (aset cache object-name ...) (let ... ...) (aset newc >class-default-object-cache cache)) newc) > defclass-engine(eieio-instance-inheritor nil ((parent-instance :initarg >:parent-instance :type eieio-instance-inheritor-child :documentation "The >parent of this instance.\nIf a slot of this class is reference, and is >unbound, then the parent\nis checked for a value.")) ("This special class >can enable instance inheritance.\nUse `clone' to make a new object that does >instance inheritance from\na parent instance. When a slot in the child is >referenced, and has\nnot been set, use values from the parent." :abstract >t)) > (defclass eieio-instance-inheritor nil ((parent-instance :initarg >:parent-instance :type eieio-instance-inheritor-child :documentation "The >parent of this instance.\nIf a slot of this class is reference, and is >unbound, then the parent\nis checked for a value.")) "This special class >can enable instance inheritance.\nUse `clone' to make a new object that does >instance inheritance from\na parent instance. When a slot in the child is >referenced, and has\nnot been set, use values from the parent." :abstract t) > eval-buffer(#<buffer *load*<7>> nil "eieio-base" nil t) > load-with-code-conversion("c:/tahoma/emacs/gnu/eieio-0.17/eieio-base.el" >"eieio-base" nil t) > require(eieio-base) > eval-buffer(#<buffer *load*<6>> nil "semanticdb" nil t) > >load-with-code-conversion("c:/tahoma/emacs/gnu/semantic-1.4.3/semanticdb.el " >"semanticdb" nil t) > require(semanticdb) > (progn (require (quote semanticdb))) > (eval-when-compile (require (quote semanticdb))) > eval-buffer(#<buffer *load*<5>> nil "semantic-ctxt" nil t) > >load-with-code-conversion("c:/tahoma/emacs/gnu/semantic-1.4.3/semantic-ctxt . >el" "semantic-ctxt" nil t) > require(semantic-ctxt) > eval-buffer(#<buffer *load*<4>> nil "senator" nil t) > load-with-code-conversion("c:/tahoma/emacs/gnu/semantic-1.4.3/senator.el" >"senator" nil nil) > (global-senator-minor-mode 1) > (progn (if (and semantic-load-turn-everything-on ...) (add-hook ... ...)) >(when (and ... ...) (add-hook ... ...)) (when >semantic-load-turn-everything-on (global-semantic-show-dirty-mode 1)) >(global-senator-minor-mode 1) (global-semantic-show-unmatched-syntax-mode 1) >(global-semantic-auto-parse-mode 1) (global-semanticdb-minor-mode 1) >(global-semantic-summary-mode 1)) > (if (or semantic-load-turn-everything-on >semantic-load-turn-useful-things-on) (progn (if ... ...) (when ... ...) >(when semantic-load-turn-everything-on ...) (global-senator-minor-mode 1) >(global-semantic-show-unmatched-syntax-mode 1) >(global-semantic-auto-parse-mode 1) (global-semanticdb-minor-mode 1) >(global-semantic-summary-mode 1))) > (when (or semantic-load-turn-everything-on >semantic-load-turn-useful-things-on) (if (and >semantic-load-turn-everything-on ...) (add-hook ... ...)) (when (and ... >...) (add-hook ... ...)) (when semantic-load-turn-everything-on >(global-semantic-show-dirty-mode 1)) (global-senator-minor-mode 1) >(global-semantic-show-unmatched-syntax-mode 1) >(global-semantic-auto-parse-mode 1) (global-semanticdb-minor-mode 1) >(global-semantic-summary-mode 1)) > eval-buffer(#<buffer *load*<3>> nil "semantic-load" nil t) > >load-with-code-conversion("c:/tahoma/emacs/gnu/semantic-1.4.3/semantic-load . >el" "semantic-load" nil t) > require(semantic-load) > eval-buffer(#<buffer *load*<2>> nil "dotemacs-gnu" nil t) > load-with-code-conversion("c:/tahoma/emacs/gnu/dotemacs-gnu.el" >"dotemacs-gnu" nil nil) > load("dotemacs-gnu") > (progn (message "loading GNU Emacs customizations common to all OS") (load >"dotemacs-gnu")) > (if (file-exists-p "~/emacs/gnu/dotemacs-gnu.el") (progn (message "loading >GNU Emacs customizations common to all OS") (load "dotemacs-gnu"))) > (progn (message "adding ~/emacs/gnu to the load path") (add-to-list (quote >load-path) (expand-file-name "~/emacs/gnu")) (if (file-exists-p >"~/emacs/gnu/dotemacs-gnu.el") (progn ... ...)) (cond (... ...) (... ...))) > (cond ((string-match "GNU" ...) (progn ... ... ... ...)) ((string-match >"XEmacs" ...) (progn ... ... ... ...))) > (progn (message "adding ~/emacs to the load path") (add-to-list (quote >load-path) (expand-file-name "~/emacs")) (if (file-exists-p >"~/emacs/dotemacs.el") (progn ... ...)) (cond (... ...) (... ...)) (cond >(... ...) (... ...))) > eval-buffer(#<buffer *load*> nil "~/.emacs" nil t) > load-with-code-conversion("c:/tahoma/.emacs" "~/.emacs" t t) > load("~/.emacs" t t) > #[nil ",T > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >cedet-semantic mailing list >ced...@li... >https://lists.sourceforge.net/lists/listinfo/cedet-semantic > -- Eric Ludlam: za...@gn..., er...@si... Home: http://www.ludlam.net Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org |