7 Dec 2008 12:39
nil classes, like in: eieiomt-method-list(semanticdb-synchronize 0 nil)
Daniel Clemente <dcl441-bugs <at> yahoo.com>
2008-12-07 11:39:11 GMT
2008-12-07 11:39:11 GMT
Hi, I'm getting following error: --------------- Debugger entered: nil eieiomt-method-list(semanticdb-synchronize 0 nil) (setq lambdas (cons tlambdas lambdas) keys (cons method-static keys) primarymethodlist (eieiomt-method-list method method-static mclass)) ... --------------- with CEDET from yesterday's CVS. I attach the full backtrace in a file. What I did was just opening a file (jabber-core.el), but similar errors happen continuously. For instance this one: ------------- Debugger entered: nil eieiomt-method-list(ede-object-keybindings 0 nil) eieio-generic-call(ede-object-keybindings (nil)) ede-object-keybindings(nil) ... ------------- It's not the first time I got a class=nil in eieiomt-method-list. I don't know if that's supposed to happen. So: 1. Could you please add some documentation to eieiomt-method-list which says whether receiving a nil class is part of the normal behaviour or not? 2. Since it seems that more people have had similar problems with nil classes coming here, could the error be catched and an error message be shown instead? In this way you can get a message asking to report the bug,(Continue reading)
Since I had had problems with nil classes before, I had written an advice before
eieiomt-method-list which would enter (debug) if the class be nil.
I had seen no signs of that defadvice because adviced code apparently isn't visible in backtraces. I
verified this with:
(defadvice forward-sentence (before enter-debug-before-M-e activate)
"Test whether this code ( (let) and (if) ) appears on the backtrace when (debug) appears"
(let ((total 4))
(if (= total (+ 2 2)) (debug))
)
)
Debugger entered: nil
forward-sentence(1)
call-interactively(forward-sentence nil nil)
> The times when I do see errors in the code pointed to by your stacks
> is when I load EIEIO twice, or if I byte-compile EIEIO in an Emacs
> that already has an EIEIO loaded.
RSS Feed