Re: ede / eieio errors

Eric Ludlam <[email protected]> Tue, 07 Apr 2015 20:57:35 -0400
Newsgroups gmane.emacs.cedet
Message-ID <[email protected]>
On 04/01/2015 07:39 AM, Mandar Mitra wrote:
> Hello all,
>
> I'm using the git version of CEDET (pulled very recently), and I'm
> running into the following problem. When I open a file within a project,
> the file opens up, but I also get the following message:
>
> eieio-persistent-read: Corrupt object on disk: Unknown saved object
>
> Same problem with M-x ede ...
>
> After that, tag summaries / completions on "somePointer->" or
> "someStructure." only work for structures defined within the file.
>
> OTOH, (load-file "/home/mandar/Dropbox/ir/smart/src/Project.ede") returns
> t, and tag summaries / completions work for structures defined in the
> project's .h files as well.
>
> My Project.ede file (based on some online tutorials) looks like this:
>
> ---------------------------------------------------------------------------
>
> ;; Object Smart
> ;; EDE Project Files are auto generated: Do Not Edit
> (ede-cpp-root-project "Smart"
>    :file "/home/mandar/Dropbox/ir/smart/src/Project.ede"
>    :name "Smart"
>    :include-path '("/h")
>    :targets nil)
>
> ---------------------------------------------------------------------------
>
> Can anyone please provide any hints about what I might be doing wrong?


Hi,

A Project.ede file should only be created by EDE when saving projects of 
certain types.  Internally it checks what was read in from your 
Project.ede file, and makes sure it will be of the correct class type, 
which ede-cpp-root-project is not.

The root project as you wrote it should be fine, you just need to stick 
it into your .emacs file, or some other file you load automatically at 
startup.  Once you do that, everything should be fine for you.

Good Luck
Eric

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF