pharo-users@lists.pharo.org

Any question about pharo is welcome

View all threads

TinyBlog book

D
danhunfeldz@mail.com
Sun, Feb 14, 2021 4:27 PM

Using Pharo 8.0 64-bit, I ran this from the TinyBlog book:

Metacello new baseline:'TinyBlog';

repository: 'github://LucFabresse/TinyBlog/src';

onConflict: [ :ex | ex useLoaded ];

load.

When I load the page and login as ‘admin’ and password, the page displays:

Seaside Walkback

SubscriptOutOfBounds: 1

Debug Full Stack

Stack Trace

  1. thisContextOrderedCollection(Object)>>errorSubscriptBounds:selfan OrderedCollection()

    index1

  2. thisContextOrderedCollection>>at:selfan OrderedCollection()

    anInteger1indexnil

  3. thisContextOrderedCollection(SequenceableCollection)>>firstselfan OrderedCollection()

  4. thisContextOrderedCollection(SequenceableCollection)>>anyOneselfan OrderedCollection()

  5. thisContextTBPostsReport class>>from:selfTBPostsReport

    aBloga TBBlogreportnilblogPostsnil

Why is that, and what is the correction fir it?  Thanks

Using Pharo 8.0 64-bit, I ran this from the TinyBlog book: `Metacello new baseline:'TinyBlog'; ` `repository: 'github://LucFabresse/TinyBlog/src'; ` `onConflict: [ :ex | ex useLoaded ];` `load.` When I load the page and login as ‘admin’ and password, the page displays: # Seaside Walkback ## SubscriptOutOfBounds: 1 [Debug](http://127.0.0.1:8080/TinyBlog?_s=AhLXaZ_NoKZ6CCc6&_k=KmiYK_nGojNSh9dO&1 'Open a debugger in your IDE and block until you hit "Proceed"') [Full Stack](http://127.0.0.1:8080/TinyBlog?_s=AhLXaZ_NoKZ6CCc6&_k=KmiYK_nGojNSh9dO&2) ### Stack Trace 1. [thisContext](http://127.0.0.1:8080/TinyBlog?_s=AhLXaZ_NoKZ6CCc6&_k=KmiYK_nGojNSh9dO&3)OrderedCollection(Object)>>errorSubscriptBounds:[self](http://127.0.0.1:8080/TinyBlog?_s=AhLXaZ_NoKZ6CCc6&_k=KmiYK_nGojNSh9dO&4)an OrderedCollection() [index](http://127.0.0.1:8080/TinyBlog?_s=AhLXaZ_NoKZ6CCc6&_k=KmiYK_nGojNSh9dO&5)1 2. [thisContext](http://127.0.0.1:8080/TinyBlog?_s=AhLXaZ_NoKZ6CCc6&_k=KmiYK_nGojNSh9dO&6)OrderedCollection>>at:[self](http://127.0.0.1:8080/TinyBlog?_s=AhLXaZ_NoKZ6CCc6&_k=KmiYK_nGojNSh9dO&7)an OrderedCollection() [anInteger](http://127.0.0.1:8080/TinyBlog?_s=AhLXaZ_NoKZ6CCc6&_k=KmiYK_nGojNSh9dO&8)1[index](http://127.0.0.1:8080/TinyBlog?_s=AhLXaZ_NoKZ6CCc6&_k=KmiYK_nGojNSh9dO&9)nil 3. [thisContext](http://127.0.0.1:8080/TinyBlog?_s=AhLXaZ_NoKZ6CCc6&_k=KmiYK_nGojNSh9dO&10)OrderedCollection(SequenceableCollection)>>first[self](http://127.0.0.1:8080/TinyBlog?_s=AhLXaZ_NoKZ6CCc6&_k=KmiYK_nGojNSh9dO&11)an OrderedCollection() 4. [thisContext](http://127.0.0.1:8080/TinyBlog?_s=AhLXaZ_NoKZ6CCc6&_k=KmiYK_nGojNSh9dO&12)OrderedCollection(SequenceableCollection)>>anyOne[self](http://127.0.0.1:8080/TinyBlog?_s=AhLXaZ_NoKZ6CCc6&_k=KmiYK_nGojNSh9dO&13)an OrderedCollection() 5. [thisContext](http://127.0.0.1:8080/TinyBlog?_s=AhLXaZ_NoKZ6CCc6&_k=KmiYK_nGojNSh9dO&14)TBPostsReport class>>from:[self](http://127.0.0.1:8080/TinyBlog?_s=AhLXaZ_NoKZ6CCc6&_k=KmiYK_nGojNSh9dO&15)TBPostsReport [aBlog](http://127.0.0.1:8080/TinyBlog?_s=AhLXaZ_NoKZ6CCc6&_k=KmiYK_nGojNSh9dO&16)a TBBlog[report](http://127.0.0.1:8080/TinyBlog?_s=AhLXaZ_NoKZ6CCc6&_k=KmiYK_nGojNSh9dO&17)nil[blogPosts](http://127.0.0.1:8080/TinyBlog?_s=AhLXaZ_NoKZ6CCc6&_k=KmiYK_nGojNSh9dO&18)nil Why is that, and what is the correction fir it? Thanks
D
danhunfeldz@mail.com
Sun, Feb 14, 2021 4:29 PM

Clicking on debug, it return in Pharo:

errorSubscriptBounds: index

"Create an error notification that an improper integer was used as an index."

SubscriptOutOfBounds signalFor: index
Clicking on debug, it return in Pharo: errorSubscriptBounds: index "Create an error notification that an improper integer was used as an index." SubscriptOutOfBounds signalFor: index