Glamour problems

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

Glamour problems

jannik laval
Hi guys,

I am testing the source code of the Glamour chapter. I have 2 problems:

- This configuration doesn't load:

------
Gofer new
  smalltalkhubUser: 'Moose' project: 'Glamour';
  package: 'ConfigurationOfGlamour';
  load.
(Smalltalk at: #ConfigurationOfGlamour) perform: #loadDefault.
------

- The following example source code doesn't work in Moose4.8 but works on Moose 4.7:

------
| browser |
browser := GLMFinder new
  variableSizePanes;
  title: 'Find your file';
  yourself.

browser show: [:a |
        a list
  when: #isDirectory;
  display: [:each | [each children sorted]
                        on: Exception
                        do: [Array new]];
  format: #basenameWithIndicator].

browser show: [:a |
    a text
  when: #isFile;
  display: [:entry | [entry readStream contents]
                            on: Exception
                        do:['Can''t display the content of this file']]].
       
browser openOn: FileSystem disk root.
------

Can anyone help me to fix that ?
Cheers,
Jannik
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Glamour problems

Andrei Chis
Hi Jannik,

The example fails because of this error: FileReference(Object)>>doesNotUnderstand: #other

It seems there is a bug when comparing FileReferences.
For example 'FileSystem disk root children sorted' fails both in Pharo 2 and Pharo 3.

I'd send an email to pharo-dev.

Cheers,
Andrei


On Sat, Jul 6, 2013 at 4:30 PM, jannik.laval <[hidden email]> wrote:
Hi guys,

I am testing the source code of the Glamour chapter. I have 2 problems:

- This configuration doesn't load:

------
Gofer new
  smalltalkhubUser: 'Moose' project: 'Glamour';
  package: 'ConfigurationOfGlamour';
  load.
(Smalltalk at: #ConfigurationOfGlamour) perform: #loadDefault.
------

- The following example source code doesn't work in Moose4.8 but works on Moose 4.7:

------
| browser |
browser := GLMFinder new
  variableSizePanes;
  title: 'Find your file';
  yourself.

browser show: [:a |
        a list
                when: #isDirectory;
                display: [:each | [each children sorted]
                                on: Exception
                                do: [Array new]];
                format: #basenameWithIndicator].

browser show: [:a |
    a text
                when: #isFile;
                display: [:entry | [entry readStream contents]
                            on: Exception
                                do:['Can''t display the content of this file']]].

browser openOn: FileSystem disk root.
------

Can anyone help me to fix that ?
Cheers,
Jannik
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Glamour problems

Andrei Chis
Also I'd change the example as bellow, as now you should only call show: once on a finder.

| browser |
browser := GLMFinder new
  variableSizePanes;
  title: 'Find your file';
  yourself.

browser show: [:a |
        a list
                when: #isDirectory;
                display: [:each | [each children sorted]
                                on: Exception
                                do: [Array new]];
                format: #basenameWithIndicator.
        a text
                when: #isFile;
                display: [:entry | [entry readStream contents]
                            on: Exception
                                do:['Can''t display the content of this file'] ] ].

browser openOn: FileSystem disk root.


Andrei




On Sat, Jul 6, 2013 at 5:43 PM, Andrei Vasile Chis <[hidden email]> wrote:
Hi Jannik,

The example fails because of this error: FileReference(Object)>>doesNotUnderstand: #other

It seems there is a bug when comparing FileReferences.
For example 'FileSystem disk root children sorted' fails both in Pharo 2 and Pharo 3.

I'd send an email to pharo-dev.

Cheers,
Andrei


On Sat, Jul 6, 2013 at 4:30 PM, jannik.laval <[hidden email]> wrote:
Hi guys,

I am testing the source code of the Glamour chapter. I have 2 problems:

- This configuration doesn't load:

------
Gofer new
  smalltalkhubUser: 'Moose' project: 'Glamour';
  package: 'ConfigurationOfGlamour';
  load.
(Smalltalk at: #ConfigurationOfGlamour) perform: #loadDefault.
------

- The following example source code doesn't work in Moose4.8 but works on Moose 4.7:

------
| browser |
browser := GLMFinder new
  variableSizePanes;
  title: 'Find your file';
  yourself.

browser show: [:a |
        a list
                when: #isDirectory;
                display: [:each | [each children sorted]
                                on: Exception
                                do: [Array new]];
                format: #basenameWithIndicator].

browser show: [:a |
    a text
                when: #isFile;
                display: [:entry | [entry readStream contents]
                            on: Exception
                                do:['Can''t display the content of this file']]].

browser openOn: FileSystem disk root.
------

Can anyone help me to fix that ?
Cheers,
Jannik
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Glamour problems

jannik laval
Thank you Andrei,

I removed the sorted, like that, it works fine:

-----
| browser |
browser := GLMFinder new
  variableSizePanes;
  title: 'Find your file';
  yourself.

browser show: [:a |
        a list
                when: #isDirectory;
                display: [:each | [each children ]
                                on: Exception
                                do: [Array new]];
                format: #basenameWithIndicator.
        a text
                when: #isFile;
                display: [:entry | [entry readStream contents]
                            on: Exception
                                do:['Can''t display the content of this file'] ] ].

browser openOn: FileSystem disk root.
-----

Cheers,
Jannik

On Jul 6, 2013, at 5:48 PM, Andrei Vasile Chis <[hidden email]> wrote:

Also I'd change the example as bellow, as now you should only call show: once on a finder.

| browser |
browser := GLMFinder new
  variableSizePanes;
  title: 'Find your file';
  yourself.

browser show: [:a |
        a list
                when: #isDirectory;
                display: [:each | [each children sorted]
                                on: Exception
                                do: [Array new]];
                format: #basenameWithIndicator.
        a text
                when: #isFile;
                display: [:entry | [entry readStream contents]
                            on: Exception
                                do:['Can''t display the content of this file'] ] ].

browser openOn: FileSystem disk root.


Andrei




On Sat, Jul 6, 2013 at 5:43 PM, Andrei Vasile Chis <[hidden email]> wrote:
Hi Jannik,

The example fails because of this error: FileReference(Object)>>doesNotUnderstand: #other

It seems there is a bug when comparing FileReferences.
For example 'FileSystem disk root children sorted' fails both in Pharo 2 and Pharo 3.

I'd send an email to pharo-dev.

Cheers,
Andrei


On Sat, Jul 6, 2013 at 4:30 PM, jannik.laval <[hidden email]> wrote:
Hi guys,

I am testing the source code of the Glamour chapter. I have 2 problems:

- This configuration doesn't load:

------
Gofer new
  smalltalkhubUser: 'Moose' project: 'Glamour';
  package: 'ConfigurationOfGlamour';
  load.
(Smalltalk at: #ConfigurationOfGlamour) perform: #loadDefault.
------

- The following example source code doesn't work in Moose4.8 but works on Moose 4.7:

------
| browser |
browser := GLMFinder new
  variableSizePanes;
  title: 'Find your file';
  yourself.

browser show: [:a |
        a list
                when: #isDirectory;
                display: [:each | [each children sorted]
                                on: Exception
                                do: [Array new]];
                format: #basenameWithIndicator].

browser show: [:a |
    a text
                when: #isFile;
                display: [:entry | [entry readStream contents]
                            on: Exception
                                do:['Can''t display the content of this file']]].

browser openOn: FileSystem disk root.
------

Can anyone help me to fix that ?
Cheers,
Jannik
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Glamour problems

Tudor Girba-2
Hi Jannik,

Andrei was faster than me :).

In your mail you seem to suggest that the example comes from the book. Where did you see it in the book?

As for loading the configuration, what exactly does not work? loadDefault now actually does a loadDevelopment which is what is loaded in the jenkins job:
https://ci.inria.fr/moose/job/glamour/

Cheers,
Doru


On Jul 6, 2013, at 8:05 PM, "jannik.laval" <[hidden email]> wrote:

> Thank you Andrei,
>
> I removed the sorted, like that, it works fine:
>
> -----
> | browser |
> browser := GLMFinder new
>   variableSizePanes;
>   title: 'Find your file';
>   yourself.
>
> browser show: [:a |
>         a list
>                 when: #isDirectory;
>                 display: [:each | [each children ]
>                                 on: Exception
>                                 do: [Array new]];
>                 format: #basenameWithIndicator.
>         a text
>                 when: #isFile;
>                 display: [:entry | [entry readStream contents]
>                             on: Exception
>                                 do:['Can''t display the content of this file'] ] ].
>
> browser openOn: FileSystem disk root.
> -----
>
> Cheers,
> Jannik
>
> On Jul 6, 2013, at 5:48 PM, Andrei Vasile Chis <[hidden email]> wrote:
>
>> Also I'd change the example as bellow, as now you should only call show: once on a finder.
>>
>> | browser |
>> browser := GLMFinder new
>>   variableSizePanes;
>>   title: 'Find your file';
>>   yourself.
>>
>> browser show: [:a |
>>         a list
>>                 when: #isDirectory;
>>                 display: [:each | [each children sorted]
>>                                 on: Exception
>>                                 do: [Array new]];
>>                 format: #basenameWithIndicator.
>>         a text
>>                 when: #isFile;
>>                 display: [:entry | [entry readStream contents]
>>                             on: Exception
>>                                 do:['Can''t display the content of this file'] ] ].
>>
>> browser openOn: FileSystem disk root.
>>
>>
>> Andrei
>>
>>
>>
>>
>> On Sat, Jul 6, 2013 at 5:43 PM, Andrei Vasile Chis <[hidden email]> wrote:
>> Hi Jannik,
>>
>> The example fails because of this error: FileReference(Object)>>doesNotUnderstand: #other
>>
>> It seems there is a bug when comparing FileReferences.
>> For example 'FileSystem disk root children sorted' fails both in Pharo 2 and Pharo 3.
>>
>> I'd send an email to pharo-dev.
>>
>> Cheers,
>> Andrei
>>
>>
>> On Sat, Jul 6, 2013 at 4:30 PM, jannik.laval <[hidden email]> wrote:
>> Hi guys,
>>
>> I am testing the source code of the Glamour chapter. I have 2 problems:
>>
>> - This configuration doesn't load:
>>
>> ------
>> Gofer new
>>   smalltalkhubUser: 'Moose' project: 'Glamour';
>>   package: 'ConfigurationOfGlamour';
>>   load.
>> (Smalltalk at: #ConfigurationOfGlamour) perform: #loadDefault.
>> ------
>>
>> - The following example source code doesn't work in Moose4.8 but works on Moose 4.7:
>>
>> ------
>> | browser |
>> browser := GLMFinder new
>>   variableSizePanes;
>>   title: 'Find your file';
>>   yourself.
>>
>> browser show: [:a |
>>         a list
>>                 when: #isDirectory;
>>                 display: [:each | [each children sorted]
>>                                 on: Exception
>>                                 do: [Array new]];
>>                 format: #basenameWithIndicator].
>>
>> browser show: [:a |
>>     a text
>>                 when: #isFile;
>>                 display: [:entry | [entry readStream contents]
>>                             on: Exception
>>                                 do:['Can''t display the content of this file']]].
>>
>> browser openOn: FileSystem disk root.
>> ------
>>
>> Can anyone help me to fix that ?
>> Cheers,
>> Jannik
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"Be rather willing to give than demanding to get."




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Glamour problems

jannik laval
Hi Doru,

On Jul 6, 2013, at 9:15 PM, Tudor Girba <[hidden email]> wrote:

> Hi Jannik,
>
> Andrei was faster than me :).
>
> In your mail you seem to suggest that the example comes from the book. Where did you see it in the book?

This is the first example of the chapter.
I changed it with the working version.

>
> As for loading the configuration, what exactly does not work? loadDefault now actually does a loadDevelopment which is what is loaded in the jenkins job:
> https://ci.inria.fr/moose/job/glamour/

Ok, I retry and it works now.
So, no more problem.

Cheers,
Jannik

>
> Cheers,
> Doru
>
>
> On Jul 6, 2013, at 8:05 PM, "jannik.laval" <[hidden email]> wrote:
>
>> Thank you Andrei,
>>
>> I removed the sorted, like that, it works fine:
>>
>> -----
>> | browser |
>> browser := GLMFinder new
>>  variableSizePanes;
>>  title: 'Find your file';
>>  yourself.
>>
>> browser show: [:a |
>>        a list
>>                when: #isDirectory;
>>                display: [:each | [each children ]
>>                                on: Exception
>>                                do: [Array new]];
>>                format: #basenameWithIndicator.
>>        a text
>>                when: #isFile;
>>                display: [:entry | [entry readStream contents]
>>                            on: Exception
>>                                do:['Can''t display the content of this file'] ] ].
>>
>> browser openOn: FileSystem disk root.
>> -----
>>
>> Cheers,
>> Jannik
>>
>> On Jul 6, 2013, at 5:48 PM, Andrei Vasile Chis <[hidden email]> wrote:
>>
>>> Also I'd change the example as bellow, as now you should only call show: once on a finder.
>>>
>>> | browser |
>>> browser := GLMFinder new
>>>  variableSizePanes;
>>>  title: 'Find your file';
>>>  yourself.
>>>
>>> browser show: [:a |
>>>        a list
>>>                when: #isDirectory;
>>>                display: [:each | [each children sorted]
>>>                                on: Exception
>>>                                do: [Array new]];
>>>                format: #basenameWithIndicator.
>>>        a text
>>>                when: #isFile;
>>>                display: [:entry | [entry readStream contents]
>>>                            on: Exception
>>>                                do:['Can''t display the content of this file'] ] ].
>>>
>>> browser openOn: FileSystem disk root.
>>>
>>>
>>> Andrei
>>>
>>>
>>>
>>>
>>> On Sat, Jul 6, 2013 at 5:43 PM, Andrei Vasile Chis <[hidden email]> wrote:
>>> Hi Jannik,
>>>
>>> The example fails because of this error: FileReference(Object)>>doesNotUnderstand: #other
>>>
>>> It seems there is a bug when comparing FileReferences.
>>> For example 'FileSystem disk root children sorted' fails both in Pharo 2 and Pharo 3.
>>>
>>> I'd send an email to pharo-dev.
>>>
>>> Cheers,
>>> Andrei
>>>
>>>
>>> On Sat, Jul 6, 2013 at 4:30 PM, jannik.laval <[hidden email]> wrote:
>>> Hi guys,
>>>
>>> I am testing the source code of the Glamour chapter. I have 2 problems:
>>>
>>> - This configuration doesn't load:
>>>
>>> ------
>>> Gofer new
>>>  smalltalkhubUser: 'Moose' project: 'Glamour';
>>>  package: 'ConfigurationOfGlamour';
>>>  load.
>>> (Smalltalk at: #ConfigurationOfGlamour) perform: #loadDefault.
>>> ------
>>>
>>> - The following example source code doesn't work in Moose4.8 but works on Moose 4.7:
>>>
>>> ------
>>> | browser |
>>> browser := GLMFinder new
>>>  variableSizePanes;
>>>  title: 'Find your file';
>>>  yourself.
>>>
>>> browser show: [:a |
>>>        a list
>>>                when: #isDirectory;
>>>                display: [:each | [each children sorted]
>>>                                on: Exception
>>>                                do: [Array new]];
>>>                format: #basenameWithIndicator].
>>>
>>> browser show: [:a |
>>>    a text
>>>                when: #isFile;
>>>                display: [:entry | [entry readStream contents]
>>>                            on: Exception
>>>                                do:['Can''t display the content of this file']]].
>>>
>>> browser openOn: FileSystem disk root.
>>> ------
>>>
>>> Can anyone help me to fix that ?
>>> Cheers,
>>> Jannik
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> www.tudorgirba.com
>
> "Be rather willing to give than demanding to get."
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Glamour problems

jannik laval
Hum, I sent the mail too fast….
Ok, about the book: this is not an example of the moose book, but one in the Deep Into Pharo.

Cheers,
Jannik

On Jul 6, 2013, at 9:48 PM, "jannik.laval" <[hidden email]> wrote:

> Hi Doru,
>
> On Jul 6, 2013, at 9:15 PM, Tudor Girba <[hidden email]> wrote:
>
>> Hi Jannik,
>>
>> Andrei was faster than me :).
>>
>> In your mail you seem to suggest that the example comes from the book. Where did you see it in the book?
>
> This is the first example of the chapter.
> I changed it with the working version.
>
>>
>> As for loading the configuration, what exactly does not work? loadDefault now actually does a loadDevelopment which is what is loaded in the jenkins job:
>> https://ci.inria.fr/moose/job/glamour/
>
> Ok, I retry and it works now.
> So, no more problem.
>
> Cheers,
> Jannik
>
>>
>> Cheers,
>> Doru
>>
>>
>> On Jul 6, 2013, at 8:05 PM, "jannik.laval" <[hidden email]> wrote:
>>
>>> Thank you Andrei,
>>>
>>> I removed the sorted, like that, it works fine:
>>>
>>> -----
>>> | browser |
>>> browser := GLMFinder new
>>> variableSizePanes;
>>> title: 'Find your file';
>>> yourself.
>>>
>>> browser show: [:a |
>>>       a list
>>>               when: #isDirectory;
>>>               display: [:each | [each children ]
>>>                               on: Exception
>>>                               do: [Array new]];
>>>               format: #basenameWithIndicator.
>>>       a text
>>>               when: #isFile;
>>>               display: [:entry | [entry readStream contents]
>>>                           on: Exception
>>>                               do:['Can''t display the content of this file'] ] ].
>>>
>>> browser openOn: FileSystem disk root.
>>> -----
>>>
>>> Cheers,
>>> Jannik
>>>
>>> On Jul 6, 2013, at 5:48 PM, Andrei Vasile Chis <[hidden email]> wrote:
>>>
>>>> Also I'd change the example as bellow, as now you should only call show: once on a finder.
>>>>
>>>> | browser |
>>>> browser := GLMFinder new
>>>> variableSizePanes;
>>>> title: 'Find your file';
>>>> yourself.
>>>>
>>>> browser show: [:a |
>>>>       a list
>>>>               when: #isDirectory;
>>>>               display: [:each | [each children sorted]
>>>>                               on: Exception
>>>>                               do: [Array new]];
>>>>               format: #basenameWithIndicator.
>>>>       a text
>>>>               when: #isFile;
>>>>               display: [:entry | [entry readStream contents]
>>>>                           on: Exception
>>>>                               do:['Can''t display the content of this file'] ] ].
>>>>
>>>> browser openOn: FileSystem disk root.
>>>>
>>>>
>>>> Andrei
>>>>
>>>>
>>>>
>>>>
>>>> On Sat, Jul 6, 2013 at 5:43 PM, Andrei Vasile Chis <[hidden email]> wrote:
>>>> Hi Jannik,
>>>>
>>>> The example fails because of this error: FileReference(Object)>>doesNotUnderstand: #other
>>>>
>>>> It seems there is a bug when comparing FileReferences.
>>>> For example 'FileSystem disk root children sorted' fails both in Pharo 2 and Pharo 3.
>>>>
>>>> I'd send an email to pharo-dev.
>>>>
>>>> Cheers,
>>>> Andrei
>>>>
>>>>
>>>> On Sat, Jul 6, 2013 at 4:30 PM, jannik.laval <[hidden email]> wrote:
>>>> Hi guys,
>>>>
>>>> I am testing the source code of the Glamour chapter. I have 2 problems:
>>>>
>>>> - This configuration doesn't load:
>>>>
>>>> ------
>>>> Gofer new
>>>> smalltalkhubUser: 'Moose' project: 'Glamour';
>>>> package: 'ConfigurationOfGlamour';
>>>> load.
>>>> (Smalltalk at: #ConfigurationOfGlamour) perform: #loadDefault.
>>>> ------
>>>>
>>>> - The following example source code doesn't work in Moose4.8 but works on Moose 4.7:
>>>>
>>>> ------
>>>> | browser |
>>>> browser := GLMFinder new
>>>> variableSizePanes;
>>>> title: 'Find your file';
>>>> yourself.
>>>>
>>>> browser show: [:a |
>>>>       a list
>>>>               when: #isDirectory;
>>>>               display: [:each | [each children sorted]
>>>>                               on: Exception
>>>>                               do: [Array new]];
>>>>               format: #basenameWithIndicator].
>>>>
>>>> browser show: [:a |
>>>>   a text
>>>>               when: #isFile;
>>>>               display: [:entry | [entry readStream contents]
>>>>                           on: Exception
>>>>                               do:['Can''t display the content of this file']]].
>>>>
>>>> browser openOn: FileSystem disk root.
>>>> ------
>>>>
>>>> Can anyone help me to fix that ?
>>>> Cheers,
>>>> Jannik
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> www.tudorgirba.com
>>
>> "Be rather willing to give than demanding to get."
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Glamour problems

Tudor Girba-2
The example is wrong, then :)

Doru


On Jul 6, 2013, at 9:49 PM, "jannik.laval" <[hidden email]> wrote:

> Hum, I sent the mail too fast….
> Ok, about the book: this is not an example of the moose book, but one in the Deep Into Pharo.
>
> Cheers,
> Jannik
>
> On Jul 6, 2013, at 9:48 PM, "jannik.laval" <[hidden email]> wrote:
>
>> Hi Doru,
>>
>> On Jul 6, 2013, at 9:15 PM, Tudor Girba <[hidden email]> wrote:
>>
>>> Hi Jannik,
>>>
>>> Andrei was faster than me :).
>>>
>>> In your mail you seem to suggest that the example comes from the book. Where did you see it in the book?
>>
>> This is the first example of the chapter.
>> I changed it with the working version.
>>
>>>
>>> As for loading the configuration, what exactly does not work? loadDefault now actually does a loadDevelopment which is what is loaded in the jenkins job:
>>> https://ci.inria.fr/moose/job/glamour/
>>
>> Ok, I retry and it works now.
>> So, no more problem.
>>
>> Cheers,
>> Jannik
>>
>>>
>>> Cheers,
>>> Doru
>>>
>>>
>>> On Jul 6, 2013, at 8:05 PM, "jannik.laval" <[hidden email]> wrote:
>>>
>>>> Thank you Andrei,
>>>>
>>>> I removed the sorted, like that, it works fine:
>>>>
>>>> -----
>>>> | browser |
>>>> browser := GLMFinder new
>>>> variableSizePanes;
>>>> title: 'Find your file';
>>>> yourself.
>>>>
>>>> browser show: [:a |
>>>>      a list
>>>>              when: #isDirectory;
>>>>              display: [:each | [each children ]
>>>>                              on: Exception
>>>>                              do: [Array new]];
>>>>              format: #basenameWithIndicator.
>>>>      a text
>>>>              when: #isFile;
>>>>              display: [:entry | [entry readStream contents]
>>>>                          on: Exception
>>>>                              do:['Can''t display the content of this file'] ] ].
>>>>
>>>> browser openOn: FileSystem disk root.
>>>> -----
>>>>
>>>> Cheers,
>>>> Jannik
>>>>
>>>> On Jul 6, 2013, at 5:48 PM, Andrei Vasile Chis <[hidden email]> wrote:
>>>>
>>>>> Also I'd change the example as bellow, as now you should only call show: once on a finder.
>>>>>
>>>>> | browser |
>>>>> browser := GLMFinder new
>>>>> variableSizePanes;
>>>>> title: 'Find your file';
>>>>> yourself.
>>>>>
>>>>> browser show: [:a |
>>>>>      a list
>>>>>              when: #isDirectory;
>>>>>              display: [:each | [each children sorted]
>>>>>                              on: Exception
>>>>>                              do: [Array new]];
>>>>>              format: #basenameWithIndicator.
>>>>>      a text
>>>>>              when: #isFile;
>>>>>              display: [:entry | [entry readStream contents]
>>>>>                          on: Exception
>>>>>                              do:['Can''t display the content of this file'] ] ].
>>>>>
>>>>> browser openOn: FileSystem disk root.
>>>>>
>>>>>
>>>>> Andrei
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Sat, Jul 6, 2013 at 5:43 PM, Andrei Vasile Chis <[hidden email]> wrote:
>>>>> Hi Jannik,
>>>>>
>>>>> The example fails because of this error: FileReference(Object)>>doesNotUnderstand: #other
>>>>>
>>>>> It seems there is a bug when comparing FileReferences.
>>>>> For example 'FileSystem disk root children sorted' fails both in Pharo 2 and Pharo 3.
>>>>>
>>>>> I'd send an email to pharo-dev.
>>>>>
>>>>> Cheers,
>>>>> Andrei
>>>>>
>>>>>
>>>>> On Sat, Jul 6, 2013 at 4:30 PM, jannik.laval <[hidden email]> wrote:
>>>>> Hi guys,
>>>>>
>>>>> I am testing the source code of the Glamour chapter. I have 2 problems:
>>>>>
>>>>> - This configuration doesn't load:
>>>>>
>>>>> ------
>>>>> Gofer new
>>>>> smalltalkhubUser: 'Moose' project: 'Glamour';
>>>>> package: 'ConfigurationOfGlamour';
>>>>> load.
>>>>> (Smalltalk at: #ConfigurationOfGlamour) perform: #loadDefault.
>>>>> ------
>>>>>
>>>>> - The following example source code doesn't work in Moose4.8 but works on Moose 4.7:
>>>>>
>>>>> ------
>>>>> | browser |
>>>>> browser := GLMFinder new
>>>>> variableSizePanes;
>>>>> title: 'Find your file';
>>>>> yourself.
>>>>>
>>>>> browser show: [:a |
>>>>>      a list
>>>>>              when: #isDirectory;
>>>>>              display: [:each | [each children sorted]
>>>>>                              on: Exception
>>>>>                              do: [Array new]];
>>>>>              format: #basenameWithIndicator].
>>>>>
>>>>> browser show: [:a |
>>>>>  a text
>>>>>              when: #isFile;
>>>>>              display: [:entry | [entry readStream contents]
>>>>>                          on: Exception
>>>>>                              do:['Can''t display the content of this file']]].
>>>>>
>>>>> browser openOn: FileSystem disk root.
>>>>> ------
>>>>>
>>>>> Can anyone help me to fix that ?
>>>>> Cheers,
>>>>> Jannik
>>>>> _______________________________________________
>>>>> Moose-dev mailing list
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Moose-dev mailing list
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>> --
>>> www.tudorgirba.com
>>>
>>> "Be rather willing to give than demanding to get."
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"Don't give to get. Just give."






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev