Error loading Seaside in Pharo

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

Error loading Seaside in Pharo

Mariano Martinez Peck
Hi guys. I am loading seaside in Pharo 1.2.1 or 1.3 and in both I have the same problem.

GRNumberPrinter >> digitsOf: aNumber base: aBaseInteger
    "Answer the absolute digits of aNumber in the base aBaseInteger."

    | integer stream next |
    integer := aNumber truncated abs.
    integer = 0 ifTrue: [ ^ '0' ].
    stream := WriteStream on: (String new: 10).
    [ integer > 0 ] whileTrue: [
        next := integer quo: aBaseInteger.
        stream nextPut: (characters
            at: 1 + integer - (next * aBaseInteger)).
        integer := next ].
    ^ stream contents reverse


is being called and the instVar 'characters'  is nil.

If I replace stream nextPut: (characters
with
    stream nextPut: ((characters ifNil: NumbersToCharactersLowercase)
   
it seems to "work".

The way I install it is:

  Gofer new squeaksource: 'MetacelloRepository'; package:
'ConfigurationOfSeaside30'; load.
               (Smalltalk at: #ConfigurationOfSeaside30) project latestVersion
load: #(Core)

Any ideas?

Thanks


--
Mariano
http://marianopeck.wordpress.com


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

Re: Error loading Seaside in Pharo

Lukas Renggli
Works for me. The variable is set in GRNumberPrinter>>#initialize.

Are you sure you are using the latest configuration, because there was
a bug recently in the configuration that loaded an insanely old
version of Seaside.

Lukas

On 21 September 2011 14:45, Mariano Martinez Peck <[hidden email]> wrote:

> Hi guys. I am loading seaside in Pharo 1.2.1 or 1.3 and in both I have the
> same problem.
>
> GRNumberPrinter >> digitsOf: aNumber base: aBaseInteger
>     "Answer the absolute digits of aNumber in the base aBaseInteger."
>
>     | integer stream next |
>     integer := aNumber truncated abs.
>     integer = 0 ifTrue: [ ^ '0' ].
>     stream := WriteStream on: (String new: 10).
>     [ integer > 0 ] whileTrue: [
>         next := integer quo: aBaseInteger.
>         stream nextPut: (characters
>             at: 1 + integer - (next * aBaseInteger)).
>         integer := next ].
>     ^ stream contents reverse
>
>
> is being called and the instVar 'characters'  is nil.
>
> If I replace stream nextPut: (characters
> with
>     stream nextPut: ((characters ifNil: NumbersToCharactersLowercase)
>
> it seems to "work".
>
> The way I install it is:
>
>   Gofer new squeaksource: 'MetacelloRepository'; package:
> 'ConfigurationOfSeaside30'; load.
>                (Smalltalk at: #ConfigurationOfSeaside30) project
> latestVersion
> load: #(Core)
>
> Any ideas?
>
> Thanks
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>



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

Re: Error loading Seaside in Pharo

stephane ducasse
In reply to this post by Mariano Martinez Peck
mariano you should let us know the time to load the 62 packages of seaside with fuel :)
Especially with the latest version :)

Stef

On Sep 21, 2011, at 2:45 PM, Mariano Martinez Peck wrote:

> Hi guys. I am loading seaside in Pharo 1.2.1 or 1.3 and in both I have the same problem.
>
> GRNumberPrinter >> digitsOf: aNumber base: aBaseInteger
>     "Answer the absolute digits of aNumber in the base aBaseInteger."
>
>     | integer stream next |
>     integer := aNumber truncated abs.
>     integer = 0 ifTrue: [ ^ '0' ].
>     stream := WriteStream on: (String new: 10).
>     [ integer > 0 ] whileTrue: [
>         next := integer quo: aBaseInteger.
>         stream nextPut: (characters
>             at: 1 + integer - (next * aBaseInteger)).
>         integer := next ].
>     ^ stream contents reverse
>
>
> is being called and the instVar 'characters'  is nil.
>
> If I replace stream nextPut: (characters
> with
>     stream nextPut: ((characters ifNil: NumbersToCharactersLowercase)
>    
> it seems to "work".
>
> The way I install it is:
>
>   Gofer new squeaksource: 'MetacelloRepository'; package:
> 'ConfigurationOfSeaside30'; load.
>                (Smalltalk at: #ConfigurationOfSeaside30) project latestVersion
> load: #(Core)
>
> Any ideas?
>
> Thanks
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>
> _______________________________________________
> 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: Error loading Seaside in Pharo

Mariano Martinez Peck


On Wed, Sep 21, 2011 at 6:13 PM, stephane ducasse <[hidden email]> wrote:
mariano you should let us know the time to load the 62 packages of seaside with fuel :)
Especially with the latest version :)


7 seconds :)

 
Stef

On Sep 21, 2011, at 2:45 PM, Mariano Martinez Peck wrote:

> Hi guys. I am loading seaside in Pharo 1.2.1 or 1.3 and in both I have the same problem.
>
> GRNumberPrinter >> digitsOf: aNumber base: aBaseInteger
>     "Answer the absolute digits of aNumber in the base aBaseInteger."
>
>     | integer stream next |
>     integer := aNumber truncated abs.
>     integer = 0 ifTrue: [ ^ '0' ].
>     stream := WriteStream on: (String new: 10).
>     [ integer > 0 ] whileTrue: [
>         next := integer quo: aBaseInteger.
>         stream nextPut: (characters
>             at: 1 + integer - (next * aBaseInteger)).
>         integer := next ].
>     ^ stream contents reverse
>
>
> is being called and the instVar 'characters'  is nil.
>
> If I replace stream nextPut: (characters
> with
>     stream nextPut: ((characters ifNil: NumbersToCharactersLowercase)
>
> it seems to "work".
>
> The way I install it is:
>
>   Gofer new squeaksource: 'MetacelloRepository'; package:
> 'ConfigurationOfSeaside30'; load.
>                (Smalltalk at: #ConfigurationOfSeaside30) project latestVersion
> load: #(Core)
>
> Any ideas?
>
> Thanks
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>
> _______________________________________________
> 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



--
Mariano
http://marianopeck.wordpress.com


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

Re: Error loading Seaside in Pharo

Sven Van Caekenberghe

On 21 Sep 2011, at 18:55, Mariano Martinez Peck wrote:

> 7 seconds :)

That's incredible !

Looking forward to this.

Sven

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

Re: Error loading Seaside in Pharo

stephane ducasse
In reply to this post by Mariano Martinez Peck

On Sep 21, 2011, at 6:55 PM, Mariano Martinez Peck wrote:

>
>
> On Wed, Sep 21, 2011 at 6:13 PM, stephane ducasse <[hidden email]> wrote:
> mariano you should let us know the time to load the 62 packages of seaside with fuel :)
> Especially with the latest version :)
>
>
> 7 seconds :)

ok so twice faster than in my office.
You rock :)

>
>  
> Stef
>
> On Sep 21, 2011, at 2:45 PM, Mariano Martinez Peck wrote:
>
> > Hi guys. I am loading seaside in Pharo 1.2.1 or 1.3 and in both I have the same problem.
> >
> > GRNumberPrinter >> digitsOf: aNumber base: aBaseInteger
> >     "Answer the absolute digits of aNumber in the base aBaseInteger."
> >
> >     | integer stream next |
> >     integer := aNumber truncated abs.
> >     integer = 0 ifTrue: [ ^ '0' ].
> >     stream := WriteStream on: (String new: 10).
> >     [ integer > 0 ] whileTrue: [
> >         next := integer quo: aBaseInteger.
> >         stream nextPut: (characters
> >             at: 1 + integer - (next * aBaseInteger)).
> >         integer := next ].
> >     ^ stream contents reverse
> >
> >
> > is being called and the instVar 'characters'  is nil.
> >
> > If I replace stream nextPut: (characters
> > with
> >     stream nextPut: ((characters ifNil: NumbersToCharactersLowercase)
> >
> > it seems to "work".
> >
> > The way I install it is:
> >
> >   Gofer new squeaksource: 'MetacelloRepository'; package:
> > 'ConfigurationOfSeaside30'; load.
> >                (Smalltalk at: #ConfigurationOfSeaside30) project latestVersion
> > load: #(Core)
> >
> > Any ideas?
> >
> > Thanks
> >
> >
> > --
> > Mariano
> > http://marianopeck.wordpress.com
> >
> > _______________________________________________
> > 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
>
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>
> _______________________________________________
> 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: Error loading Seaside in Pharo

Mariano Martinez Peck
In reply to this post by Lukas Renggli
Thanks Lukas. In fact, it seems we have a bug somewhere in our side... sorry for the noise.

On Wed, Sep 21, 2011 at 3:30 PM, Lukas Renggli <[hidden email]> wrote:
Works for me. The variable is set in GRNumberPrinter>>#initialize.

Are you sure you are using the latest configuration, because there was
a bug recently in the configuration that loaded an insanely old
version of Seaside.

Lukas

On 21 September 2011 14:45, Mariano Martinez Peck <[hidden email]> wrote:
> Hi guys. I am loading seaside in Pharo 1.2.1 or 1.3 and in both I have the
> same problem.
>
> GRNumberPrinter >> digitsOf: aNumber base: aBaseInteger
>     "Answer the absolute digits of aNumber in the base aBaseInteger."
>
>     | integer stream next |
>     integer := aNumber truncated abs.
>     integer = 0 ifTrue: [ ^ '0' ].
>     stream := WriteStream on: (String new: 10).
>     [ integer > 0 ] whileTrue: [
>         next := integer quo: aBaseInteger.
>         stream nextPut: (characters
>             at: 1 + integer - (next * aBaseInteger)).
>         integer := next ].
>     ^ stream contents reverse
>
>
> is being called and the instVar 'characters'  is nil.
>
> If I replace stream nextPut: (characters
> with
>     stream nextPut: ((characters ifNil: NumbersToCharactersLowercase)
>
> it seems to "work".
>
> The way I install it is:
>
>   Gofer new squeaksource: 'MetacelloRepository'; package:
> 'ConfigurationOfSeaside30'; load.
>                (Smalltalk at: #ConfigurationOfSeaside30) project
> latestVersion
> load: #(Core)
>
> Any ideas?
>
> Thanks
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>



--
Lukas Renggli
www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--
Mariano
http://marianopeck.wordpress.com


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside