Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Model broken, how to fix
Model broken, how to fix [message #1164037] Thu, 31 October 2013 07:42 Go to next message
Tomas Sandkvist is currently offline Tomas Sandkvist
Messages: 105
Registered: October 2013
Senior Member
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 #1164146 is a reply to message #1164037] Thu, 31 October 2013 09:12 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. Damus
Messages: 779
Registered: July 2009
Senior Member
Hi, Tomas,

What do you see on line 867 of Category1_Stop.notation? This looks
like an exception in the very basic XML parsing: your XML is corrupted.

HTH,

Christian


On 2013-10-31 11:42:43 +0000, Tomas Sandkvist said:

> 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
> <image>
Re: Model broken, how to fix [message #1164210 is a reply to message #1164146] Thu, 31 October 2013 10:08 Go to previous messageGo to next message
Tomas Sandkvist is currently offline Tomas Sandkvist
Messages: 105
Registered: October 2013
Senior Member
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 Go to previous messageGo to next message
Tomas Sandkvist is currently offline Tomas Sandkvist
Messages: 105
Registered: October 2013
Senior Member
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 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille Letavernier
Messages: 440
Registered: February 2011
Senior Member
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 Go to previous message
Klaas Gadeyne is currently offline Klaas Gadeyne
Messages: 86
Registered: July 2009
Member
Camille Letavernier wrote on Mon, 04 November 2013 07:42
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.


In practice: not yet Smile

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
Previous Topic:Why the little plus signs?
Next Topic:Print UML diagram on Papers?
Goto Forum:
  


Current Time: Mon Sep 01 07:35:52 EDT 2014

Powered by FUDForum. Page generated in 0.02175 seconds