On date Thursday 2008-02-07 07:46:52 -0500, Eric M. Ludlam wrote:
> >>> Stefano Sabatini <stefano.sabatini-lala@...> seems to think that:
> >Hi all cedeters,
> >
> >I recently started to use cedet CVS, and I discovered with pleasure
> >the new ede-cpp-root feature, since I have a lot of pre-existing
> >projects which I cannot adapt for the use with EDE generated automake
> >files.
>
> Yay! Some of the new doc I wrote must have worked. :)
>
> >I downloaded cedet CVS into ~/share/emacs/site-elisp/cedet-cvs, I'm
> >loading it im my init.el with:
> >
> >(load-file (expand-file-name "~/share/emacs/site-lisp/lisp/cedet-cvs/common/cedet.el"))
> >
> >Since the cedet-cvs dir doesn't seem to appear in the load-path
> >(shouldn't cedet.el already include it?) I do:
> >(add-to-list 'load-path "~/share/emacs/site-lisp/lisp/cedet-cvs/ede")
>
> The cedet-cvs dir should not need to be in your load-path, but the ede
> dir should be in the load path. Perhaps using --debug-init will
> reveal some startup issue?
>
> >Then when I try to do:
> >(require 'ede-cpp-root)
> >
> >I get:
> >Debugger entered--Lisp error: (invalid-slot-name "#<ede-project-autoload cpp-root>" :proj-root)
> > signal(invalid-slot-name ("#<ede-project-autoload cpp-root>" :proj-root))
> > eieio-default-superclass([object ede-project-autoload "cpp-root" "CPP ROOT" ede-cpp-root ede-cpp-root-project-file-for-dir nil unbound unbound t] :proj-root oset ede-cpp-root-project-root)
> [ ... ]
>
> That looks like you might have some old EDE with no :proj-root feature
> getting loaded in front of the new EDE at the wrong moment. The
> :proj-root is new in core ede along with cpp-root which needed that
> function.
>
> Either that, or CVS didn't update ede.el correctly (if you had been
> maintaining a CEDET/cVS directory.)
>
> In newer Emacs, you can try"
>
> M-x list-load-path-shadows
[...]
Hi Eric, and many thanks for your reply.
Well, I had another version of cedet installed (that provided in
Debian Lenny), but it was shadowed by the cedet-cvs version, which
resulted before in the load-path, so I expected the CVS version to be
loaded instead of it.
Nonetheless, I disintalled the preinstalled cedet version, and now
emacs loads ede-cpp-root with no problems.
Well, I can finally put my hands on it!! :-)
Thanks again, regards.
--
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)
|