2015-08-26 11:00 GMT+02:00 Marcus Denker <[email protected]>:
>
> > On 26 Aug 2015, at 10:58, Blondeau Vincent <
> [email protected]> wrote:
> >
> > Loading traits only is working, there are traits in Moose and it is well
> working...
> > E.g.:
> > Trait named: #TOODependencyQueries
> > uses: TDependencyQueries
> > category: 'Famix-Core’
> >
>
> Yes, but there it might not fall back on loading the .st file but instead
> de-seriaize the MC model.
>
Yes, I think this is again
MCMczReader>>loadDefinitions
definitions := OrderedCollection new.
(self zip memberNamed: 'snapshot.bin') ifNotNil:
[:m | [^ definitions := (MCDataStream on: m contentStream) next
definitions]
on: Error do: [:fallThrough]].
"otherwise"
(self zip membersMatching: 'snapshot/*')
do: [:m | self extractDefinitionsFrom: m].
if the first run wit hMCDataStream on: ... fails, it uses the "otherwise"
path.
But that one does not handle Trait definitions correctly.
I don't know why the first one (MCDataStream ...) fails on some packages,
may have something to do with
non-ascii characters but I don't know if it failed always at that place and
only the implementation in the
second path changed?
nicolai
>
>
> > Vincent
> >
> > -----Message d'origine-----
> > De : Pharo-users [mailto:[email protected]] De la
> part de Marcus Denker
> > Envoyé : mercredi 26 août 2015 10:52
> > À : Any question about pharo is welcome
> > Cc : Pharo Development List
> > Objet : Re: [Pharo-users] [ann] brick on top of bloc - preview
> >
> >
> >> On 26 Aug 2015, at 10:42, Tudor Girba <[email protected]> wrote:
> >>
> >> Aha. Thanks for the help, Vincent.
> >>
> >> Now, the next problem: Does anyone know why the "Unrecognized class
> definition" problem occurs? :)
> >>
> >
> > It seems that
> >
> > 1) MC model loading of the serialised package fails
> > 2) it falls back on using MCStReader
> > 3) which fails to load the .st file for the definition of
> TBlLayoutPropertiesOwner
> >
> > Maybe loading trait definitions does not work in general with MCStReader?
> >
> > Marcus
> >
> >
> > Ce message et les pièces jointes sont confidentiels et réservés à
> l'usage exclusif de ses destinataires. Il peut également être protégé par
> le secret professionnel. Si vous recevez ce message par erreur, merci d'en
> avertir immédiatement l'expéditeur et de le détruire. L'intégrité du
> message ne pouvant être assurée sur Internet, la responsabilité de
> Worldline ne pourra être recherchée quant au contenu de ce message. Bien
> que les meilleurs efforts soient faits pour maintenir cette transmission
> exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et
> sa responsabilité ne saurait être recherchée pour tout dommage résultant
> d'un virus transmis.
> >
> > This e-mail and the documents attached are confidential and intended
> solely for the addressee; it may also be privileged. If you receive this
> e-mail in error, please notify the sender immediately and destroy it. As
> its integrity cannot be secured on the Internet, the Worldline liability
> cannot be triggered for the message content. Although the sender endeavours
> to maintain a computer virus-free network, the sender does not warrant that
> this transmission is virus-free and will not be liable for any damages
> resulting from any virus transmitted.
> >
>
>
>