How to force loading of a different version as prerequisite?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How to force loading of a different version as prerequisite?

Georg Heeg

I have a parcel which requires a certain version of its perquisite parcel. Thus I followed the instructions in the source code management guide and specified both the version I require and Prerequisite Version Selection Action. So far so good.

 

But very often a different version of the prerequisite had been loaded beforehand. Now the system just complains: “Incompatible version id” instead of trying to look for the version I need.

 

Does anybody have any idea how I can force (re)loading of the correct version?

 

Georg

 

Georg Heeg eK, Dortmund und Köthen, HR Dortmund A 12812

Wallstraße 22, 06366 Köthen

Tel. +49-3496-214328, Fax +49-3496-214712

 


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: How to force loading of a different version as prerequisite?

jarober
IYou are probably getting ParcelAlreadyLoadedError -  wrap a handler around the loading code, and catch it.  When you get it, have the code go fetch the proper version (presumably from Store).

I do similar things in a build script I use for BottomFeeder, although I force loads from a specific directory to avoid that issue.  Here's the handler I use; presumably, you can customize the right one:

["code to load parcels/store here"]
do: [:each | Parcel loadParcelFrom: each]] on: MissingParcelSource, ParcelAlreadyLoadedError, ParcelMissingError do: [:ex | ex class = ParcelAlreadyLoadedError ifTrue: [ex resume: false] ifFalse: [ex resume: true]].


On Dec 29, 2010, at 11:20 AM, Georg Heeg wrote:

I have a parcel which requires a certain version of its perquisite parcel. Thus I followed the instructions in the source code management guide and specified both the version I require and Prerequisite Version Selection Action. So far so good.
 
But very often a different version of the prerequisite had been loaded beforehand. Now the system just complains: “Incompatible version id” instead of trying to look for the version I need.
 
Does anybody have any idea how I can force (re)loading of the correct version?
 
Georg
 
Georg Heeg eK, Dortmund und Köthen, HR Dortmund A 12812
Wallstraße 22, 06366 Köthen
Tel. +49-3496-214328, Fax +49-3496-214712
 
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc



_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: How to force loading of a different version as prerequisite?

Georg Heeg

James,

 

Thank you for your quick reply.

 

I actually do not get a ParcelAlreadyLoadedError. Instead I get a CodeReader incompatibleVersionIdSignal. I also do not have much control over the loading itself as it should use the standard loading mechanisms.

 

Georg

 

Georg Heeg eK, Dortmund und Köthen, HR Dortmund A 12812

Wallstraße 22, 06366 Köthen

Tel. +49-3496-214328, Fax +49-3496-214712

 

Von: [hidden email] [mailto:[hidden email]] Im Auftrag von James Robertson
Gesendet: Mittwoch, 29. Dezember 2010 17:50
An: VWNC NC
Betreff: Re: [vwnc] How to force loading of a different version as prerequisite?

 

IYou are probably getting ParcelAlreadyLoadedError -  wrap a handler around the loading code, and catch it.  When you get it, have the code go fetch the proper version (presumably from Store).

 

I do similar things in a build script I use for BottomFeeder, although I force loads from a specific directory to avoid that issue.  Here's the handler I use; presumably, you can customize the right one:

 

["code to load parcels/store here"]

            do: [:each |

        Parcel loadParcelFrom: each]]

        on: MissingParcelSource, ParcelAlreadyLoadedError, ParcelMissingError

        do: [:ex | ex class = ParcelAlreadyLoadedError

                        ifTrue: [ex resume: false]

                        ifFalse: [ex resume: true]].

 

 

On Dec 29, 2010, at 11:20 AM, Georg Heeg wrote:



I have a parcel which requires a certain version of its perquisite parcel. Thus I followed the instructions in the source code management guide and specified both the version I require and Prerequisite Version Selection Action. So far so good.

 

But very often a different version of the prerequisite had been loaded beforehand. Now the system just complains: “Incompatible version id” instead of trying to look for the version I need.

 

Does anybody have any idea how I can force (re)loading of the correct version?

 

Georg

 

Georg Heeg eK, Dortmund und Köthen, HR Dortmund A 12812

Wallstraße 22, 06366 Köthen

Tel. +49-3496-214328, Fax +49-3496-214712

 

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

 

 


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: How to force loading of a different version as prerequisite?

jarober
Well, the general strategy should be the same though - use a script to do store loads - I do that with my development (as opposed to deployment) builds.  Catch the exception you mention below, and do something useful in the handler.

Generally speaking, you can't trust a "right click on a bundle/package and load" strategy to do the right thing.


On Dec 29, 2010, at 12:09 PM, Georg Heeg wrote:

James,
 
Thank you for your quick reply.
 
I actually do not get a ParcelAlreadyLoadedError. Instead I get a CodeReader incompatibleVersionIdSignal. I also do not have much control over the loading itself as it should use the standard loading mechanisms.
 
Georg
 
Georg Heeg eK, Dortmund und Köthen, HR Dortmund A 12812
Wallstraße 22, 06366 Köthen
Tel. +49-3496-214328, Fax +49-3496-214712
 
Von: [hidden email] [mailto:[hidden email]] Im Auftrag von James Robertson
Gesendet: Mittwoch, 29. Dezember 2010 17:50
An: VWNC NC
Betreff: Re: [vwnc] How to force loading of a different version as prerequisite?
 
IYou are probably getting ParcelAlreadyLoadedError -  wrap a handler around the loading code, and catch it.  When you get it, have the code go fetch the proper version (presumably from Store).
 
I do similar things in a build script I use for BottomFeeder, although I force loads from a specific directory to avoid that issue.  Here's the handler I use; presumably, you can customize the right one:
 
["code to load parcels/store here"]
            do: [:each |
        Parcel loadParcelFrom: each]]
        on: MissingParcelSource, ParcelAlreadyLoadedError, ParcelMissingError
        do: [:ex | ex class = ParcelAlreadyLoadedError
                        ifTrue: [ex resume: false]
                        ifFalse: [ex resume: true]].
 
 
On Dec 29, 2010, at 11:20 AM, Georg Heeg wrote:


I have a parcel which requires a certain version of its perquisite parcel. Thus I followed the instructions in the source code management guide and specified both the version I require and Prerequisite Version Selection Action. So far so good.
 
But very often a different version of the prerequisite had been loaded beforehand. Now the system just complains: “Incompatible version id” instead of trying to look for the version I need.
 
Does anybody have any idea how I can force (re)loading of the correct version?
 
Georg
 
Georg Heeg eK, Dortmund und Köthen, HR Dortmund A 12812
Wallstraße 22, 06366 Köthen
Tel. +49-3496-214328, Fax +49-3496-214712
 
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
 
 



_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

How to Rotate an Ellipse?

Hildebrant, Richard

Hello,

                I know ellipses can be drawn in VisualWorks, along with a few other shapes, but is there a way of rotating the ellipse through an arbitrary angle after it has been drawn?

 

Thanks,

Rick Hildebrant


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: How to Rotate an Ellipse?

Steven Kelly
VS: [vwnc] How to Rotate an Ellipse?

The ellipse primitives on VW can only draw horizontal or vertical ellipses, just like they can only draw horizontal or vertical rectangles. In any case, for lineWidth > 1 the ellipse primitives are so ugly as to be basically unusable.

You can convert an EllipticalArc to a Polyline with #asPolyline. You can then rotate the points with basic trigonometry, and draw the rotated polyline. To rotate a point by rotationAngle about rotationCenterPoint, first translate it by rotationCenterPoint negated, then rotate by increasing its theta by rotationAngle (in radians), then translate back by rotationCenterPoint.

translatedPoint := originalPoint translatedBy: rotationCenterPoint negated.
rotatedPoint := Point r: translatedPoint r theta: (translatedPoint theta + rotationAngle).
finalPoint := rotatedPoint translatedBy: rotationCenterPoint.

HTH,
Steve


-----Alkuperäinen viesti-----
Lähettäjä: [hidden email] puolesta: Hildebrant, Richard
Lähetetty: to 30/12/2010 04:41
Vastaanottaja: VWNC NC
Aihe: [vwnc] How to Rotate an Ellipse?

Hello,

                I know ellipses can be drawn in VisualWorks, along with
a few other shapes, but is there a way of rotating the ellipse through
an arbitrary angle after it has been drawn?



Thanks,

Rick Hildebrant




_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc