Monticello - Non Boolean error

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

Monticello - Non Boolean error

flebber
I was trying to load soup image using monticello browser. However I
receive an error when pressing open to load "soup"

It is a non boolean error. Not sure how that relates to what I am
doing. I used two sets of info when trying to load soup.

Registration 1
MCHttpRepository
   location: 'http://www.squeaksource.com/Soup'
   user: ''
   password: ''

Registration 2
MCHttpRepository
   location: 'http://www.squeaksource.com/Soup'
   user: 'squeak'
   password: 'squeak'

Here is a screenshot

[IMG]<a href="http://i988.photobucket.com/albums/af10/Sayth_Renshaw/SoupSqueak.png[/IMG]" target="_blank" style="color: rgb(0, 0, 204); ">http://i988.photobucket.com/albums/af10/Sayth_Renshaw/SoupSqueak.png[/IMG]

It must relate to this

mustBeBooleanIn: context
       "context is the where the non-boolean error occurred. Rewind context
to before jump then raise error."

       | proceedValue |
       context skipBackBeforeJump.
       proceedValue := NonBooleanReceiver new
               object: self;
               signal: 'proceed for truth.'.
       ^ proceedValue ~~ false

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

Re: Monticello - Non Boolean error

Levente Uzonyi-2
On Tue, 12 Oct 2010, Sayth Renshaw wrote:

> I was trying to load soup image using monticello browser. However I
> receive an error when pressing open to load "soup"
>
> It is a non boolean error. Not sure how that relates to what I am
> doing. I used two sets of info when trying to load soup.
>
> Registration 1
> MCHttpRepository
>   location: 'http://www.squeaksource.com/Soup'
>   user: ''
>   password: ''
>
> Registration 2
> MCHttpRepository
>   location: 'http://www.squeaksource.com/Soup'
>   user: 'squeak'
>   password: 'squeak'
>
> Here is a screenshot
>
> [IMG]
> http://i988.photobucket.com/albums/af10/Sayth_Renshaw/SoupSqueak.png[/IMG]

If this doesn't happen consistently, then just ignore the error.
HTTPSocket >> #httpGetDocument:args:accept:request: is one of the worst
methods in Squeak 4.1. It was replaced in 4.2 alpha with a much simpler.

>
> It must relate to this
>
> mustBeBooleanIn: context
>       "context is the where the non-boolean error occurred. Rewind context
> to before jump then raise error."
>
>       | proceedValue |
>       context skipBackBeforeJump.
>       proceedValue := NonBooleanReceiver new
>               object: self;
>               signal: 'proceed for truth.'.
>       ^ proceedValue ~~ false
>

It's related, but this isn't where the error occured. You get this error
when you try to send #ifTrue: #ifFalse: or #ifTrue:ifFalse: to a
non-boolean object.


Levente
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Monticello - Non Boolean error

Tobias Pape
Am 2010-10-12 um 05:11 schrieb Levente Uzonyi:

> On Tue, 12 Oct 2010, Sayth Renshaw wrote:
>
>> I was trying to load soup image using monticello browser. However I
>> receive an error when pressing open to load "soup"
>>
>> It is a non boolean error. Not sure how that relates to what I am
>> doing. I used two sets of info when trying to load soup.
>>
>> Registration 1
>> MCHttpRepository
>>  location: 'http://www.squeaksource.com/Soup'
>>  user: ''
>>  password: ''
>>
>> Registration 2
>> MCHttpRepository
>>  location: 'http://www.squeaksource.com/Soup'
>>  user: 'squeak'
>>  password: 'squeak'
>>
>> Here is a screenshot
>>
>> [IMG]
>> http://i988.photobucket.com/albums/af10/Sayth_Renshaw/SoupSqueak.png[/IMG]
>
> If this doesn't happen consistently, then just ignore the error. HTTPSocket >> #httpGetDocument:args:accept:request: is one of the worst methods in Squeak 4.1. It was replaced in 4.2 alpha with a much simpler.


For the record:
This error constantly pops up if you misspell the
repo-name (especially uppercase/lowercase-misspellings)
(not in 4.2, as you stated, of course).
  This can be a show stopper for new users.

so Long,
        -Tobias_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

new browser doesn't color code for easy reading

Jonathan Wright-2

I just installed seaside to my squeak image.  However, it seemed to
have changed/upgraded my class browser.  I love some of the new
features, like chasing variables for instance.  But it seems to have
taken away the feature of coloring the variables and methods for easier
reading.  I looked around for a preference but couldn't find one to
set it back. Is there a way to change this feature in the browser?

Any help would be appreciated!

Best Regards,
Jonathan
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: new browser doesn't color code for easy reading

Tobias Pape
Hello Jonathan

Am 2010-10-15 um 06:02 schrieb Jonathan Wright:
>
> I just installed seaside to my squeak image.  

Which way did you do it? And when?

> However, it seemed to
> have changed/upgraded my class browser.  I love some of the new
> features, like chasing variables for instance.  

Yes, some Seaside tools depend on the OmniBrowser Framework,
and the OmniBrowser is installed as Default Browser subsequently to
the Install.

> But it seems to have
> taken away the feature of coloring the variables and methods for easier
> reading.  I looked around for a preference but couldn't find one to
> set it back. Is there a way to change this feature in the browser?


If you installed using Metacello or the "Installer" script (look
for either word in the Installation method you used), you can use the
Metacello-way _again_ since there was a small update lately which
corrected the loading of some packages and Shout, the syntax highlighter
(or code colouring, as you call it), should load correctly now.

Do It:

"Omnibrowser, including Refactoring engine"
Installer squeaksource
        project: 'MetacelloRepository';
        install: 'ConfigurationOfOmniBrowser'.
(Smalltalk at: #ConfigurationOfOmniBrowser) project lastVersion load: #( Dev ).

Note that lastVersion may refer to a non-release version (beta/development…), while latestVersion
would indicate the latest release version.

So Long,
        -Tobias_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: new browser doesn't color code for easy reading

Jonathan Wright-2
Hello Tobias,

> Hello Jonathan
>
> Am 2010-10-15 um 06:02 schrieb Jonathan Wright:
> >
> > I just installed seaside to my squeak image.  
>
> Which way did you do it? And when?

I got the default 4.1 image and added the metacello repository to
monticello per a youtube video. Then I ran ConfigurationOfSeaside30
load.  I did this last night.

>
> > However, it seemed to
> > have changed/upgraded my class browser.  I love some of the new
> > features, like chasing variables for instance.  
>
> Yes, some Seaside tools depend on the OmniBrowser Framework,
> and the OmniBrowser is installed as Default Browser subsequently to
> the Install.
>
> > But it seems to have
> > taken away the feature of coloring the variables and methods for
> > easier reading.  I looked around for a preference but couldn't find
> > one to set it back. Is there a way to change this feature in the
> > browser?
>
>
> If you installed using Metacello or the "Installer" script (look
> for either word in the Installation method you used), you can use the
> Metacello-way _again_ since there was a small update lately which
> corrected the loading of some packages and Shout, the syntax
> highlighter (or code colouring, as you call it), should load
> correctly now.
>
> Do It:
>
> "Omnibrowser, including Refactoring engine"
> Installer squeaksource
> project: 'MetacelloRepository';
> install: 'ConfigurationOfOmniBrowser'.
> (Smalltalk at: #ConfigurationOfOmniBrowser) project lastVersion load:
> #( Dev ).
>
> Note that lastVersion may refer to a non-release version
> (beta/development…), while latestVersion would indicate the latest
> release version.
>
> So Long,
> -Tobias_______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>

Thank you, your suggestion worked perfectly!

I've been trying to understand the #( Dev ) reference in the statement
you provided. I assume it would be inappropriate to ask about
a Smalltalk question like that in this mailing list?  If so, can you
point me to a newsgroup/mailing list for Smalltalk that would be
familiar with squeak?

I really appreciate all your help and your time!

Best Regards,
Jonathan
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: new browser doesn't color code for easy reading

Ralph Johnson
Smalltalk questions are extremely appropriate here.

(Smalltalk at: #ConfigurationOfOmniBrowser) project lastVersion load:  #( Dev )

The  #( Dev ) in this context is a literal array that contains one element, the symbol #Dev.   I'm not sure why #Dev is the thing that the last version of the ConfigurationOfOmniBrowser project is supposed to load, but it is certainly a legal Smalltalk expression.

-Ralph Johnson

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

Re: new browser doesn't color code for easy reading

Tobias Pape
Am 2010-10-16 um 01:24 schrieb Ralph Johnson:
>
> Smalltalk questions are extremely appropriate here.
>
> (Smalltalk at: #ConfigurationOfOmniBrowser) project lastVersion load:  #( Dev )
>
> The  #( Dev ) in this context is a literal array that contains one element, the symbol #Dev.   I'm not sure why #Dev is the thing that the last version of the ConfigurationOfOmniBrowser project is supposed to load, but it is certainly a legal Smalltalk expression.

Hi,

In the configuration for Omnibrowser, there is a 'group of packages' defined,
identified by the symbol #Dev. It loads more packages, e.g. shout, than the group
#default that is loaded when you say
> (Smalltalk at: #ConfigurationOfOmniBrowser) project lastVersion load
. (it is semantically equivalent to
> (Smalltalk at: #ConfigurationOfOmniBrowser) project lastVersion load: #(default)

#load: expects an array of group symbols to be loaded.

So Long
        -Tobias_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: new browser doesn't color code for easy reading

LawsonEnglish
In reply to this post by Tobias Pape
  On 10/15/10 5:09 AM, Tobias Pape wrote:

> [...]
> If you installed using Metacello or the "Installer" script (look
> for either word in the Installation method you used), you can use the
> Metacello-way _again_ since there was a small update lately which
> corrected the loading of some packages and Shout, the syntax highlighter
> (or code colouring, as you call it), should load correctly now.
>
> Do It:
>
> "Omnibrowser, including Refactoring engine"
> Installer squeaksource
> project: 'MetacelloRepository';
> install: 'ConfigurationOfOmniBrowser'.
> (Smalltalk at: #ConfigurationOfOmniBrowser) project lastVersion load: #( Dev ).
>
> Note that lastVersion may refer to a non-release version (beta/development…), while latestVersion
> would indicate the latest release version.
>

Thanks for reminding me of how to do that properly. One thing I have
noticed, however, is that different classes seem to evoke different
behaviors from the same browser. One obvious example is that after doing
the above Installer script, the browsing PRDistribution in package
Pier-Setup, evokes a pane menu for methods. Likewise with its sub-class,
PREventDistribution.


HOWEVER, with PRBookDistribution, which is another sub-class of
PRDIstribution, the browser does NOT provide a pane menu for methods.
There's no doubt some reason why this happens but it is somewhat odd
since the same pop-down menu is available for each method in the method
pane, regardless of which class is being browsed...



Lawson
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners