Hi, I just installed magma on a squeak-dev image (from Damien Cassou) based on build 7159 (latest 3.10 image)
I load packages "magma client 1.0 (r40)", "magma server 1.0 (r40)" and "magma tester 1.0 (r40)" from universes and executed first "getting started" code, with a very simple modification:
MagmaRepositoryController create: (FileDirectory default directoryNamed: 'repository') fullName root: Dictionary new
executing this code throws a doesNotUnderstood: #open on ByteString. The message call comes from MaFileStreamPool>>renewAccess:
Same code executed on a 3.9 image (from Damien Cassou, too) works fine. Is there a possible solution for this? i really need to run magma on 3.10 images.
Thanks, Esteban
Replying to my self... A little hack in MaAtomicFileStream>>addPhysicalFile (adding a #yourself) and now it works in 3.10... at least the code below (i will be testing it, so... wait for new reports :) )
Cheers, Esteban
On 2008-02-07 11:46:51 -0200, Esteban Lorenzano estebanlm@gmail.com said:
Hi, I just installed magma on a squeak-dev image (from Damien Cassou) based on build 7159 (latest 3.10 image)
I load packages "magma client 1.0 (r40)", "magma server 1.0 (r40)" and "magma tester 1.0 (r40)" from universes and executed first "getting started" code, with a very simple modification:
MagmaRepositoryController create: (FileDirectory default directoryNamed: 'repository') fullName root: Dictionary new
executing this code throws a doesNotUnderstood: #open on ByteString. The message call comes from MaFileStreamPool>>renewAccess:
Same code executed on a 3.9 image (from Damien Cassou, too) works fine. Is there a possible solution for this? i really need to run magma on 3.10 images.
Thanks, Esteban
On Feb 7, 2008 9:15 AM, Esteban Lorenzano estebanlm@gmail.com wrote:
Replying to my self... A little hack in MaAtomicFileStream>>addPhysicalFile (adding a #yourself) and now it works in 3.10... at least the code below (i will be testing it, so... wait for new reports :) )
As mentioned in my other note, I do not agree with your fix. Nevertheless, I hope you meant to test it via the MagmaTester package before testing it with any application code..
Regards..
Hi, I just installed magma on a squeak-dev image (from Damien Cassou) based on build 7159 (latest 3.10 image)
My, that image sure is gettin' pretty these days..
I load packages "magma client 1.0 (r40)", "magma server 1.0 (r40)" and
You don't need to load them all. Server includes client. Tester includes server includes client.
"magma tester 1.0 (r40)" from universes and executed first "getting started" code, with a very simple modification:
MagmaRepositoryController create: (FileDirectory default directoryNamed: 'repository') fullName root: Dictionary new
Great, thanks for the code.
executing this code throws a doesNotUnderstood: #open on ByteString. The message call comes from MaFileStreamPool>>renewAccess:
Note for the future, stack traces are useful.
Same code executed on a 3.9 image (from Damien Cassou, too) works fine. Is there a possible solution for this? i really need to run magma on 3.10 images.
Well, the problem is caused by the Rio package overriding Object>>#in: with Stream>>#in:. I recommend deleting Stream>>#in: from Rio because:
- It violates Smalltalk best-practices by overriding #in: with something of different semantics. - The semantics are different because it answers the FILENAME string, of all things, instead of the value of the block. So it is less useful too. - Further, closing the file with such basic method as #in: is too presumtious. We already have FileStream>>#detectFile:do: to serve the intended purpose, but with even more power and flexibility.
The #yourself you added is an incorrect fix, since it will leave the file closed instead of open. It probably only worked for you out of luck and the resilience of the surrounding code..
Regards, Chris
Hi Chris and Esteban,
I am really sorry about this.... the dev image/ universe must have a really old version of Rio. I will check and update them.
Keith
Hi, Thanks for the answers... I'm "rollbacked" my changes and started form zero againg... with 3.10 image but without damien's pre-builts (I don't need Rio or other things, so... I did an image from scratch). And voila! no more problems... so, my wrong hack is not alive anymore. I'm sorry, I did not send an stack trace because I don't know how to get it :(
Cheers, Esteban
On 2008-02-08 02:00:49 -0200, "Chris Muller" asqueaker@gmail.com said:
Hi, I just installed magma on a squeak-dev image (from Damien Cassou) based on build 7159 (latest 3.10 image)
My, that image sure is gettin' pretty these days..
I load packages "magma client 1.0 (r40)", "magma server 1.0 (r40)" and
You don't need to load them all. Server includes client. Tester includes server includes client.
"magma tester 1.0 (r40)" from universes and executed first "getting started" code, with a very simple modification:
MagmaRepositoryController create: (FileDirectory default directoryNamed: 'repository') fullName root: Dictionary new
Great, thanks for the code.
executing this code throws a doesNotUnderstood: #open on ByteString. The message call comes from MaFileStreamPool>>renewAccess:
Note for the future, stack traces are useful.
Same code executed on a 3.9 image (from Damien Cassou, too) works fine. Is there a possible solution for this? i really need to run magma on 3.10 images.
Well, the problem is caused by the Rio package overriding Object>>#in: with Stream>>#in:. I recommend deleting Stream>>#in: from Rio because:
- It violates Smalltalk best-practices by overriding #in: with
something of different semantics.
- The semantics are different because it answers the FILENAME
string, of all things, instead of the value of the block. So it is less useful too.
- Further, closing the file with such basic method as #in: is too
presumtious. We already have FileStream>>#detectFile:do: to serve the intended purpose, but with even more power and flexibility.
The #yourself you added is an incorrect fix, since it will leave the file closed instead of open. It probably only worked for you out of luck and the resilience of the surrounding code..
Regards, Chris
Hi Esteban,
I also build my own images from scratch. I do it allways and from time to time just to keep project healthy. I set the script that customizes this devel images to load Magma between the first 5 packages to avoid those kind of problems.
cheers,
Sebastian
-----Mensaje original----- De: magma-bounces@lists.squeakfoundation.org [mailto:magma-bounces@lists.squeakfoundation.org] En nombre de Esteban Lorenzano Enviado el: Viernes, 08 de Febrero de 2008 16:14 Para: magma@lists.squeakfoundation.org Asunto: Re: Magma on 3.10
Hi, Thanks for the answers... I'm "rollbacked" my changes and started form zero againg... with 3.10 image but without damien's pre-builts (I don't need Rio or other things, so... I did an image from scratch). And voila! no more problems... so, my wrong hack is not alive anymore. I'm sorry, I did not send an stack trace because I don't know how to get it :(
Cheers, Esteban
On 2008-02-08 02:00:49 -0200, "Chris Muller" asqueaker@gmail.com said:
Hi, I just installed magma on a squeak-dev image (from Damien Cassou) based on build 7159 (latest 3.10 image)
My, that image sure is gettin' pretty these days..
I load packages "magma client 1.0 (r40)", "magma server 1.0 (r40)" and
You don't need to load them all. Server includes client. Tester includes server includes client.
"magma tester 1.0 (r40)" from universes and executed first
"getting
started" code, with a very simple modification:
MagmaRepositoryController create: (FileDirectory default directoryNamed:
'repository') fullName
root: Dictionary new
Great, thanks for the code.
executing this code throws a doesNotUnderstood: #open on
ByteString.
The message call comes from MaFileStreamPool>>renewAccess:
Note for the future, stack traces are useful.
Same code executed on a 3.9 image (from Damien Cassou,
too) works fine.
Is there a possible solution for this? i really need to
run magma on
3.10 images.
Well, the problem is caused by the Rio package overriding
Object>>#in:
with Stream>>#in:. I recommend deleting Stream>>#in: from Rio because:
- It violates Smalltalk best-practices by overriding #in: with
something of different semantics.
- The semantics are different because it answers the FILENAME
string, of all things, instead of the value of the block. So it is less useful too.
- Further, closing the file with such basic method as #in: is too
presumtious. We already have FileStream>>#detectFile:do:
to serve the
intended purpose, but with even more power and flexibility.
The #yourself you added is an incorrect fix, since it will
leave the
file closed instead of open. It probably only worked for
you out of
luck and the resilience of the surrounding code..
Regards, Chris
Magma mailing list Magma@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/magma
Hi Sebastian,
"Sebastian Sastre" ssastre@seaswork.com wrote
I set the script that customizes this devel images to load Magma between the first 5 packages to avoid those kind of problems.
Could you share that script? I want to try building my own image too.
Thanks - Sophie
Hi, Sophie This is my script for building the image... works fine, for me... and it is easily updated. Surely there is better ways to build an image, but this is my first try :)
hope this helps, Esteban
"******************************" "Level Playing Field" "******************************" (HTTPSocket httpGet: 'installer.pbwiki.com/f/LPF.st') readStream fileIn.
"******************************" "Enhancements de Look&Feel" "******************************" Installer ss project:'UIEnhancements'; install: 'Pinesoft-ToolBuilder-gvc.9'; install: 'Pinesoft-Widgets-gvc.285'.
"Si estoy en mac" Preferences setPreference: #swapMouseButtons toValue: true. Preferences setPreference: #uiTheme toValue: UIThemeWatery. Preferences uiTheme beCurrent.
"******************************" "IDE utils" "******************************" Installer universe addPackage: 'eCompletion(0.89)'; addPackage: 'eCompletionOmniBrowser(0.4)'; addPackage: 'OmniBrowser-Full(0.25)'; addPackage: 'OB-Enhancements(0.61)'; addPackage: 'OmniBrowser-Refactory(0.53)'; addPackage: 'ShoutWorkspace(1-tween.2)'; addPackage: 'Universes OmniBrowser(0.35)'; addPackage: 'Null(0.8)'; addPackage: 'AutomaticMethodCategorizer(0.25)'; addPackage: 'AutomaticMethodCategorizerOB(0.2)'; install.
"******************************" "WebDevelopment" "******************************" "Kom server" Installer universe addPackage: 'KomHttpServer(7.0.30)'; addPackage: 'KomServices(1.12)'; install.
"Seaside + Scriptaculous" Installer ss project: 'Seaside'; install: 'Seaside2.8a1-tbn.539.mcz'; install: 'Scriptaculous-lr.222.mcz'.
"Shore - DEPRECATED, deber¦a irse pr¦ximamente" Installer ss project: 'ShoreComponents'; install: 'ShoreComponents-3-mb.35.mcz'.
"RSS" Installer ss project: 'rsrss'; install: 'RSRSS2-SW.11.mcz'.
"******************************" "Magma" "******************************" Installer universe addPackage: 'Magma 1.0 server(r40)'; addPackage: 'Magma seasideHelper(2.8.r40.32)'; install. "******************************" "Tools" "******************************" Installer ss project: 'Cryptography'; install: 'Cryptography-rww.7.mcz'. Installer universe addPackage: 'MemoryUsage(0.3)'; install. MemoryUsage example.
"******************************" "Cleanups" "******************************" MCFileBasedRepository flushAllCaches. Smalltalk garbageCollect.
On 2008-02-11 16:39:10 -0200, "itsme213" itsme213@hotmail.com said:
Hi Sebastian,
"Sebastian Sastre" ssastre@seaswork.com wrote
I set the script that customizes this devel images to load Magma between the first 5 packages to avoid those kind of problems.
Could you share that script? I want to try building my own image too.
Thanks - Sophie
Thank you!
"Esteban Lorenzano" estebanlm@gmail.com wrote
Hi, Sophie This is my script for building the image... works fine, for me... and it is easily updated. Surely there is better ways to build an image, but this is my first try :)
hope this helps, Esteban
itsme213 wrote:
Thank you!
"Esteban Lorenzano" estebanlm@gmail.com wrote
Hi, Sophie This is my script for building the image... works fine, for me... and it is easily updated. Surely there is better ways to build an image, but this is my first try :)
hope this helps, Esteban
I dont think that there are better ways just yet.
This kind of script gives a balance between automation and the finer control over which exact versions are loaded that you need sometimes.
best regards
Keith
Hi Esteban,
I've tested your script in a 3.10 image.
Do you know what the first http get is loading in it? Seems to update a lot of stuff.
cheers,
Sebastian Sastre
-----Mensaje original----- De: magma-bounces@lists.squeakfoundation.org [mailto:magma-bounces@lists.squeakfoundation.org] En nombre de Esteban Lorenzano Enviado el: Lunes, 11 de Febrero de 2008 17:50 Para: magma@lists.squeakfoundation.org Asunto: Re: Magma on 3.10
Hi, Sophie This is my script for building the image... works fine, for me... and it is easily updated. Surely there is better ways to build an image, but this is my first try :)
hope this helps, Esteban
"******************************" "Level Playing Field" "******************************" (HTTPSocket httpGet: 'installer.pbwiki.com/f/LPF.st') readStream fileIn.
"******************************" "Enhancements de Look&Feel" "******************************" Installer ss project:'UIEnhancements'; install: 'Pinesoft-ToolBuilder-gvc.9'; install: 'Pinesoft-Widgets-gvc.285'.
"Si estoy en mac" Preferences setPreference: #swapMouseButtons toValue: true. Preferences setPreference: #uiTheme toValue: UIThemeWatery. Preferences uiTheme beCurrent.
"******************************" "IDE utils" "******************************" Installer universe addPackage: 'eCompletion(0.89)'; addPackage: 'eCompletionOmniBrowser(0.4)'; addPackage: 'OmniBrowser-Full(0.25)'; addPackage: 'OB-Enhancements(0.61)'; addPackage: 'OmniBrowser-Refactory(0.53)'; addPackage: 'ShoutWorkspace(1-tween.2)'; addPackage: 'Universes OmniBrowser(0.35)'; addPackage: 'Null(0.8)'; addPackage: 'AutomaticMethodCategorizer(0.25)'; addPackage: 'AutomaticMethodCategorizerOB(0.2)'; install.
"******************************" "WebDevelopment" "******************************" "Kom server" Installer universe addPackage: 'KomHttpServer(7.0.30)'; addPackage: 'KomServices(1.12)'; install.
"Seaside + Scriptaculous" Installer ss project: 'Seaside'; install: 'Seaside2.8a1-tbn.539.mcz'; install: 'Scriptaculous-lr.222.mcz'.
"Shore - DEPRECATED, deber¦€a irse pr¦ximamente" Installer ss project: 'ShoreComponents'; install: 'ShoreComponents-3-mb.35.mcz'.
"RSS" Installer ss project: 'rsrss'; install: 'RSRSS2-SW.11.mcz'.
"******************************" "Magma" "******************************" Installer universe addPackage: 'Magma 1.0 server(r40)'; addPackage: 'Magma seasideHelper(2.8.r40.32)'; install.
"******************************" "Tools" "******************************" Installer ss project: 'Cryptography'; install: 'Cryptography-rww.7.mcz'.
Installer universe addPackage: 'MemoryUsage(0.3)'; install. MemoryUsage example.
"******************************" "Cleanups" "******************************" MCFileBasedRepository flushAllCaches. Smalltalk garbageCollect.
On 2008-02-11 16:39:10 -0200, "itsme213" itsme213@hotmail.com said:
Hi Sebastian,
"Sebastian Sastre" ssastre@seaswork.com wrote
I set the script that customizes this devel images to load Magma between the first 5
packages to avoid
those kind of problems.
Could you share that script? I want to try building my own
image too.
Thanks - Sophie
Magma mailing list Magma@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/magma
See http://installer.pbwiki.com for LPF information.
LPF.st loads, Installer, and Launcher then it hands over to http://installer.pbwiki.com/LevelPlayingField
Which loads, Installer again, PackageInfo, Monticello (twice) and Monticello Configurations.
best regards
Keith
Hi Sebastian, The script loads "Level Playing Field", from Keith... I don't know exactly what is loading,Installer and some other stuff. Surely he is better than me to answer this :)
Cheers, Esteban
On 2008-02-12 09:22:32 -0200, "Sebastian Sastre" ssastre@seaswork.com said:
Hi Esteban,
I've tested your script in a 3.10 image.
Do you know what the first http get is loading in it? Seems to update a lot of stuff.
cheers,
Sebastian Sastre
-----Mensaje original----- De: magma-bounces@lists.squeakfoundation.org [mailto:magma-bounces@lists.squeakfoundation.org] En nombre de Esteban Lorenzano Enviado el: Lunes, 11 de Febrero de 2008 17:50 Para: magma@lists.squeakfoundation.org Asunto: Re: Magma on 3.10
Hi, Sophie This is my script for building the image... works fine, for me... and it is easily updated. Surely there is better ways to build an image, but this is my first try :)
hope this helps, Esteban
"******************************" "Level Playing Field" "******************************" (HTTPSocket httpGet: 'installer.pbwiki.com/f/LPF.st') readStream fileIn.
"******************************" "Enhancements de Look&Feel" "******************************" Installer ss project:'UIEnhancements'; install: 'Pinesoft-ToolBuilder-gvc.9'; install: 'Pinesoft-Widgets-gvc.285'.
"Si estoy en mac" Preferences setPreference: #swapMouseButtons toValue: true. Preferences setPreference: #uiTheme toValue: UIThemeWatery. Preferences uiTheme beCurrent.
"******************************" "IDE utils" "******************************" Installer universe addPackage: 'eCompletion(0.89)'; addPackage: 'eCompletionOmniBrowser(0.4)'; addPackage: 'OmniBrowser-Full(0.25)'; addPackage: 'OB-Enhancements(0.61)'; addPackage: 'OmniBrowser-Refactory(0.53)'; addPackage: 'ShoutWorkspace(1-tween.2)'; addPackage: 'Universes OmniBrowser(0.35)'; addPackage: 'Null(0.8)'; addPackage: 'AutomaticMethodCategorizer(0.25)'; addPackage: 'AutomaticMethodCategorizerOB(0.2)'; install.
"******************************" "WebDevelopment" "******************************" "Kom server" Installer universe addPackage: 'KomHttpServer(7.0.30)'; addPackage: 'KomServices(1.12)'; install.
"Seaside + Scriptaculous" Installer ss project: 'Seaside'; install: 'Seaside2.8a1-tbn.539.mcz'; install: 'Scriptaculous-lr.222.mcz'.
"Shore - DEPRECATED, deber¦€a irse
pr¦ximamente"
Installer ss project: 'ShoreComponents'; install: 'ShoreComponents-3-mb.35.mcz'.
"RSS" Installer ss project: 'rsrss'; install: 'RSRSS2-SW.11.mcz'.
"******************************" "Magma" "******************************" Installer universe addPackage: 'Magma 1.0 server(r40)'; addPackage: 'Magma seasideHelper(2.8.r40.32)'; install.
"******************************" "Tools" "******************************" Installer ss project: 'Cryptography'; install: 'Cryptography-rww.7.mcz'.
Installer universe addPackage: 'MemoryUsage(0.3)'; install. MemoryUsage example.
"******************************" "Cleanups" "******************************" MCFileBasedRepository flushAllCaches. Smalltalk garbageCollect.
On 2008-02-11 16:39:10 -0200, "itsme213" itsme213@hotmail.com said:
Hi Sebastian,
"Sebastian Sastre" ssastre@seaswork.com wrote
I set the script that customizes this devel images to load Magma between the first 5
packages to avoid
those kind of problems.
Could you share that script? I want to try building my own
image too.
Thanks - Sophie
Magma mailing list Magma@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/magma
magma@lists.squeakfoundation.org