Home » Modeling » Papyrus » Model broken, how to fix
Model broken, how to fix [message #1164037] |
Thu, 31 October 2013 07:42  |
Eclipse User |
|
|
|
Today I can no longer expand my model, Papyrus just hangs when I click on the expansion icon in the model explorer.
I then tried to revert to an earlier version and got the message in the attached screen dump.
I have no clue of what to do to fix this?
Regards,
Tomas Sandkvist
|
|
| |
Re: Model broken, how to fix [message #1164210 is a reply to message #1164146] |
Thu, 31 October 2013 10:08   |
Eclipse User |
|
|
|
Hi Christian!!
Actually nothing, that particular position is a blank space?? The same goes for the other file.
My first thought was if there was some tool for cleaning, but as you say, it seems I have to make some fixing in the files directly, which I have done after I realized it was all plain XML.
After some fiddling I did get the model to open, but I now have problems with my submodels. The file that Papyrus barfed on was a submodel and now it has become a separate model...
And so has several other submodels as well...
And if I try to recreate the submodel, it wouldn't happen? I re-incorporated all submodels into the main model and tried to recreate them, but nothing happens if I try that on any of the packages I previously had as submodels, the only way is to rename the package.
Is there anywhere in these XML files I can edit to get the submodels working again?
Regards,
Tomas
|
|
|
Re: Model broken, how to fix [message #1165370 is a reply to message #1164037] |
Fri, 01 November 2013 04:25   |
Eclipse User |
|
|
|
I now think I know what the problem is, and that is version management. In order to work both from my office and at home, I created an SVN repository at CollabNet, and somewhere done the line I managed to fail to keep my working copies in sync.
CollabNet Desktop (probably through my own clumsyness) have added diff information in a number of files, which of course makes them invalid XML.
So, basically I have lost about half a day's work due to this, and it seems irreparable as well. So, warning to all you newbies, don't mess up your models with SVN!
Regards,
Tomas
|
|
|
Re: Model broken, how to fix [message #1170147 is a reply to message #1165370] |
Mon, 04 November 2013 07:42   |
Eclipse User |
|
|
|
Hi Tomas,
In theory, EMF Compare should be able to diff/merge these models, to fix them. Once they are fixed (i.e. all conflicts are resolved), you should be able to open them again in Papyrus.
I say "In theory", because the EMF Compare/Papyrus integration is still work in progress, and the priority is given to the Git integration. But Git, SVN and EMF compare share the Team API of Eclipse, so, it "should" just work.
Regards,
Camille
|
|
|
Re: Model broken, how to fix [message #1170622 is a reply to message #1170147] |
Mon, 04 November 2013 14:32  |
Eclipse User |
|
|
|
Camille Letavernier wrote on Mon, 04 November 2013 07:42Hi Tomas,
In theory, EMF Compare should be able to diff/merge these models, to fix them. Once they are fixed (i.e. all conflicts are resolved), you should be able to open them again in Papyrus.
I say "In theory", because the EMF Compare/Papyrus integration is still work in progress, and the priority is given to the Git integration. But Git, SVN and EMF compare share the Team API of Eclipse, so, it "should" just work.
In practice: not yet 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=397955
https://bugs.eclipse.org/bugs/show_bug.cgi?id=414180
https://bugs.eclipse.org/bugs/show_bug.cgi?id=411565
regards,
Klaas
|
|
|
Goto Forum:
Current Time: Thu Jul 10 05:13:32 EDT 2025
Powered by FUDForum. Page generated in 0.04216 seconds
|