[ANN] Magma Tutorial

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

[ANN] Magma Tutorial

keith1y
I am pleased to announce that by popular demand I have written a Magma
tutorial segment to go with:

http://www.swa.hpi.uni-potsdam.de/seaside/tutorial  (chapter 8)

This tutorial can be found at:

http://wiki.squeak.org/squeak/6021

The tutorial is written built upon an entirely new Magma <-> Seaside
integration implementation. This new implementation is still in beta,
but has lots of bells and whistles that were not present in the old.

The most important being:

1. "Ready to Run - Just add Magma"

You do not need any special Session, or Root classes, just add
WAMagmaConfiguration to your app and you are enabled for persistence.

2. "Auto Initializing"

You do not need to initialize your database separately.

3. "Transparent Transactions" (options)

Database commits can be totally transparent and this is the default
configuration WAMagmaSoloAuto.

4. Session Management Options

There is a choice of single, pooled and shared magma session management
options.

5. Comprehensive Logging Options

See every decision that magma makes as it reifies your data.
(just load "Logging" package and SimpleLog or Toothpick)

6. Control Panel

Shows all the open database sessions, which seaside apps they are
serving and allows you to explore their data.

7. Partitioning and Modularity

One database serves multiple domain models. A "Pier Module" can share
the db with a "Users/Login Module".

7. Migration

If you change the implementation of a domain-model-root there are hooks
for automatic migration

8. Alternative Client Views (experimental)

A Client can access a domain-model-root, as another subclass, for
locally defined behaviour, or specialized database read-strategies

The documentation for this new integration layer "Magma seasideHelper"
is here:

http://wiki.squeak.org/squeak/6019

---

For early adopters immediate support is available in #squeak irc channel
Just ping "Keithy"

enjoy

Keith




_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Magma Tutorial

Sophie424

"Keith Hodges" <[hidden email]> wrote in message
news:[hidden email]...
>I am pleased to announce that by popular demand I have written a Magma
> tutorial segment to go with:
>
> http://www.swa.hpi.uni-potsdam.de/seaside/tutorial  (chapter 8)
>
> This tutorial can be found at:
>
> http://wiki.squeak.org/squeak/6021

>From the tutorial:
   "To install (into a 3.10 based image) ..."

Is this also supposed to load and work with a 3.9 image? I'd love to use
this, but am worried 3.10 is not ready yet.

Thanks - Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Magma Tutorial

Sophie424
In reply to this post by keith1y
Here is the error I got with both 3.9 and 3.10 (Damien) images. Am I missing
some pre-req?

finding Installer-Core... found Installer-Core-kph.137.mcz...loaded
****Error: attempt to index non-existent element in an ordered collection
****Error: attempt to index non-existent element in an ordered collection

- Sophie

"Keith Hodges" <[hidden email]> wrote in message
news:[hidden email]...
>I am pleased to announce that by popular demand I have written a Magma
> tutorial segment to go with:
>
> http://www.swa.hpi.uni-potsdam.de/seaside/tutorial  (chapter 8)
>
> This tutorial can be found at:
>
> http://wiki.squeak.org/squeak/6021



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: [ANN] Magma Tutorial

keith1y
In reply to this post by Sophie424
itsme213 wrote:

> "Keith Hodges" <[hidden email]> wrote in message
> news:[hidden email]...
>  
>> I am pleased to announce that by popular demand I have written a Magma
>> tutorial segment to go with:
>>
>> http://www.swa.hpi.uni-potsdam.de/seaside/tutorial  (chapter 8)
>>
>> This tutorial can be found at:
>>
>> http://wiki.squeak.org/squeak/6021
>>    
>
> >From the tutorial:
>    "To install (into a 3.10 based image) ..."
>
> Is this also supposed to load and work with a 3.9 image? I'd love to use
> this, but am worried 3.10 is not ready yet.
>
> Thanks - Sophie
Both Magma and Seaside work in 3.7 upwards... the limitation is in the
Installer scripts and Universes.
If you use the squeak-dev image you should be ok.

Personally I have been using 3.10 in production for 3 months... on the
basis that nothing of significance has changed between 3.9 and 3.10,
only bug fixes and more testing. To me this means that the number of
bugs remaining in 3.10gamma cant possibly exceed the number of known
bugs in 3.9, if 3.9 was called 3.9.1 (which I think it should be) then
perhaps people wouldn't be so worried about moving to 3.10.

As far as the limitations in build scripts, I have a plan in progress to
make 3.7,3.8,3.9, Croquet, OLPC, and Sophie all up to a level which can
run Installer scripts. This plan is known as "Operation Level Playing
Field"... watch this space.

Keith

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: [ANN] Magma Tutorial

keith1y
In reply to this post by Sophie424
itsme213 wrote:

> Here is the error I got with both 3.9 and 3.10 (Damien) images. Am I missing
> some pre-req?
>
> finding Installer-Core... found Installer-Core-kph.137.mcz...loaded
> ****Error: attempt to index non-existent element in an ordered collection
> ****Error: attempt to index non-existent element in an ordered collection
>
> - Sophie
>
>  
I was unable to reproduce this...

I have tested in 3.10gamma and Sq3.10-7159dev

I would recommend that you "update" the package universes first.
Secondly... try

Installer debug universe
      answer:'username' with:'admin';
      answer:'password' with:'seaside';
      install: 'Magma seasideHelper';
      install.

to see if you get a more detailed walkback.

cheers

Keith

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: [ANN] Magma Tutorial

Sophie424

"Keith Hodges" <[hidden email]> wrote in message
news:[hidden email]...

> I have tested in 3.10gamma and Sq3.10-7159dev

Strange, I tried 3.10gamma as well as Damiens latest image
sq3.10-7159web07.12.1.image and sq3.10-7159dev. Here is what I get in all
cases (problem seems to be in Universes code, not Magma).

Subject: [BUG]UGlobalInstaller(Object)>>doesNotUnderstand:
#updatePackagesViaWWW

16 December 2007 11:14:16 am

VM: Win32 - a SmalltalkImage
Image: Squeak3.10beta [latest update: #7159]

SecurityManager state:
Restricted: false
FileAccess: true
SocketAccess: true
Working Dir C:\des\desktop\ocean\squeak 3.10 base
Trusted Dir C:\des\desktop\ocean\squeak 3.10 base\desmond
Untrusted Dir C:\My Squeak\desmond

UGlobalInstaller(Object)>>doesNotUnderstand: #updatePackagesViaWWW
 Receiver: an UGlobalInstaller
 Arguments and temporary variables:
  aMessage:  updatePackagesViaWWW
 Receiver's instance variables:
  configuration:  an UConfiguration
  selectedPackageVersions:  a Set()
  universe:  an UStandardUniverse

[] in Installer>>uniUpdate {[universe updatePackagesViaWWW]}
 Arguments and temporary variables:

[] in PSUIManager(UIManager)>>informUser:during: {[:bar |  bar value:
aString.  aBlock value]}
 Arguments and temporary variables:
  aString:  'updating package list...'
  aBlock:  [] in Installer>>uniUpdate {[universe updatePackagesViaWWW]}
  bar:  [] in MVCMenuMorph>>informUserAt:during: {[:string |  self visible
ifFal...etc...

MVCMenuMorph>>informUserAt:during:
 Receiver: a MVCMenuMorph(2591)
 Arguments and temporary variables:
  aPoint:  313@532
  aBlock:  [] in PSUIManager(UIManager)>>informUser:during: {[:bar |  bar
value: a...etc...
  title:  a StringMorph(626)'updating package list...'
  w:  a PasteUpMorph(1622) [world]
  ea:  an AlignmentMorph(1401)
  string:  'updating package list...'
 Receiver's instance variables:
  bounds:  313@532 corner: 458@552
  owner:  nil
  submorphs:  an Array(an AlignmentMorph(1401))
  fullBounds:  313@532 corner: 459@553
  color:  (Color r: 0.85 g: 0.9 b: 1.0)
  extension:  a MorphExtension (956) [other:  (borderStyle -> a
SimpleBorder) (lay...etc...
  borderWidth:  1
  borderColor:  Color gray
  defaultTarget:  a MVCMenuMorph(2591)
  selectedItem:  nil
  stayUp:  false
  popUpOwner:  nil
  activeSubMenu:  nil
  activatorDockingBar:  nil
  done:  nil
  mvcSelection:  0


--- The full stack ---
UGlobalInstaller(Object)>>doesNotUnderstand: #updatePackagesViaWWW
[] in Installer>>uniUpdate {[universe updatePackagesViaWWW]}
[] in PSUIManager(UIManager)>>informUser:during: {[:bar |  bar value:
aString.  aBlock value]}
MVCMenuMorph>>informUserAt:during:
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PSUIManager(MorphicUIManager)>>informUserDuring:
PSUIManager(UIManager)>>informUser:during:
Utilities class>>informUser:during:
Installer>>uniUpdate
Installer>>universe:
Installer class>>universe
UndefinedObject>>DoIt
Compiler>>evaluate:in:to:notifying:ifFail:logged:
[] in TextMorphForShoutEditor(ParagraphEditor)>>evaluateSelection {[rcvr
class evaluatorClass new   evaluate: self selectionAsStream   in: ctxt...]}
BlockContext>>on:do:
TextMorphForShoutEditor(ParagraphEditor)>>evaluateSelection
[] in PluggableShoutMorph(PluggableTextMorph)>>doIt {[textMorph editor
evaluateSelection]}
[] in PluggableShoutMorph(PluggableTextMorph)>>handleEdit: {[result :=
editBlock value]}
TextMorphForShout(TextMorph)>>handleEdit:
PluggableShoutMorph(PluggableTextMorph)>>handleEdit:
PluggableShoutMorph(PluggableTextMorph)>>doIt
UndefinedObject(Object)>>perform:orSendTo:
[] in MenuItemMorph>>invokeWithEvent: {[(selArgCount := selector numArgs) =
0   ifTrue: [target perform: selector] ...]}
BlockContext>>ensure:
CursorWithMask(Cursor)>>showWhile:
MenuItemMorph>>invokeWithEvent:
MenuItemMorph>>mouseUp:
MenuItemMorph>>handleMouseUp:
MouseButtonEvent>>sentTo:
MenuItemMorph(Morph)>>handleEvent:
MorphicEventDispatcher>>dispatchDefault:with:
MorphicEventDispatcher>>dispatchEvent:with:
MenuItemMorph(Morph)>>processEvent:using:
MorphicEventDispatcher>>dispatchDefault:with:
MorphicEventDispatcher>>dispatchEvent:with:
MenuMorph(Morph)>>processEvent:using:
MenuMorph(Morph)>>processEvent:
MenuMorph>>handleFocusEvent:
[] in HandMorph>>sendFocusEvent:to:clear: {[ActiveHand := self.  ActiveEvent
:= anEvent.  result := focusHolder     han...]}
[] in PasteUpMorph>>becomeActiveDuring: {[aBlock value]}
BlockContext>>on:do:
PasteUpMorph>>becomeActiveDuring:
HandMorph>>sendFocusEvent:to:clear:
HandMorph>>sendEvent:focus:clear:
HandMorph>>sendMouseEvent:
HandMorph>>handleEvent:
HandMorph>>processEvents
[] in WorldState>>doOneCycleNowFor: {[:h |  ActiveHand := h.  h
processEvents.  capturingGesture := capturingGest...]}
...etc...



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: [ANN] Magma Tutorial

keith1y
itsme213 wrote:

> "Keith Hodges" <[hidden email]> wrote in message
> news:[hidden email]...
>
>  
>> I have tested in 3.10gamma and Sq3.10-7159dev
>>    
>
> Strange, I tried 3.10gamma as well as Damiens latest image
> sq3.10-7159web07.12.1.image and sq3.10-7159dev. Here is what I get in all
> cases (problem seems to be in Universes code, not Magma).
>
> Subject: [BUG]UGlobalInstaller(Object)>>doesNotUnderstand:
> #updatePackagesViaWWW
>  
Ok looks like the Universe api may have changed since I wrote that code,
or the update is triggering now when it didnt before.

so.. have another go.

If you need further help , drop in to #squeak on irc

Keith


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: [ANN] Magma Tutorial

Sophie424
In reply to this post by keith1y

"Keith Hodges" <[hidden email]> wrote

> Both Magma and Seaside work in 3.7 upwards... the limitation is in the
> Installer scripts and Universes.
> If you use the squeak-dev image you should be ok.

I'll try this without going through Installer, though I doubt I'll get
dependencies right ... I have it open in both Monticello and Squeak Map.
Which should I use, and which packages do I install? My blind attempt at
starting with Magma Server dies due to some prerequisite.

Thanks - Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: [ANN] Magma Tutorial

keith1y
Sophie,

I fixed installer, so go ahead... try the script as given, its quite
complex otherwise

Keith
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: [ANN] Magma Tutorial

Sophie424

"Keith Hodges" <[hidden email]> wrote
> I fixed installer, so go ahead... try the script as given, its quite
> complex otherwise

I just did, now get a different error. (I'm somewhat familiar with IRC so
cannot jump onto that, unfortunately ...).

I have Dec-16 (today) Installer-Core. I don't have others from that MC-repo
installed e.g. Installer-Launcher, Launcher-Core, etc.

- Sophie


VM: Win32 - a SmalltalkImage
Image: Squeak3.9 [latest update: #7067]

SecurityManager state:
Restricted: false
FileAccess: true
SocketAccess: true
Working Dir C:\des\desktop\ocean\ramon dec 07
Trusted Dir C:\des\desktop\ocean\ramon dec 07\desmond
Untrusted Dir C:\My Squeak\desmond

UGlobalInstaller class(Object)>>doesNotUnderstand: #requestPackageList
 Receiver: UGlobalInstaller
 Arguments and temporary variables:
  aMessage:  requestPackageList
 Receiver's instance variables:
  superclass:  Object
  methodDict:  a MethodDictionary(#allCategories->a CompiledMethod (368)
#allPacka...etc...
  format:  136
  instanceVariables:  #('configuration' 'selectedPackageVersions'
'universe')
  organization:  ('accessing' selectedPackageVersions universe)
('accessing dynami...etc...
  subclasses:  nil
  name:  #UGlobalInstaller
  classPool:  nil
  sharedPools:  nil
  environment:  a SystemDictionary(lots of globals)
  category:  #'Universes-Model'
  traitComposition:  nil
  localSelectors:  nil

Installer>>uniUpdate
 Receiver: (Installer).
 Arguments and temporary variables:

 Receiver's instance variables:
  sm:  nil
  wsm:  nil
  mc:  nil
  ma:  nil
  url:  nil
  root:  nil
  command:  nil
  markers:  nil
  project:  nil
  package:  nil
  bug:  nil
  desc:  nil
  answers:  nil
  packages:  nil
  messagesToSuppress:  nil
  pageDataStream:  nil
  date:  nil
  universe:  UGlobalInstaller
  afile:  nil

Installer>>universe:
 Receiver: (Installer).
 Arguments and temporary variables:
  u:  UGlobalInstaller
 Receiver's instance variables:
  sm:  nil
  wsm:  nil
  mc:  nil
  ma:  nil
  url:  nil
  root:  nil
  command:  nil
  markers:  nil
  project:  nil
  package:  nil
  bug:  nil
  desc:  nil
  answers:  nil
  packages:  nil
  messagesToSuppress:  nil
  pageDataStream:  nil
  date:  nil
  universe:  UGlobalInstaller
  afile:  nil

Installer class>>universe
 Receiver: Installer
 Arguments and temporary variables:

 Receiver's instance variables:
  superclass:  Object
  methodDict:  a MethodDictionary(size 185)
  format:  168
  instanceVariables:  #('sm' 'wsm' 'mc' 'ma' 'url' 'root' 'command'
'markers' 'pro...etc...
  organization:  ('Installer-Core' mcDetectFileBlock)
('accessing' answers answers...etc...
  subclasses:  nil
  name:  #Installer
  classPool:  a Dictionary(#Entities->nil #Fixes->nil
#InstallerBindings->nil #IsS...etc...
  sharedPools:  nil
  environment:  a SystemDictionary(lots of globals)
  category:  #'Installer-Core'
  traitComposition:  nil
  localSelectors:  nil


--- The full stack ---
UGlobalInstaller class(Object)>>doesNotUnderstand: #requestPackageList
Installer>>uniUpdate
Installer>>universe:
Installer class>>universe
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
UndefinedObject>>DoIt
Compiler>>evaluate:in:to:notifying:ifFail:logged:
[] in TextMorphForShoutEditor(ParagraphEditor)>>evaluateSelection {[rcvr
class evaluatorClass new   evaluate: self selectionAsStream   in: ctxt...]}
BlockContext>>on:do:
TextMorphForShoutEditor(ParagraphEditor)>>evaluateSelection
[] in PluggableShoutMorph(PluggableTextMorph)>>doIt {[textMorph editor
evaluateSelection]}
[] in PluggableShoutMorph(PluggableTextMorph)>>handleEdit: {[result :=
editBlock value]}
TextMorphForShout(TextMorph)>>handleEdit:
PluggableShoutMorph(PluggableTextMorph)>>handleEdit:
PluggableShoutMorph(PluggableTextMorph)>>doIt
UndefinedObject(Object)>>perform:orSendTo:
[] in MenuItemMorph>>invokeWithEvent: {[(selArgCount := selector numArgs) =
0   ifTrue: [target perform: selector] ...]}
BlockContext>>ensure:
CursorWithMask(Cursor)>>showWhile:
MenuItemMorph>>invokeWithEvent:
MenuItemMorph>>mouseUp:
MenuItemMorph>>handleMouseUp:
MouseButtonEvent>>sentTo:
MenuItemMorph(Morph)>>handleEvent:
MorphicEventDispatcher>>dispatchDefault:with:
MorphicEventDispatcher>>dispatchEvent:with:
MenuItemMorph(Morph)>>processEvent:using:
MorphicEventDispatcher>>dispatchDefault:with:
MorphicEventDispatcher>>dispatchEvent:with:
MenuMorph(Morph)>>processEvent:using:
MenuMorph(Morph)>>processEvent:
MenuMorph>>handleFocusEvent:
[] in HandMorph>>sendFocusEvent:to:clear: {[ActiveHand := self.  ActiveEvent
:= anEvent.  e := anEvent     transformedB...]}
[] in PasteUpMorph>>becomeActiveDuring: {[aBlock value]}
BlockContext>>on:do:
PasteUpMorph>>becomeActiveDuring:
...etc...



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: [ANN] Magma Tutorial

keith1y
itsme213 wrote:

> "Keith Hodges" <[hidden email]> wrote
>  
>> I fixed installer, so go ahead... try the script as given, its quite
>> complex otherwise
>>    
>
> I just did, now get a different error. (I'm somewhat familiar with IRC so
> cannot jump onto that, unfortunately ...).
>
> I have Dec-16 (today) Installer-Core. I don't have others from that MC-repo
> installed e.g. Installer-Launcher, Launcher-Core, etc.
>
> - Sophie
>  
To use an americanism "my bad"

fixed now I hope

Keith

For irc try

http://bitquabit.com/squeakChat/

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: [ANN] Magma Tutorial

Sophie424
"Keith Hodges" <[hidden email]> wrote
> To use an americanism "my bad"
>
> fixed now I hope

It got further than before, but not all the way :-(  Below are the
Transcript messages followed by the error stack.

Sophie.

First some warnings on Transcript (not sure if some of the early ones are
from an earlier attempt)
=================================
=================================
Warning: pane workingCopyTreeRoots not found.
Warning: pane summary not found.
finding Installer-Core... found Installer-Core-kph.146.mcz...loaded
File UniversesMCAndProvidesPatch successfully filed in to change set
UniversesMCAndProvidesPatch
File InstallerInstallLogging successfully filed in to change set
InstallerInstallLogging (ActionMaps is Undeclared)  (Q2Session is
Undeclared)  (Q2Session is Undeclared)  (FLHandlerEditor is Undeclared)
(WASessionHelper is Undeclared)  (WAStandardFilesPlus is Undeclared)
(configuration is Undeclared)  (configuration is Undeclared)  (configuration
is Undeclared)  (configuration is Undeclared)
========== Ma exception handling-cmm.24 ==========

- Removed MaHardwareError, it was unused.

========== Ma base additions-cmm.88 ==========

- Merged Ma base additions-cmm.87.
 (MaObject is Undeclared)
========== Ma proxy support-cmm.32 ==========

- Lint cleanup; removed unused methods.

========== Ma traverse object graphs-cmm.24 ==========

Trying new prereq strategy.

========== Ma object serialization-cmm.166 ==========

- Support for alerting when someone tries to dynamically extend a "Ma client
server" protocol, which is not supported.
 (MaBlockContextStorage is Undeclared)  (MaOidCalculator is Undeclared)
(MaMethodContextStorage is Undeclared)  (MaClassReference is Undeclared)
(MaClassDefinition is Undeclared)  (MaObjectSerializationSoftwareError is
Undeclared)  (MaClassDefinition is Undeclared)
(MaObjectSerializationSoftwareError is Undeclared)
(MaObjectSerializationSoftwareError is Undeclared)
(MaObjectSerializationSoftwareError is Undeclared)
(MaObjectSerializationSoftwareError is Undeclared)
(MaObjectSerializationUserError is Undeclared)
(MaObjectSerializationSoftwareError is Undeclared)  (MaClassDefinition is
Undeclared)  (MaObjectSerializationWarning is Undeclared)
(MaObjectSerializationSoftwareError is Undeclared)  (MaOidCalculator is
Undeclared)  (MaOidCalculator is Undeclared)  (MaByteObjectBuffer is
Undeclared)  (MaVariableObjectBuffer is Undeclared)  (MaVariableWordBuffer
is Undeclared)  (MaStorageObjectBuffer is Undeclared)
(MaObjectSerializationSecurityViolation is Undeclared)
(MaSerializedGraphBuffer is Undeclared)  (MaObjectSerializerPreferences is
Undeclared)  (MaOidManager is Undeclared)  (MaObjectSerializationUserError
is Undeclared)  (MaSerializedGraphBuffer is Undeclared)
(MaSerializedGraphBuffer is Undeclared)  (MaObjectSerializationUserError is
Undeclared)  (MaWeakValueDictionary is Undeclared)
(MaObjectSerializationSoftwareError is Undeclared)
========== Collections-BTree-lr.68 ==========

- make it loadable into a new compiler image

========== Ma special collections-cmm.83 ==========

- Lint cleanups.
 (MaFileRecordBroker is Undeclared)  (MaInImageRecordBroker is Undeclared)
(MaFileRecordBroker is Undeclared)  (MaHashIndexUserError is Undeclared)
(MaSpecialCollectionsSoftwareError is Undeclared)
========== Ma client server-cmm.138 ==========

- Support for alerting when someone tries to dynamically extend a "Ma client
server" protocol, which is not supported.
 (MaRequestServerConsole is Undeclared)  (MaServerSocket is Undeclared)
(MaMalformedRequestError is Undeclared)  (MaServerConsole is Undeclared)
(MaClientServerUserError is Undeclared)  (MaMalformedRequestError is
Undeclared)
========== WriteBarrier-pmm.26 ==========

- adding methods silently
 (BytecodeGenerator is Undeclared)  (WBMethodBuilder is Undeclared)


Then an error:
================================
================================
VM: Win32 - a SmalltalkImage
Image: Squeak3.9 [latest update: #7067]

SecurityManager state:
Restricted: false
FileAccess: true
SocketAccess: true
Working Dir C:\des\desktop\ocean\ramon dec 07
Trusted Dir C:\des\desktop\ocean\ramon dec 07\desmond
Untrusted Dir C:\My Squeak\desmond

WBMethodBuilder class(Object)>>error:
 Receiver: WBMethodBuilder
 Arguments and temporary variables:
  aString:  'Cache is defined elsewhere'
 Receiver's instance variables:
  superclass:  Object
  methodDict:  a MethodDictionary()
  format:  138
  instanceVariables:  #('selector' 'class' 'fields' 'generator')
  organization:  nil
  subclasses:  nil
  name:  #WBMethodBuilder
  classPool:  nil
  sharedPools:  nil
  environment:  nil
  category:  nil
  traitComposition:  nil
  localSelectors:  nil

[] in WBMethodBuilder class(Class)>>declare: {[:var | (self bindingOf: var)
notNil   ifTrue: [self error: var , ' is defin...]}
 Arguments and temporary variables:
  varString:  'Cache'
  newVars:  #(#Cache)
  conflicts:  false
  x:  'Cache'
  var:  #Cache

Array(SequenceableCollection)>>do:
 Receiver: #(#Cache)
 Arguments and temporary variables:
  aBlock:  [] in WBMethodBuilder class(Class)>>declare: {[:var | (self
bindingOf: ...etc...
  index:  1
  indexLimiT:  1
 Receiver's instance variables:
#(#Cache)

WBMethodBuilder class(Class)>>declare:
 Receiver: WBMethodBuilder
 Arguments and temporary variables:
  varString:  'Cache'
  newVars:  #(#Cache)
  conflicts:  false
  x:  'Cache'
  var:  #Cache
 Receiver's instance variables:
  superclass:  Object
  methodDict:  a MethodDictionary()
  format:  138
  instanceVariables:  #('selector' 'class' 'fields' 'generator')
  organization:  nil
  subclasses:  nil
  name:  #WBMethodBuilder
  classPool:  nil
  sharedPools:  nil
  environment:  nil
  category:  nil
  traitComposition:  nil
  localSelectors:  nil


--- The full stack ---
WBMethodBuilder class(Object)>>error:
[] in WBMethodBuilder class(Class)>>declare: {[:var | (self bindingOf: var)
notNil   ifTrue: [self error: var , ' is defin...]}
Array(SequenceableCollection)>>do:
WBMethodBuilder class(Class)>>declare:
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[] in
ClassBuilder>>name:inEnvironment:subclassOf:type:instanceVariableNames:classVariableNames:poolDictionaries:category:unsafe:
{[unsafe   ifFalse: [(self validateSuperclass: newSuper forSubclass:
oldClass...]}
BlockContext>>ensure:
ClassBuilder>>name:inEnvironment:subclassOf:type:instanceVariableNames:classVariableNames:poolDictionaries:category:unsafe:
ClassBuilder>>name:inEnvironment:subclassOf:type:instanceVariableNames:classVariableNames:poolDictionaries:category:
MCClassDefinition>>createClass
MCClassDefinition>>load
MCClassDefinition(MCDefinition)>>loadOver:
[] in MCPackageLoader>>basicLoad {[:ea | ea   loadOver: (self obsoletionFor:
ea)]}
[] in OrderedCollection(SequenceableCollection)>>do:displayingProgress:
{[:each :i |  bar value: i.  aBlock value: each]}
OrderedCollection(SequenceableCollection)>>withIndexDo:
[] in OrderedCollection(SequenceableCollection)>>do:displayingProgress:
{[:bar | self   withIndexDo: [:each :i |     bar value: i.    aBlock value:
e...]}
[] in ProgressInitiationException>>defaultMorphicAction {[result :=
workBlock value: progress]}
BlockContext>>ensure:
ProgressInitiationException>>defaultMorphicAction
ProgressInitiationException>>defaultAction
UndefinedObject>>handleSignal:
MethodContext(ContextPart)>>handleSignal:
MethodContext(ContextPart)>>handleSignal:
MethodContext(ContextPart)>>handleSignal:
MethodContext(ContextPart)>>handleSignal:
ProgressInitiationException(Exception)>>signal
ProgressInitiationException>>display:at:from:to:during:
ProgressInitiationException class>>display:at:from:to:during:
ByteString(String)>>displayProgressAt:from:to:during:
OrderedCollection(SequenceableCollection)>>do:displayingProgress:
[] in MCPackageLoader>>basicLoad {[additions   do: [:ea | self tryToLoad:
ea]   displayingProgress: 'Loading.....]}
BlockContext>>on:do:
[] in MCPackageLoader>>basicLoad {[[additions   do: [:ea | self tryToLoad:
ea]   displayingProgress: 'Loading....]}
BlockContext>>ensure:
MCPackageLoader>>basicLoad
[] in MCPackageLoader>>loadWithNameLike: {[self basicLoad]}
[] in MCPackageLoader>>useChangeSetNamed:during: {[aBlock value]}
...etc...



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: [ANN] Magma Tutorial

Chris Muller-3
It appears to be complaining of a class-variable named 'Cache'
"defined elsewhere" in the hierarchy of WBMethodBuilder.
Interestingly, WBMethodBuilder inherits from Object..

 - Chris



On Dec 16, 2007 5:59 PM, itsme213 <[hidden email]> wrote:

> "Keith Hodges" <[hidden email]> wrote
> > To use an americanism "my bad"
> >
> > fixed now I hope
>
> It got further than before, but not all the way :-(  Below are the
> Transcript messages followed by the error stack.
>
> Sophie.
>
> First some warnings on Transcript (not sure if some of the early ones are
> from an earlier attempt)
> =================================
> =================================
> Warning: pane workingCopyTreeRoots not found.
> Warning: pane summary not found.
> finding Installer-Core... found Installer-Core-kph.146.mcz...loaded
> File UniversesMCAndProvidesPatch successfully filed in to change set
> UniversesMCAndProvidesPatch
> File InstallerInstallLogging successfully filed in to change set
> InstallerInstallLogging (ActionMaps is Undeclared)  (Q2Session is
> Undeclared)  (Q2Session is Undeclared)  (FLHandlerEditor is Undeclared)
> (WASessionHelper is Undeclared)  (WAStandardFilesPlus is Undeclared)
> (configuration is Undeclared)  (configuration is Undeclared)  (configuration
> is Undeclared)  (configuration is Undeclared)
> ========== Ma exception handling-cmm.24 ==========
>
> - Removed MaHardwareError, it was unused.
>
> ========== Ma base additions-cmm.88 ==========
>
> - Merged Ma base additions-cmm.87.
>  (MaObject is Undeclared)
> ========== Ma proxy support-cmm.32 ==========
>
> - Lint cleanup; removed unused methods.
>
> ========== Ma traverse object graphs-cmm.24 ==========
>
> Trying new prereq strategy.
>
> ========== Ma object serialization-cmm.166 ==========
>
> - Support for alerting when someone tries to dynamically extend a "Ma client
> server" protocol, which is not supported.
>  (MaBlockContextStorage is Undeclared)  (MaOidCalculator is Undeclared)
> (MaMethodContextStorage is Undeclared)  (MaClassReference is Undeclared)
> (MaClassDefinition is Undeclared)  (MaObjectSerializationSoftwareError is
> Undeclared)  (MaClassDefinition is Undeclared)
> (MaObjectSerializationSoftwareError is Undeclared)
> (MaObjectSerializationSoftwareError is Undeclared)
> (MaObjectSerializationSoftwareError is Undeclared)
> (MaObjectSerializationSoftwareError is Undeclared)
> (MaObjectSerializationUserError is Undeclared)
> (MaObjectSerializationSoftwareError is Undeclared)  (MaClassDefinition is
> Undeclared)  (MaObjectSerializationWarning is Undeclared)
> (MaObjectSerializationSoftwareError is Undeclared)  (MaOidCalculator is
> Undeclared)  (MaOidCalculator is Undeclared)  (MaByteObjectBuffer is
> Undeclared)  (MaVariableObjectBuffer is Undeclared)  (MaVariableWordBuffer
> is Undeclared)  (MaStorageObjectBuffer is Undeclared)
> (MaObjectSerializationSecurityViolation is Undeclared)
> (MaSerializedGraphBuffer is Undeclared)  (MaObjectSerializerPreferences is
> Undeclared)  (MaOidManager is Undeclared)  (MaObjectSerializationUserError
> is Undeclared)  (MaSerializedGraphBuffer is Undeclared)
> (MaSerializedGraphBuffer is Undeclared)  (MaObjectSerializationUserError is
> Undeclared)  (MaWeakValueDictionary is Undeclared)
> (MaObjectSerializationSoftwareError is Undeclared)
> ========== Collections-BTree-lr.68 ==========
>
> - make it loadable into a new compiler image
>
> ========== Ma special collections-cmm.83 ==========
>
> - Lint cleanups.
>  (MaFileRecordBroker is Undeclared)  (MaInImageRecordBroker is Undeclared)
> (MaFileRecordBroker is Undeclared)  (MaHashIndexUserError is Undeclared)
> (MaSpecialCollectionsSoftwareError is Undeclared)
> ========== Ma client server-cmm.138 ==========
>
> - Support for alerting when someone tries to dynamically extend a "Ma client
> server" protocol, which is not supported.
>  (MaRequestServerConsole is Undeclared)  (MaServerSocket is Undeclared)
> (MaMalformedRequestError is Undeclared)  (MaServerConsole is Undeclared)
> (MaClientServerUserError is Undeclared)  (MaMalformedRequestError is
> Undeclared)
> ========== WriteBarrier-pmm.26 ==========
>
> - adding methods silently
>  (BytecodeGenerator is Undeclared)  (WBMethodBuilder is Undeclared)
>
>
> Then an error:
> ================================
> ================================
> VM: Win32 - a SmalltalkImage
> Image: Squeak3.9 [latest update: #7067]
>
> SecurityManager state:
> Restricted: false
> FileAccess: true
> SocketAccess: true
> Working Dir C:\des\desktop\ocean\ramon dec 07
> Trusted Dir C:\des\desktop\ocean\ramon dec 07\desmond
> Untrusted Dir C:\My Squeak\desmond
>
> WBMethodBuilder class(Object)>>error:
>  Receiver: WBMethodBuilder
>  Arguments and temporary variables:
>   aString:  'Cache is defined elsewhere'
>  Receiver's instance variables:
>   superclass:  Object
>   methodDict:  a MethodDictionary()
>   format:  138
>   instanceVariables:  #('selector' 'class' 'fields' 'generator')
>   organization:  nil
>   subclasses:  nil
>   name:  #WBMethodBuilder
>   classPool:  nil
>   sharedPools:  nil
>   environment:  nil
>   category:  nil
>   traitComposition:  nil
>   localSelectors:  nil
>
> [] in WBMethodBuilder class(Class)>>declare: {[:var | (self bindingOf: var)
> notNil   ifTrue: [self error: var , ' is defin...]}
>  Arguments and temporary variables:
>   varString:  'Cache'
>   newVars:  #(#Cache)
>   conflicts:  false
>   x:  'Cache'
>   var:  #Cache
>
> Array(SequenceableCollection)>>do:
>  Receiver: #(#Cache)
>  Arguments and temporary variables:
>   aBlock:  [] in WBMethodBuilder class(Class)>>declare: {[:var | (self
> bindingOf: ...etc...
>   index:  1
>   indexLimiT:  1
>  Receiver's instance variables:
> #(#Cache)
>
> WBMethodBuilder class(Class)>>declare:
>  Receiver: WBMethodBuilder
>  Arguments and temporary variables:
>   varString:  'Cache'
>   newVars:  #(#Cache)
>   conflicts:  false
>   x:  'Cache'
>   var:  #Cache
>  Receiver's instance variables:
>   superclass:  Object
>   methodDict:  a MethodDictionary()
>   format:  138
>   instanceVariables:  #('selector' 'class' 'fields' 'generator')
>   organization:  nil
>   subclasses:  nil
>   name:  #WBMethodBuilder
>   classPool:  nil
>   sharedPools:  nil
>   environment:  nil
>   category:  nil
>   traitComposition:  nil
>   localSelectors:  nil
>
>
> --- The full stack ---
> WBMethodBuilder class(Object)>>error:
> [] in WBMethodBuilder class(Class)>>declare: {[:var | (self bindingOf: var)
> notNil   ifTrue: [self error: var , ' is defin...]}
> Array(SequenceableCollection)>>do:
> WBMethodBuilder class(Class)>>declare:
>  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> [] in
> ClassBuilder>>name:inEnvironment:subclassOf:type:instanceVariableNames:classVariableNames:poolDictionaries:category:unsafe:
> {[unsafe   ifFalse: [(self validateSuperclass: newSuper forSubclass:
> oldClass...]}
> BlockContext>>ensure:
> ClassBuilder>>name:inEnvironment:subclassOf:type:instanceVariableNames:classVariableNames:poolDictionaries:category:unsafe:
> ClassBuilder>>name:inEnvironment:subclassOf:type:instanceVariableNames:classVariableNames:poolDictionaries:category:
> MCClassDefinition>>createClass
> MCClassDefinition>>load
> MCClassDefinition(MCDefinition)>>loadOver:
> [] in MCPackageLoader>>basicLoad {[:ea | ea   loadOver: (self obsoletionFor:
> ea)]}
> [] in OrderedCollection(SequenceableCollection)>>do:displayingProgress:
> {[:each :i |  bar value: i.  aBlock value: each]}
> OrderedCollection(SequenceableCollection)>>withIndexDo:
> [] in OrderedCollection(SequenceableCollection)>>do:displayingProgress:
> {[:bar | self   withIndexDo: [:each :i |     bar value: i.    aBlock value:
> e...]}
> [] in ProgressInitiationException>>defaultMorphicAction {[result :=
> workBlock value: progress]}
> BlockContext>>ensure:
> ProgressInitiationException>>defaultMorphicAction
> ProgressInitiationException>>defaultAction
> UndefinedObject>>handleSignal:
> MethodContext(ContextPart)>>handleSignal:
> MethodContext(ContextPart)>>handleSignal:
> MethodContext(ContextPart)>>handleSignal:
> MethodContext(ContextPart)>>handleSignal:
> ProgressInitiationException(Exception)>>signal
> ProgressInitiationException>>display:at:from:to:during:
> ProgressInitiationException class>>display:at:from:to:during:
> ByteString(String)>>displayProgressAt:from:to:during:
> OrderedCollection(SequenceableCollection)>>do:displayingProgress:
> [] in MCPackageLoader>>basicLoad {[additions   do: [:ea | self tryToLoad:
> ea]   displayingProgress: 'Loading.....]}
> BlockContext>>on:do:
> [] in MCPackageLoader>>basicLoad {[[additions   do: [:ea | self tryToLoad:
> ea]   displayingProgress: 'Loading....]}
> BlockContext>>ensure:
> MCPackageLoader>>basicLoad
> [] in MCPackageLoader>>loadWithNameLike: {[self basicLoad]}
> [] in MCPackageLoader>>useChangeSetNamed:during: {[aBlock value]}
> ...etc...
>
>
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Magma Tutorial

Sophie424
Magma or Installer code? Any idea what I might do to get past it? I am
chomping at the bit to try out Magma ;)

- Sophie

"Chris Muller" <[hidden email]> wrote in message
news:[hidden email]...

> It appears to be complaining of a class-variable named 'Cache'
> "defined elsewhere" in the hierarchy of WBMethodBuilder.
> Interestingly, WBMethodBuilder inherits from Object..
>
> - Chris
>
>
>
> On Dec 16, 2007 5:59 PM, itsme213 <[hidden email]> wrote:
>> "Keith Hodges" <[hidden email]> wrote
>> > To use an americanism "my bad"
>> >
>> > fixed now I hope
>>
>> It got further than before, but not all the way :-(  Below are the
>> Transcript messages followed by the error stack.
>>
>> Sophie.
>>
>> First some warnings on Transcript (not sure if some of the early ones are
>> from an earlier attempt)
>> =================================
>> =================================
>> Warning: pane workingCopyTreeRoots not found.
>> Warning: pane summary not found.
>> finding Installer-Core... found Installer-Core-kph.146.mcz...loaded
>> File UniversesMCAndProvidesPatch successfully filed in to change set
>> UniversesMCAndProvidesPatch
>> File InstallerInstallLogging successfully filed in to change set
>> InstallerInstallLogging (ActionMaps is Undeclared)  (Q2Session is
>> Undeclared)  (Q2Session is Undeclared)  (FLHandlerEditor is Undeclared)
>> (WASessionHelper is Undeclared)  (WAStandardFilesPlus is Undeclared)
>> (configuration is Undeclared)  (configuration is Undeclared)
>> (configuration
>> is Undeclared)  (configuration is Undeclared)
>> ========== Ma exception handling-cmm.24 ==========
>>
>> - Removed MaHardwareError, it was unused.
>>
>> ========== Ma base additions-cmm.88 ==========
>>
>> - Merged Ma base additions-cmm.87.
>>  (MaObject is Undeclared)
>> ========== Ma proxy support-cmm.32 ==========
>>
>> - Lint cleanup; removed unused methods.
>>
>> ========== Ma traverse object graphs-cmm.24 ==========
>>
>> Trying new prereq strategy.
>>
>> ========== Ma object serialization-cmm.166 ==========
>>
>> - Support for alerting when someone tries to dynamically extend a "Ma
>> client
>> server" protocol, which is not supported.
>>  (MaBlockContextStorage is Undeclared)  (MaOidCalculator is Undeclared)
>> (MaMethodContextStorage is Undeclared)  (MaClassReference is Undeclared)
>> (MaClassDefinition is Undeclared)  (MaObjectSerializationSoftwareError is
>> Undeclared)  (MaClassDefinition is Undeclared)
>> (MaObjectSerializationSoftwareError is Undeclared)
>> (MaObjectSerializationSoftwareError is Undeclared)
>> (MaObjectSerializationSoftwareError is Undeclared)
>> (MaObjectSerializationSoftwareError is Undeclared)
>> (MaObjectSerializationUserError is Undeclared)
>> (MaObjectSerializationSoftwareError is Undeclared)  (MaClassDefinition is
>> Undeclared)  (MaObjectSerializationWarning is Undeclared)
>> (MaObjectSerializationSoftwareError is Undeclared)  (MaOidCalculator is
>> Undeclared)  (MaOidCalculator is Undeclared)  (MaByteObjectBuffer is
>> Undeclared)  (MaVariableObjectBuffer is Undeclared)
>> (MaVariableWordBuffer
>> is Undeclared)  (MaStorageObjectBuffer is Undeclared)
>> (MaObjectSerializationSecurityViolation is Undeclared)
>> (MaSerializedGraphBuffer is Undeclared)  (MaObjectSerializerPreferences
>> is
>> Undeclared)  (MaOidManager is Undeclared)
>> (MaObjectSerializationUserError
>> is Undeclared)  (MaSerializedGraphBuffer is Undeclared)
>> (MaSerializedGraphBuffer is Undeclared)  (MaObjectSerializationUserError
>> is
>> Undeclared)  (MaWeakValueDictionary is Undeclared)
>> (MaObjectSerializationSoftwareError is Undeclared)
>> ========== Collections-BTree-lr.68 ==========
>>
>> - make it loadable into a new compiler image
>>
>> ========== Ma special collections-cmm.83 ==========
>>
>> - Lint cleanups.
>>  (MaFileRecordBroker is Undeclared)  (MaInImageRecordBroker is
>> Undeclared)
>> (MaFileRecordBroker is Undeclared)  (MaHashIndexUserError is Undeclared)
>> (MaSpecialCollectionsSoftwareError is Undeclared)
>> ========== Ma client server-cmm.138 ==========
>>
>> - Support for alerting when someone tries to dynamically extend a "Ma
>> client
>> server" protocol, which is not supported.
>>  (MaRequestServerConsole is Undeclared)  (MaServerSocket is Undeclared)
>> (MaMalformedRequestError is Undeclared)  (MaServerConsole is Undeclared)
>> (MaClientServerUserError is Undeclared)  (MaMalformedRequestError is
>> Undeclared)
>> ========== WriteBarrier-pmm.26 ==========
>>
>> - adding methods silently
>>  (BytecodeGenerator is Undeclared)  (WBMethodBuilder is Undeclared)
>>
>>
>> Then an error:
>> ================================
>> ================================
>> VM: Win32 - a SmalltalkImage
>> Image: Squeak3.9 [latest update: #7067]
>>
>> SecurityManager state:
>> Restricted: false
>> FileAccess: true
>> SocketAccess: true
>> Working Dir C:\des\desktop\ocean\ramon dec 07
>> Trusted Dir C:\des\desktop\ocean\ramon dec 07\desmond
>> Untrusted Dir C:\My Squeak\desmond
>>
>> WBMethodBuilder class(Object)>>error:
>>  Receiver: WBMethodBuilder
>>  Arguments and temporary variables:
>>   aString:  'Cache is defined elsewhere'
>>  Receiver's instance variables:
>>   superclass:  Object
>>   methodDict:  a MethodDictionary()
>>   format:  138
>>   instanceVariables:  #('selector' 'class' 'fields' 'generator')
>>   organization:  nil
>>   subclasses:  nil
>>   name:  #WBMethodBuilder
>>   classPool:  nil
>>   sharedPools:  nil
>>   environment:  nil
>>   category:  nil
>>   traitComposition:  nil
>>   localSelectors:  nil
>>
>> [] in WBMethodBuilder class(Class)>>declare: {[:var | (self bindingOf:
>> var)
>> notNil   ifTrue: [self error: var , ' is defin...]}
>>  Arguments and temporary variables:
>>   varString:  'Cache'
>>   newVars:  #(#Cache)
>>   conflicts:  false
>>   x:  'Cache'
>>   var:  #Cache
>>
>> Array(SequenceableCollection)>>do:
>>  Receiver: #(#Cache)
>>  Arguments and temporary variables:
>>   aBlock:  [] in WBMethodBuilder class(Class)>>declare: {[:var | (self
>> bindingOf: ...etc...
>>   index:  1
>>   indexLimiT:  1
>>  Receiver's instance variables:
>> #(#Cache)
>>
>> WBMethodBuilder class(Class)>>declare:
>>  Receiver: WBMethodBuilder
>>  Arguments and temporary variables:
>>   varString:  'Cache'
>>   newVars:  #(#Cache)
>>   conflicts:  false
>>   x:  'Cache'
>>   var:  #Cache
>>  Receiver's instance variables:
>>   superclass:  Object
>>   methodDict:  a MethodDictionary()
>>   format:  138
>>   instanceVariables:  #('selector' 'class' 'fields' 'generator')
>>   organization:  nil
>>   subclasses:  nil
>>   name:  #WBMethodBuilder
>>   classPool:  nil
>>   sharedPools:  nil
>>   environment:  nil
>>   category:  nil
>>   traitComposition:  nil
>>   localSelectors:  nil
>>
>>
>> --- The full stack ---
>> WBMethodBuilder class(Object)>>error:
>> [] in WBMethodBuilder class(Class)>>declare: {[:var | (self bindingOf:
>> var)
>> notNil   ifTrue: [self error: var , ' is defin...]}
>> Array(SequenceableCollection)>>do:
>> WBMethodBuilder class(Class)>>declare:
>>  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> [] in
>> ClassBuilder>>name:inEnvironment:subclassOf:type:instanceVariableNames:classVariableNames:poolDictionaries:category:unsafe:
>> {[unsafe   ifFalse: [(self validateSuperclass: newSuper forSubclass:
>> oldClass...]}
>> BlockContext>>ensure:
>> ClassBuilder>>name:inEnvironment:subclassOf:type:instanceVariableNames:classVariableNames:poolDictionaries:category:unsafe:
>> ClassBuilder>>name:inEnvironment:subclassOf:type:instanceVariableNames:classVariableNames:poolDictionaries:category:
>> MCClassDefinition>>createClass
>> MCClassDefinition>>load
>> MCClassDefinition(MCDefinition)>>loadOver:
>> [] in MCPackageLoader>>basicLoad {[:ea | ea   loadOver: (self
>> obsoletionFor:
>> ea)]}
>> [] in OrderedCollection(SequenceableCollection)>>do:displayingProgress:
>> {[:each :i |  bar value: i.  aBlock value: each]}
>> OrderedCollection(SequenceableCollection)>>withIndexDo:
>> [] in OrderedCollection(SequenceableCollection)>>do:displayingProgress:
>> {[:bar | self   withIndexDo: [:each :i |     bar value: i.    aBlock
>> value:
>> e...]}
>> [] in ProgressInitiationException>>defaultMorphicAction {[result :=
>> workBlock value: progress]}
>> BlockContext>>ensure:
>> ProgressInitiationException>>defaultMorphicAction
>> ProgressInitiationException>>defaultAction
>> UndefinedObject>>handleSignal:
>> MethodContext(ContextPart)>>handleSignal:
>> MethodContext(ContextPart)>>handleSignal:
>> MethodContext(ContextPart)>>handleSignal:
>> MethodContext(ContextPart)>>handleSignal:
>> ProgressInitiationException(Exception)>>signal
>> ProgressInitiationException>>display:at:from:to:during:
>> ProgressInitiationException class>>display:at:from:to:during:
>> ByteString(String)>>displayProgressAt:from:to:during:
>> OrderedCollection(SequenceableCollection)>>do:displayingProgress:
>> [] in MCPackageLoader>>basicLoad {[additions   do: [:ea | self tryToLoad:
>> ea]   displayingProgress: 'Loading.....]}
>> BlockContext>>on:do:
>> [] in MCPackageLoader>>basicLoad {[[additions   do: [:ea | self
>> tryToLoad:
>> ea]   displayingProgress: 'Loading....]}
>> BlockContext>>ensure:
>> MCPackageLoader>>basicLoad
>> [] in MCPackageLoader>>loadWithNameLike: {[self basicLoad]}
>> [] in MCPackageLoader>>useChangeSetNamed:during: {[aBlock value]}
>> ...etc...
>>
>>
>>
>>
>> _______________________________________________
>> seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: [ANN] Magma Tutorial

keith1y
itsme213 wrote:

> Magma or Installer code? Any idea what I might do to get past it? I am
> chomping at the bit to try out Magma ;)
>
> - Sophie
>
> "Chris Muller" <[hidden email]> wrote in message
> news:[hidden email]...
>  
>> It appears to be complaining of a class-variable named 'Cache'
>> "defined elsewhere" in the hierarchy of WBMethodBuilder.
>> Interestingly, WBMethodBuilder inherits from Object..
>>
>> - Chris
>>
>>  
I would try in the image that I tried in, a 3.10gamma... If I get some
time later on I will do
a full set of install scripts for all images, and test them.

Keith

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: [ANN] Magma Tutorial

Chris Muller-3
In reply to this post by Sophie424
Magma includes an external package called "WriteBarrier" to speed up
commits, even though the default setting is not to use it.  It is not
required, and will install and run fine without it.

However, did you look at your WBMethodBuilder hierarchy to see which
defined Cache?  That would be the conflicting package.

On Dec 17, 2007 1:54 PM, itsme213 <[hidden email]> wrote:

> Magma or Installer code? Any idea what I might do to get past it? I am
> chomping at the bit to try out Magma ;)
>
> - Sophie
>
> "Chris Muller" <[hidden email]> wrote in message
> news:[hidden email]...
>
> > It appears to be complaining of a class-variable named 'Cache'
> > "defined elsewhere" in the hierarchy of WBMethodBuilder.
> > Interestingly, WBMethodBuilder inherits from Object..
> >
> > - Chris
> >
> >
> >
> > On Dec 16, 2007 5:59 PM, itsme213 <[hidden email]> wrote:
> >> "Keith Hodges" <[hidden email]> wrote
> >> > To use an americanism "my bad"
> >> >
> >> > fixed now I hope
> >>
> >> It got further than before, but not all the way :-(  Below are the
> >> Transcript messages followed by the error stack.
> >>
> >> Sophie.
> >>
> >> First some warnings on Transcript (not sure if some of the early ones are
> >> from an earlier attempt)
> >> =================================
> >> =================================
> >> Warning: pane workingCopyTreeRoots not found.
> >> Warning: pane summary not found.
> >> finding Installer-Core... found Installer-Core-kph.146.mcz...loaded
> >> File UniversesMCAndProvidesPatch successfully filed in to change set
> >> UniversesMCAndProvidesPatch
> >> File InstallerInstallLogging successfully filed in to change set
> >> InstallerInstallLogging (ActionMaps is Undeclared)  (Q2Session is
> >> Undeclared)  (Q2Session is Undeclared)  (FLHandlerEditor is Undeclared)
> >> (WASessionHelper is Undeclared)  (WAStandardFilesPlus is Undeclared)
> >> (configuration is Undeclared)  (configuration is Undeclared)
> >> (configuration
> >> is Undeclared)  (configuration is Undeclared)
> >> ========== Ma exception handling-cmm.24 ==========
> >>
> >> - Removed MaHardwareError, it was unused.
> >>
> >> ========== Ma base additions-cmm.88 ==========
> >>
> >> - Merged Ma base additions-cmm.87.
> >>  (MaObject is Undeclared)
> >> ========== Ma proxy support-cmm.32 ==========
> >>
> >> - Lint cleanup; removed unused methods.
> >>
> >> ========== Ma traverse object graphs-cmm.24 ==========
> >>
> >> Trying new prereq strategy.
> >>
> >> ========== Ma object serialization-cmm.166 ==========
> >>
> >> - Support for alerting when someone tries to dynamically extend a "Ma
> >> client
> >> server" protocol, which is not supported.
> >>  (MaBlockContextStorage is Undeclared)  (MaOidCalculator is Undeclared)
> >> (MaMethodContextStorage is Undeclared)  (MaClassReference is Undeclared)
> >> (MaClassDefinition is Undeclared)  (MaObjectSerializationSoftwareError is
> >> Undeclared)  (MaClassDefinition is Undeclared)
> >> (MaObjectSerializationSoftwareError is Undeclared)
> >> (MaObjectSerializationSoftwareError is Undeclared)
> >> (MaObjectSerializationSoftwareError is Undeclared)
> >> (MaObjectSerializationSoftwareError is Undeclared)
> >> (MaObjectSerializationUserError is Undeclared)
> >> (MaObjectSerializationSoftwareError is Undeclared)  (MaClassDefinition is
> >> Undeclared)  (MaObjectSerializationWarning is Undeclared)
> >> (MaObjectSerializationSoftwareError is Undeclared)  (MaOidCalculator is
> >> Undeclared)  (MaOidCalculator is Undeclared)  (MaByteObjectBuffer is
> >> Undeclared)  (MaVariableObjectBuffer is Undeclared)
> >> (MaVariableWordBuffer
> >> is Undeclared)  (MaStorageObjectBuffer is Undeclared)
> >> (MaObjectSerializationSecurityViolation is Undeclared)
> >> (MaSerializedGraphBuffer is Undeclared)  (MaObjectSerializerPreferences
> >> is
> >> Undeclared)  (MaOidManager is Undeclared)
> >> (MaObjectSerializationUserError
> >> is Undeclared)  (MaSerializedGraphBuffer is Undeclared)
> >> (MaSerializedGraphBuffer is Undeclared)  (MaObjectSerializationUserError
> >> is
> >> Undeclared)  (MaWeakValueDictionary is Undeclared)
> >> (MaObjectSerializationSoftwareError is Undeclared)
> >> ========== Collections-BTree-lr.68 ==========
> >>
> >> - make it loadable into a new compiler image
> >>
> >> ========== Ma special collections-cmm.83 ==========
> >>
> >> - Lint cleanups.
> >>  (MaFileRecordBroker is Undeclared)  (MaInImageRecordBroker is
> >> Undeclared)
> >> (MaFileRecordBroker is Undeclared)  (MaHashIndexUserError is Undeclared)
> >> (MaSpecialCollectionsSoftwareError is Undeclared)
> >> ========== Ma client server-cmm.138 ==========
> >>
> >> - Support for alerting when someone tries to dynamically extend a "Ma
> >> client
> >> server" protocol, which is not supported.
> >>  (MaRequestServerConsole is Undeclared)  (MaServerSocket is Undeclared)
> >> (MaMalformedRequestError is Undeclared)  (MaServerConsole is Undeclared)
> >> (MaClientServerUserError is Undeclared)  (MaMalformedRequestError is
> >> Undeclared)
> >> ========== WriteBarrier-pmm.26 ==========
> >>
> >> - adding methods silently
> >>  (BytecodeGenerator is Undeclared)  (WBMethodBuilder is Undeclared)
> >>
> >>
> >> Then an error:
> >> ================================
> >> ================================
> >> VM: Win32 - a SmalltalkImage
> >> Image: Squeak3.9 [latest update: #7067]
> >>
> >> SecurityManager state:
> >> Restricted: false
> >> FileAccess: true
> >> SocketAccess: true
> >> Working Dir C:\des\desktop\ocean\ramon dec 07
> >> Trusted Dir C:\des\desktop\ocean\ramon dec 07\desmond
> >> Untrusted Dir C:\My Squeak\desmond
> >>
> >> WBMethodBuilder class(Object)>>error:
> >>  Receiver: WBMethodBuilder
> >>  Arguments and temporary variables:
> >>   aString:  'Cache is defined elsewhere'
> >>  Receiver's instance variables:
> >>   superclass:  Object
> >>   methodDict:  a MethodDictionary()
> >>   format:  138
> >>   instanceVariables:  #('selector' 'class' 'fields' 'generator')
> >>   organization:  nil
> >>   subclasses:  nil
> >>   name:  #WBMethodBuilder
> >>   classPool:  nil
> >>   sharedPools:  nil
> >>   environment:  nil
> >>   category:  nil
> >>   traitComposition:  nil
> >>   localSelectors:  nil
> >>
> >> [] in WBMethodBuilder class(Class)>>declare: {[:var | (self bindingOf:
> >> var)
> >> notNil   ifTrue: [self error: var , ' is defin...]}
> >>  Arguments and temporary variables:
> >>   varString:  'Cache'
> >>   newVars:  #(#Cache)
> >>   conflicts:  false
> >>   x:  'Cache'
> >>   var:  #Cache
> >>
> >> Array(SequenceableCollection)>>do:
> >>  Receiver: #(#Cache)
> >>  Arguments and temporary variables:
> >>   aBlock:  [] in WBMethodBuilder class(Class)>>declare: {[:var | (self
> >> bindingOf: ...etc...
> >>   index:  1
> >>   indexLimiT:  1
> >>  Receiver's instance variables:
> >> #(#Cache)
> >>
> >> WBMethodBuilder class(Class)>>declare:
> >>  Receiver: WBMethodBuilder
> >>  Arguments and temporary variables:
> >>   varString:  'Cache'
> >>   newVars:  #(#Cache)
> >>   conflicts:  false
> >>   x:  'Cache'
> >>   var:  #Cache
> >>  Receiver's instance variables:
> >>   superclass:  Object
> >>   methodDict:  a MethodDictionary()
> >>   format:  138
> >>   instanceVariables:  #('selector' 'class' 'fields' 'generator')
> >>   organization:  nil
> >>   subclasses:  nil
> >>   name:  #WBMethodBuilder
> >>   classPool:  nil
> >>   sharedPools:  nil
> >>   environment:  nil
> >>   category:  nil
> >>   traitComposition:  nil
> >>   localSelectors:  nil
> >>
> >>
> >> --- The full stack ---
> >> WBMethodBuilder class(Object)>>error:
> >> [] in WBMethodBuilder class(Class)>>declare: {[:var | (self bindingOf:
> >> var)
> >> notNil   ifTrue: [self error: var , ' is defin...]}
> >> Array(SequenceableCollection)>>do:
> >> WBMethodBuilder class(Class)>>declare:
> >>  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> >> [] in
> >> ClassBuilder>>name:inEnvironment:subclassOf:type:instanceVariableNames:classVariableNames:poolDictionaries:category:unsafe:
> >> {[unsafe   ifFalse: [(self validateSuperclass: newSuper forSubclass:
> >> oldClass...]}
> >> BlockContext>>ensure:
> >> ClassBuilder>>name:inEnvironment:subclassOf:type:instanceVariableNames:classVariableNames:poolDictionaries:category:unsafe:
> >> ClassBuilder>>name:inEnvironment:subclassOf:type:instanceVariableNames:classVariableNames:poolDictionaries:category:
> >> MCClassDefinition>>createClass
> >> MCClassDefinition>>load
> >> MCClassDefinition(MCDefinition)>>loadOver:
> >> [] in MCPackageLoader>>basicLoad {[:ea | ea   loadOver: (self
> >> obsoletionFor:
> >> ea)]}
> >> [] in OrderedCollection(SequenceableCollection)>>do:displayingProgress:
> >> {[:each :i |  bar value: i.  aBlock value: each]}
> >> OrderedCollection(SequenceableCollection)>>withIndexDo:
> >> [] in OrderedCollection(SequenceableCollection)>>do:displayingProgress:
> >> {[:bar | self   withIndexDo: [:each :i |     bar value: i.    aBlock
> >> value:
> >> e...]}
> >> [] in ProgressInitiationException>>defaultMorphicAction {[result :=
> >> workBlock value: progress]}
> >> BlockContext>>ensure:
> >> ProgressInitiationException>>defaultMorphicAction
> >> ProgressInitiationException>>defaultAction
> >> UndefinedObject>>handleSignal:
> >> MethodContext(ContextPart)>>handleSignal:
> >> MethodContext(ContextPart)>>handleSignal:
> >> MethodContext(ContextPart)>>handleSignal:
> >> MethodContext(ContextPart)>>handleSignal:
> >> ProgressInitiationException(Exception)>>signal
> >> ProgressInitiationException>>display:at:from:to:during:
> >> ProgressInitiationException class>>display:at:from:to:during:
> >> ByteString(String)>>displayProgressAt:from:to:during:
> >> OrderedCollection(SequenceableCollection)>>do:displayingProgress:
> >> [] in MCPackageLoader>>basicLoad {[additions   do: [:ea | self tryToLoad:
> >> ea]   displayingProgress: 'Loading.....]}
> >> BlockContext>>on:do:
> >> [] in MCPackageLoader>>basicLoad {[[additions   do: [:ea | self
> >> tryToLoad:
> >> ea]   displayingProgress: 'Loading....]}
> >> BlockContext>>ensure:
> >> MCPackageLoader>>basicLoad
> >> [] in MCPackageLoader>>loadWithNameLike: {[self basicLoad]}
> >> [] in MCPackageLoader>>useChangeSetNamed:during: {[aBlock value]}
> >> ...etc...
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> seaside mailing list
> >> [hidden email]
> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >>
>
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Magma Tutorial

Sophie424
In reply to this post by Sophie424
I did get through Installer on 3.10gamma (but will have to revert to 3.9 as
I cannot upgrade images right now). For now on to some persistence
experiments ...

Some newbie questions:
Is StSession (or my session class) supposed to have an instVar #db, to be
set to
    self db: (self magma rootAs: StMagmaDatabase) ?

If not, where is #db: defined? What is the object/instVar path between my
WAComponents and the instance of my Database class
    WADictionaryRoot subclass: #MyMagmaDatabase

Also, are commits supposed to happen automatically after each server round
trip? Does this work for Ajax updates? I am not seeing these commit changes
in the "commits" folder, and after I quit and restart my Squeak image
without saving, I don't see the changes I made previously.

Thanks - Sophie

>
> "Keith Hodges" <[hidden email]> wrote in message
> news:[hidden email]...
>>I am pleased to announce that by popular demand I have written a Magma
>> tutorial segment to go with:
>>
>> http://www.swa.hpi.uni-potsdam.de/seaside/tutorial  (chapter 8)
>>
>> This tutorial can be found at:
>>
>> http://wiki.squeak.org/squeak/6021
>
>>From the tutorial:
>   "To install (into a 3.10 based image) ..."



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Re: [ANN] Magma Tutorial

Sebastian Sastre-2
In reply to this post by Sophie424
I remember loading Magma as one of the very first packages of the customized
squeak because of a problem (which I don't remember). Did you try loading it
as the first one?

        cheers,

Sebastian


> -----Mensaje original-----
> De: [hidden email]
> [mailto:[hidden email]] En nombre
> de itsme213
> Enviado el: Lunes, 17 de Diciembre de 2007 16:54
> Para: [hidden email]
> Asunto: [Seaside] Re: [ANN] Magma Tutorial
>
> Magma or Installer code? Any idea what I might do to get past
> it? I am chomping at the bit to try out Magma ;)
>
> - Sophie
>
> "Chris Muller" <[hidden email]> wrote in message
> news:[hidden email]...
> > It appears to be complaining of a class-variable named 'Cache'
> > "defined elsewhere" in the hierarchy of WBMethodBuilder.
> > Interestingly, WBMethodBuilder inherits from Object..
> >
> > - Chris
> >
> >
> >
> > On Dec 16, 2007 5:59 PM, itsme213 <[hidden email]> wrote:
> >> "Keith Hodges" <[hidden email]> wrote
> >> > To use an americanism "my bad"
> >> >
> >> > fixed now I hope
> >>
> >> It got further than before, but not all the way :-(  Below are the
> >> Transcript messages followed by the error stack.
> >>
> >> Sophie.
> >>
> >> First some warnings on Transcript (not sure if some of the
> early ones
> >> are from an earlier attempt) =================================
> >> =================================
> >> Warning: pane workingCopyTreeRoots not found.
> >> Warning: pane summary not found.
> >> finding Installer-Core... found Installer-Core-kph.146.mcz...loaded
> >> File UniversesMCAndProvidesPatch successfully filed in to
> change set
> >> UniversesMCAndProvidesPatch File InstallerInstallLogging
> successfully
> >> filed in to change set InstallerInstallLogging (ActionMaps is
> >> Undeclared)  (Q2Session is
> >> Undeclared)  (Q2Session is Undeclared)  (FLHandlerEditor is
> >> Undeclared) (WASessionHelper is Undeclared)  
> (WAStandardFilesPlus is
> >> Undeclared) (configuration is Undeclared)  (configuration is
> >> Undeclared) (configuration is Undeclared)  (configuration is
> >> Undeclared) ========== Ma exception handling-cmm.24 ==========
> >>
> >> - Removed MaHardwareError, it was unused.
> >>
> >> ========== Ma base additions-cmm.88 ==========
> >>
> >> - Merged Ma base additions-cmm.87.
> >>  (MaObject is Undeclared)
> >> ========== Ma proxy support-cmm.32 ==========
> >>
> >> - Lint cleanup; removed unused methods.
> >>
> >> ========== Ma traverse object graphs-cmm.24 ==========
> >>
> >> Trying new prereq strategy.
> >>
> >> ========== Ma object serialization-cmm.166 ==========
> >>
> >> - Support for alerting when someone tries to dynamically
> extend a "Ma
> >> client server" protocol, which is not supported.
> >>  (MaBlockContextStorage is Undeclared)  (MaOidCalculator is
> >> Undeclared) (MaMethodContextStorage is Undeclared)  
> (MaClassReference
> >> is Undeclared) (MaClassDefinition is Undeclared)  
> >> (MaObjectSerializationSoftwareError is
> >> Undeclared)  (MaClassDefinition is Undeclared)
> >> (MaObjectSerializationSoftwareError is Undeclared)
> >> (MaObjectSerializationSoftwareError is Undeclared)
> >> (MaObjectSerializationSoftwareError is Undeclared)
> >> (MaObjectSerializationSoftwareError is Undeclared)
> >> (MaObjectSerializationUserError is Undeclared)
> >> (MaObjectSerializationSoftwareError is Undeclared)  
> >> (MaClassDefinition is
> >> Undeclared)  (MaObjectSerializationWarning is Undeclared)
> >> (MaObjectSerializationSoftwareError is Undeclared)  
> (MaOidCalculator
> >> is
> >> Undeclared)  (MaOidCalculator is Undeclared)  
> (MaByteObjectBuffer is
> >> Undeclared)  (MaVariableObjectBuffer is Undeclared)
> >> (MaVariableWordBuffer is Undeclared)  (MaStorageObjectBuffer is
> >> Undeclared) (MaObjectSerializationSecurityViolation is Undeclared)
> >> (MaSerializedGraphBuffer is Undeclared)  
> >> (MaObjectSerializerPreferences is
> >> Undeclared)  (MaOidManager is Undeclared)
> >> (MaObjectSerializationUserError is Undeclared)  
> >> (MaSerializedGraphBuffer is Undeclared)
> (MaSerializedGraphBuffer is
> >> Undeclared)  (MaObjectSerializationUserError is
> >> Undeclared)  (MaWeakValueDictionary is Undeclared)
> >> (MaObjectSerializationSoftwareError is Undeclared) ==========
> >> Collections-BTree-lr.68 ==========
> >>
> >> - make it loadable into a new compiler image
> >>
> >> ========== Ma special collections-cmm.83 ==========
> >>
> >> - Lint cleanups.
> >>  (MaFileRecordBroker is Undeclared)  (MaInImageRecordBroker is
> >> Undeclared)
> >> (MaFileRecordBroker is Undeclared)  (MaHashIndexUserError is
> >> Undeclared) (MaSpecialCollectionsSoftwareError is Undeclared)
> >> ========== Ma client server-cmm.138 ==========
> >>
> >> - Support for alerting when someone tries to dynamically
> extend a "Ma
> >> client server" protocol, which is not supported.
> >>  (MaRequestServerConsole is Undeclared)  (MaServerSocket is
> >> Undeclared) (MaMalformedRequestError is Undeclared)  
> (MaServerConsole
> >> is Undeclared) (MaClientServerUserError is Undeclared)  
> >> (MaMalformedRequestError is
> >> Undeclared)
> >> ========== WriteBarrier-pmm.26 ==========
> >>
> >> - adding methods silently
> >>  (BytecodeGenerator is Undeclared)  (WBMethodBuilder is Undeclared)
> >>
> >>
> >> Then an error:
> >> ================================
> >> ================================
> >> VM: Win32 - a SmalltalkImage
> >> Image: Squeak3.9 [latest update: #7067]
> >>
> >> SecurityManager state:
> >> Restricted: false
> >> FileAccess: true
> >> SocketAccess: true
> >> Working Dir C:\des\desktop\ocean\ramon dec 07 Trusted Dir
> >> C:\des\desktop\ocean\ramon dec 07\desmond Untrusted Dir C:\My
> >> Squeak\desmond
> >>
> >> WBMethodBuilder class(Object)>>error:
> >>  Receiver: WBMethodBuilder
> >>  Arguments and temporary variables:
> >>   aString:  'Cache is defined elsewhere'
> >>  Receiver's instance variables:
> >>   superclass:  Object
> >>   methodDict:  a MethodDictionary()
> >>   format:  138
> >>   instanceVariables:  #('selector' 'class' 'fields' 'generator')
> >>   organization:  nil
> >>   subclasses:  nil
> >>   name:  #WBMethodBuilder
> >>   classPool:  nil
> >>   sharedPools:  nil
> >>   environment:  nil
> >>   category:  nil
> >>   traitComposition:  nil
> >>   localSelectors:  nil
> >>
> >> [] in WBMethodBuilder class(Class)>>declare: {[:var |
> (self bindingOf:
> >> var)
> >> notNil   ifTrue: [self error: var , ' is defin...]}
> >>  Arguments and temporary variables:
> >>   varString:  'Cache'
> >>   newVars:  #(#Cache)
> >>   conflicts:  false
> >>   x:  'Cache'
> >>   var:  #Cache
> >>
> >> Array(SequenceableCollection)>>do:
> >>  Receiver: #(#Cache)
> >>  Arguments and temporary variables:
> >>   aBlock:  [] in WBMethodBuilder class(Class)>>declare: {[:var |
> >> (self
> >> bindingOf: ...etc...
> >>   index:  1
> >>   indexLimiT:  1
> >>  Receiver's instance variables:
> >> #(#Cache)
> >>
> >> WBMethodBuilder class(Class)>>declare:
> >>  Receiver: WBMethodBuilder
> >>  Arguments and temporary variables:
> >>   varString:  'Cache'
> >>   newVars:  #(#Cache)
> >>   conflicts:  false
> >>   x:  'Cache'
> >>   var:  #Cache
> >>  Receiver's instance variables:
> >>   superclass:  Object
> >>   methodDict:  a MethodDictionary()
> >>   format:  138
> >>   instanceVariables:  #('selector' 'class' 'fields' 'generator')
> >>   organization:  nil
> >>   subclasses:  nil
> >>   name:  #WBMethodBuilder
> >>   classPool:  nil
> >>   sharedPools:  nil
> >>   environment:  nil
> >>   category:  nil
> >>   traitComposition:  nil
> >>   localSelectors:  nil
> >>
> >>
> >> --- The full stack ---
> >> WBMethodBuilder class(Object)>>error:
> >> [] in WBMethodBuilder class(Class)>>declare: {[:var |
> (self bindingOf:
> >> var)
> >> notNil   ifTrue: [self error: var , ' is defin...]}
> >> Array(SequenceableCollection)>>do:
> >> WBMethodBuilder class(Class)>>declare:
> >>  - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - []
> >> in
> >>
> ClassBuilder>>name:inEnvironment:subclassOf:type:instanceVaria
bleNames:classVariableNames:poolDictionaries:category:unsafe:
> >> {[unsafe   ifFalse: [(self validateSuperclass: newSuper
> forSubclass:
> >> oldClass...]}
> >> BlockContext>>ensure:
> >>
> ClassBuilder>>name:inEnvironment:subclassOf:type:instanceVaria
bleNames:classVariableNames:poolDictionaries:category:unsafe:
> >>
> ClassBuilder>>name:inEnvironment:subclassOf:type:instanceVaria
bleNames:classVariableNames:poolDictionaries:category:

> >> MCClassDefinition>>createClass
> >> MCClassDefinition>>load
> >> MCClassDefinition(MCDefinition)>>loadOver:
> >> [] in MCPackageLoader>>basicLoad {[:ea | ea   loadOver: (self
> >> obsoletionFor:
> >> ea)]}
> >> [] in
> OrderedCollection(SequenceableCollection)>>do:displayingProgress:
> >> {[:each :i |  bar value: i.  aBlock value: each]}
> >> OrderedCollection(SequenceableCollection)>>withIndexDo:
> >> [] in
> OrderedCollection(SequenceableCollection)>>do:displayingProgress:
> >> {[:bar | self   withIndexDo: [:each :i |     bar value: i.
>    aBlock
> >> value:
> >> e...]}
> >> [] in ProgressInitiationException>>defaultMorphicAction
> {[result :=
> >> workBlock value: progress]}
> >> BlockContext>>ensure:
> >> ProgressInitiationException>>defaultMorphicAction
> >> ProgressInitiationException>>defaultAction
> >> UndefinedObject>>handleSignal:
> >> MethodContext(ContextPart)>>handleSignal:
> >> MethodContext(ContextPart)>>handleSignal:
> >> MethodContext(ContextPart)>>handleSignal:
> >> MethodContext(ContextPart)>>handleSignal:
> >> ProgressInitiationException(Exception)>>signal
> >> ProgressInitiationException>>display:at:from:to:during:
> >> ProgressInitiationException class>>display:at:from:to:during:
> >> ByteString(String)>>displayProgressAt:from:to:during:
> >> OrderedCollection(SequenceableCollection)>>do:displayingProgress:
> >> [] in MCPackageLoader>>basicLoad {[additions   do: [:ea |
> self tryToLoad:
> >> ea]   displayingProgress: 'Loading.....]}
> >> BlockContext>>on:do:
> >> [] in MCPackageLoader>>basicLoad {[[additions   do: [:ea | self
> >> tryToLoad:
> >> ea]   displayingProgress: 'Loading....]}
> >> BlockContext>>ensure:
> >> MCPackageLoader>>basicLoad
> >> [] in MCPackageLoader>>loadWithNameLike: {[self basicLoad]} [] in
> >> MCPackageLoader>>useChangeSetNamed:during: {[aBlock
> value]} ...etc...
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> seaside mailing list
> >> [hidden email]
> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >>
>
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: [ANN] Magma Tutorial

keith1y
In reply to this post by Sophie424
itsme213 wrote:

> I did get through Installer on 3.10gamma (but will have to revert to 3.9 as
> I cannot upgrade images right now). For now on to some persistence
> experiments ...
>
> Some newbie questions:
> Is StSession (or my session class) supposed to have an instVar #db, to be
> set to
>     self db: (self magma rootAs: StMagmaDatabase) ?
>
>  
This approach is the one followed by the StToDo Tutorial to which my
tutorial is a supplement to Chapter 8.
Their code has a specialized Session class with #db initialized as above.

Magma seasideHelper does not need this since it does not need a
specialized session class at all.
Instead 'Magma seasideHelper' simply provides WASession-#magma which you
can use anywhere that you wish.

So on a component that wants access to a database model.

MySalesComponent-customers

^ self session magma rootAs: MyCustomers

MySalesComponent-products

^ self session magma rootAs: MyProducts


If MyCustomers and MyProducts are subclasses of WADictionaryRoot,
WAObjectRoot or MagmaCollection then this should work including
automatic initialization etc.
> If not, where is #db: defined? What is the object/instVar path between my
see the example code in squeaksource prjoject: 'ToDoTutorial' I think it
is - it is refered to in the wiki page.
>  
> WAComponents and the instance of my Database class
>     WADictionaryRoot subclass: #MyMagmaDatabase
>
> Also, are commits supposed to happen automatically after each server round
> trip? Does this work for Ajax updates? I am not seeing these commit changes
>  
This depends on the helper class chosen. WAMagmaSoloAuto, and
MAMagmaShareAuto do automatic commits.

But as you surmise not for ajax updates.

These need a commit:[]  or a #commitAndBegin. after data has changed.
> in the "commits" folder, and after I quit and restart my Squeak image
> without saving, I don't see the changes I made previously.
>
> Thanks - Sophie
>  
great you are finally making progress

Keith
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: [ANN] Magma Tutorial

Chris Muller-3
In reply to this post by Sophie424
The server only flushes to the "commits" folder, which represents
archived transaction logs, every five minutes.  It is possible you
looked at it before that time had elapsed.

The commits.log in the main repository directory is flushed within
five seconds of the last commit, however, so you should notice its
timestamp update very soon after a commit.

On Dec 18, 2007 12:51 AM, itsme213 <[hidden email]> wrote:

> I did get through Installer on 3.10gamma (but will have to revert to 3.9 as
> I cannot upgrade images right now). For now on to some persistence
> experiments ...
>
> Some newbie questions:
> Is StSession (or my session class) supposed to have an instVar #db, to be
> set to
>     self db: (self magma rootAs: StMagmaDatabase) ?
>
> If not, where is #db: defined? What is the object/instVar path between my
> WAComponents and the instance of my Database class
>     WADictionaryRoot subclass: #MyMagmaDatabase
>
> Also, are commits supposed to happen automatically after each server round
> trip? Does this work for Ajax updates? I am not seeing these commit changes
> in the "commits" folder, and after I quit and restart my Squeak image
> without saving, I don't see the changes I made previously.
>
> Thanks - Sophie
>
> >
> > "Keith Hodges" <[hidden email]> wrote in message
> > news:[hidden email]...
> >>I am pleased to announce that by popular demand I have written a Magma
> >> tutorial segment to go with:
> >>
> >> http://www.swa.hpi.uni-potsdam.de/seaside/tutorial  (chapter 8)
> >>
> >> This tutorial can be found at:
> >>
> >> http://wiki.squeak.org/squeak/6021
> >
> >>From the tutorial:
> >   "To install (into a 3.10 based image) ..."
>
>
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside