PlotMorph on Pharo 6.1

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

PlotMorph on Pharo 6.1

bestlem

I downloaded 64bit Pharo from
<http://files.pharo.org/platform/Pharo6.1-64-mac.zip>

Started it and first thing opend Catalog Browser.
I searched for plot
Chose pLotMorph and chose Install Stable Version

I got an Information window saying There was an error trying to install
PlotMorph. Installation was cancelled.

So
1) Does PlotMorph work as it is in the SystemCatalog I assume so. So how
shoulkd I load it?
2) How can I see what the error actuially was
3) How can I actually capure the popup window to cut and paste the
error.






--
Mark


Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

Hannes Hirzel
Mark,

Open a Transcript window before loading PlotMorph.
Which error message do you get there?

--Hannes

On 9/10/17, Mark Bestley <[hidden email]> wrote:

>
> I downloaded 64bit Pharo from
> <http://files.pharo.org/platform/Pharo6.1-64-mac.zip>
>
> Started it and first thing opend Catalog Browser.
> I searched for plot
> Chose pLotMorph and chose Install Stable Version
>
> I got an Information window saying There was an error trying to install
> PlotMorph. Installation was cancelled.
>
> So
> 1) Does PlotMorph work as it is in the SystemCatalog I assume so. So how
> shoulkd I load it?
> 2) How can I see what the error actuially was
> 3) How can I actually capure the popup window to cut and paste the
> error.
>
>
>
>
>
>
> --
> Mark
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

Stephane Ducasse-3
Thanks for the report since I need PlotMorph too for a project.
What you see is the consequence of lack of validation of published
packages. This is years that I'm saying that I need someone to work on
that.
We got money from inria for Pavel to work on it but the bootstrap was
more important :).

Stef

On Mon, Sep 11, 2017 at 5:05 AM, H. Hirzel <[hidden email]> wrote:

> Mark,
>
> Open a Transcript window before loading PlotMorph.
> Which error message do you get there?
>
> --Hannes
>
> On 9/10/17, Mark Bestley <[hidden email]> wrote:
>>
>> I downloaded 64bit Pharo from
>> <http://files.pharo.org/platform/Pharo6.1-64-mac.zip>
>>
>> Started it and first thing opend Catalog Browser.
>> I searched for plot
>> Chose pLotMorph and chose Install Stable Version
>>
>> I got an Information window saying There was an error trying to install
>> PlotMorph. Installation was cancelled.
>>
>> So
>> 1) Does PlotMorph work as it is in the SystemCatalog I assume so. So how
>> shoulkd I load it?
>> 2) How can I see what the error actuially was
>> 3) How can I actually capure the popup window to cut and paste the
>> error.
>>
>>
>>
>>
>>
>>
>> --
>> Mark
>>
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

Hannes Hirzel
The message after loading on the Transcript is

Loaded -> Magritte-GT-SeanDeNigris.6 ---
http://smalltalkhub.com/mc/Magritte/Magritte3/main/ --- cache
...finished 3.5.1
Fetched -> ConfigurationOfPlotMorph-StephaneDucasse.3 ---
http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo60/main/ ---
http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo60/main/
Loaded -> ConfigurationOfPlotMorph-StephaneDucasse.3 ---
http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo60/main/ ---
http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo60/main/The version
'1.0' is not defined in ConfigurationOfPlotMorph for the current
platform, because an exception occurred while creating the version:.
MessageNotUnderstood: receiver of "package:with:constructor:" is nil.
Evaluate the following to see the error: '[ConfigurationOfPlotMorph
project ]
        on: MetacelloErrorInProjectConstructionNotification
        do: [:ex | ex resume: true ].'
Possible versions include: #(#bleedingEdge #development #stable '1.0-baseline')

On 9/11/17, Stephane Ducasse <[hidden email]> wrote:

> Thanks for the report since I need PlotMorph too for a project.
> What you see is the consequence of lack of validation of published
> packages. This is years that I'm saying that I need someone to work on
> that.
> We got money from inria for Pavel to work on it but the bootstrap was
> more important :).
>
> Stef
>
> On Mon, Sep 11, 2017 at 5:05 AM, H. Hirzel <[hidden email]> wrote:
>> Mark,
>>
>> Open a Transcript window before loading PlotMorph.
>> Which error message do you get there?
>>
>> --Hannes
>>
>> On 9/10/17, Mark Bestley <[hidden email]> wrote:
>>>
>>> I downloaded 64bit Pharo from
>>> <http://files.pharo.org/platform/Pharo6.1-64-mac.zip>
>>>
>>> Started it and first thing opend Catalog Browser.
>>> I searched for plot
>>> Chose pLotMorph and chose Install Stable Version
>>>
>>> I got an Information window saying There was an error trying to install
>>> PlotMorph. Installation was cancelled.
>>>
>>> So
>>> 1) Does PlotMorph work as it is in the SystemCatalog I assume so. So how
>>> shoulkd I load it?
>>> 2) How can I see what the error actuially was
>>> 3) How can I actually capure the popup window to cut and paste the
>>> error.
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Mark
>>>
>>>
>>>
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

Stephan Eggermont-3
In reply to this post by bestlem
On 10-09-17 23:04, Mark Bestley wrote:
> I downloaded 64bit Pharo from
> <http://files.pharo.org/platform/Pharo6.1-64-mac.zip>
>
> Started it and first thing opend Catalog Browser.
> I searched for plot
> Chose pLotMorph and chose Install Stable Version
>
> I got an Information window saying There was an error trying to install
> PlotMorph. Installation was cancelled.

To debug this:

Instead of installing the stable version, load the configuration.

Type shift-enter to open Spotter.
Type Plot and enter to find ConfigurationOfPlotMorph and browse it.
First take a look at method #stable to see what is defined there

stable: spec
        <symbolicVersion: #'stable'>

        spec for: #'pharo3.x' version: '1.0'.
        spec for: #'pharo5.x' version: '1.0'.
        spec for: #'pharo6.x' version: '1.0'.

That looks good, a stable version is defined for Pharo 6.
A stable version is missing for Pharo 7

Take a look at #version10:

version10: spec
        <version: '1.0'>
       
        spec package: 'PlotMorph' with: 'PlotMorph-StephaneDucasse.7'.

Hmm, that doesn't look good. That is not a complete Metacello spec.
It looks like the reference to the baseline is missing.

baseline10: spec
        <version: '1.0-baseline'>
        spec
                for: #pharo
                do: [
                        spec blessing: #baseline.
                        spec description: 'First Full Configuration'.
                        spec author: 'StephaneDucasse'.
                        spec timestamp: '29/12/2013 12:29'.
                        spec repository:
'http://www.smalltalkhub.com/PharoExtras/PlotMorph/main'.
                        spec package: 'PlotMorph' ].

Yep, there is the missing information.
So let's fix the version10. We can do it in place, as this can not have
worked. Otherwise we would have had to add a new version, and updated
the #stable.


Name: ConfigurationOfPlotMorph-StephanEggermont.4
Author: StephanEggermont
Time: 11 September 2017, 12:09:08.46706 pm
UUID: d297b6da-4815-0d00-8219-91680d9ac81c
Ancestors: ConfigurationOfPlotMorph-StephaneDucasse.3

Fixed version10, added pharo 7

Stephan



Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

Stephan Eggermont-3
AxesMorph>drawGridOn: aCanvas
        | gridColor right bottom width height lighter darker baseColor |
        baseColor := self baseColor.
        lighter := baseColor twiceLighter.
        darker := baseColor twiceDarker.
        gridColor := (lighter diff: baseColor)
                                > (darker diff: baseColor) ifTrue: [lighter] ifFalse: [darker].
        right := self bounds width - margin.
        width := self bounds width - (margin * 2).
        bottom := self bounds height - margin.
        height := self bounds height - (margin * 2).
        (margin to: right by: width / 10) do:
                        [:x |
                        x := x rounded.
                        aCanvas
                                line: x @ margin
                                to: x @ bottom
                                color: gridColor].
        (margin to: bottom by: height / 10) do:
                        [:y |
                        y := y rounded.
                        aCanvas
                                line: margin @ y
                                to: right @ y
                                color: gridColor]

the assignment to the block parameter

x := x rounded is in red in Pharo 7.

Is that not (/no longer) allowed?


Name: PlotMorph-StephanEggermont.8
Author: StephanEggermont
Time: 11 September 2017, 12:27:45.971839 pm
UUID: f65d521d-4915-0d00-821a-53ce0d9ac81c
Ancestors: PlotMorph-StephaneDucasse.7

Added <example> pragmas to PlotMorph. Opened examples in a window.
Replaced #deprecatedExplanation: by #deprecated:
Fixed PlotPoint constructor

Name: ConfigurationOfPlotMorph-StephanEggermont.5
Author: StephanEggermont
Time: 11 September 2017, 12:29:19.779132 pm
UUID: adbfe922-4915-0d00-821b-1f5a0d9ac81c
Ancestors: ConfigurationOfPlotMorph-StephanEggermont.4

New version for Pharo 6 and 7





Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

Stephan Eggermont-3
In reply to this post by Stephan Eggermont-3
Oops

On 11-09-17 12:11, stephan wrote:
> Yep, there is the missing information.
> So let's fix the version10. We can do it in place, as this can not have
> worked. Otherwise we would have had to add a new version, and updated
> the #stable.

version10: spec
        <version: '1.0'  imports: #('1.0-baseline' )>
       
        spec
                for: #pharo do: [
                        spec blessing: #release.
                        spec package: 'PlotMorph' with: 'PlotMorph-StephaneDucasse.7']




Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

bestlem
In reply to this post by Stephan Eggermont-3
stephan <[hidden email]> wrote:

> On 10-09-17 23:04, Mark Bestley wrote:
> > I downloaded 64bit Pharo from
> > <http://files.pharo.org/platform/Pharo6.1-64-mac.zip>
> >
> > Started it and first thing opend Catalog Browser.
> > I searched for plot
> > Chose pLotMorph and chose Install Stable Version
> >
> > I got an Information window saying There was an error trying to install
> > PlotMorph. Installation was cancelled.
>
> To debug this:
>
> Instead of installing the stable version, load the configuration.
>
> Type shift-enter to open Spotter.
> Type Plot and enter to find ConfigurationOfPlotMorph and browse it.
> First take a look at method #stable to see what is defined there
>

> Yep, there is the missing information.
> So let's fix the version10. We can do it in place, as this can not have
> worked. Otherwise we would have had to add a new version, and updated
> the #stable.
>
>
> Name: ConfigurationOfPlotMorph-StephanEggermont.4
> Author: StephanEggermont
> Time: 11 September 2017, 12:09:08.46706 pm
> UUID: d297b6da-4815-0d00-8219-91680d9ac81c
> Ancestors: ConfigurationOfPlotMorph-StephaneDucasse.3
>
> Fixed version10, added pharo 7
>

Ok thgat now loads but on loading. I get a large spew of code in the
transcript including several

OCStoreIntoReadOnlyVariableError: Cannot store into

--
Mark


Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

Stephane Ducasse-3
In reply to this post by Stephan Eggermont-3
Thanks Stefan


On Mon, Sep 11, 2017 at 2:00 PM, stephan <[hidden email]> wrote:

> Oops
>
> On 11-09-17 12:11, stephan wrote:
>>
>> Yep, there is the missing information.
>> So let's fix the version10. We can do it in place, as this can not have
>> worked. Otherwise we would have had to add a new version, and updated the
>> #stable.
>
>
> version10: spec
>         <version: '1.0'  imports: #('1.0-baseline' )>
>
>         spec
>                 for: #pharo do: [
>                         spec blessing: #release.
>                         spec package: 'PlotMorph' with:
> 'PlotMorph-StephaneDucasse.7']
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

Stephane Ducasse-3
Stefan

(Did you publish the configuration in the PlotMorph repo?)
    ifTrue: [ Stefan isPerfect ]



On Mon, Sep 11, 2017 at 7:19 PM, Stephane Ducasse
<[hidden email]> wrote:

> Thanks Stefan
>
>
> On Mon, Sep 11, 2017 at 2:00 PM, stephan <[hidden email]> wrote:
>> Oops
>>
>> On 11-09-17 12:11, stephan wrote:
>>>
>>> Yep, there is the missing information.
>>> So let's fix the version10. We can do it in place, as this can not have
>>> worked. Otherwise we would have had to add a new version, and updated the
>>> #stable.
>>
>>
>> version10: spec
>>         <version: '1.0'  imports: #('1.0-baseline' )>
>>
>>         spec
>>                 for: #pharo do: [
>>                         spec blessing: #release.
>>                         spec package: 'PlotMorph' with:
>> 'PlotMorph-StephaneDucasse.7']
>>
>>
>>
>>

Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

Stephan Eggermont-3
On 11-09-17 19:20, Stephane Ducasse wrote:
> Stefan
>
> (Did you publish the configuration in the PlotMorph repo?)
>      ifTrue: [ Stefan isPerfect ]

PlotMorph, MetaRepos for Pharo 5 and 6 :)




Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

Stephane Ducasse-3
Excellent!


On Mon, Sep 11, 2017 at 8:10 PM, stephan <[hidden email]> wrote:

> On 11-09-17 19:20, Stephane Ducasse wrote:
>>
>> Stefan
>>
>> (Did you publish the configuration in the PlotMorph repo?)
>>      ifTrue: [ Stefan isPerfect ]
>
>
> PlotMorph, MetaRepos for Pharo 5 and 6 :)
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

bestlem
Stephane Ducasse <[hidden email]>
wrote:

> Excellent!
>
>
> On Mon, Sep 11, 2017 at 8:10 PM, stephan
<[hidden email]> wrote:

> > On 11-09-17 19:20, Stephane Ducasse wrote:
> >>
> >> Stefan
> >>
> >> (Did you publish the configuration in the PlotMorph repo?)
> >>      ifTrue: [ Stefan isPerfect ]
> >
> >
> > PlotMorph, MetaRepos for Pharo 5 and 6 :)
> >
> >
> >
> >

Unfortunatley not. That error has gone but I now get

Fetched -> ConfigurationOfPlotMorph-StephanEggermont.5 ---
http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo60/main/ ---
http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo60/main/
Loaded -> ConfigurationOfPlotMorph-StephanEggermont.5 ---
http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo60/main/ ---
http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo60/main/
Loading 1.1 of ConfigurationOfPlotMorph...
Fetched -> PlotMorph-StephanEggermont.8 ---
http://smalltalkhub.com/mc/PharoExtras/PlotMorph/main/ ---
http://smalltalkhub.com/mc/PharoExtras/PlotMorph/main/
OCStoreIntoReadOnlyVariableError: Cannot store into
PlotMorphGrid
drawGridOn: aCanvas
    | gridColor lighter darker baseColor bounds |
    baseColor := plot baseColor alpha: 1.
    lighter := baseColor twiceLighter.
    darker := baseColor twiceDarker.
    gridColor := (lighter diff: baseColor) > (darker diff: baseColor)
        ifTrue: [ lighter ]
        ifFalse: [ darker ].
    bounds := plot drawBounds.
    (bounds left to: bounds right by: (self bestStep: bounds width))
        do: [ :x |
            x := x rounded.
            aCanvas line: x @ bounds top to: x @ bounds bottom color:
gridColor ].
    (bounds top to: bounds bottom by: (self bestStep: bounds height))
        do: [ :y |
            y := y rounded.
            aCanvas line: bounds left @ y to: bounds right @ y color:
gridColor ]
OCStoreIntoReadOnlyVariableError: Cannot store into
PlotMorphGrid
drawGridOn: aCanvas
    | gridColor lighter darker baseColor bounds |
    baseColor := plot baseColor alpha: 1.
    lighter := baseColor twiceLighter.
    darker := baseColor twiceDarker.
    gridColor := (lighter diff: baseColor) > (darker diff: baseColor)
        ifTrue: [ lighter ]
        ifFalse: [ darker ].
    bounds := plot drawBounds.
    (bounds left to: bounds right by: (self bestStep: bounds width))
        do: [ :x |
            x := x rounded.
            aCanvas line: x @ bounds top to: x @ bounds bottom color:
gridColor ].
    (bounds top to: bounds bottom by: (self bestStep: bounds height))
        do: [ :y |
            y := y rounded.
            aCanvas line: bounds left @ y to: bounds right @ y color:
gridColor ]
OCStoreIntoReadOnlyVariableError: Cannot store into
AxesMorph
drawGridOn: aCanvas
    | gridColor right bottom width height lighter darker baseColor |
    baseColor := self baseColor.
    lighter := baseColor twiceLighter.
    darker := baseColor twiceDarker.
    gridColor := (lighter diff: baseColor) > (darker diff: baseColor)
        ifTrue: [ lighter ]
        ifFalse: [ darker ].
    right := self bounds width - margin.
    width := self bounds width - (margin * 2).
    bottom := self bounds height - margin.
    height := self bounds height - (margin * 2).
    (margin to: right by: width / 10)
        do: [ :x |
            x := x rounded.
            aCanvas line: x @ margin to: x @ bottom color: gridColor ].
    (margin to: bottom by: height / 10)
        do: [ :y |
            y := y rounded.
            aCanvas line: margin @ y to: right @ y color: gridColor ]
OCStoreIntoReadOnlyVariableError: Cannot store into
AxesMorph
drawGridOn: aCanvas
    | gridColor right bottom width height lighter darker baseColor |
    baseColor := self baseColor.
    lighter := baseColor twiceLighter.
    darker := baseColor twiceDarker.
    gridColor := (lighter diff: baseColor) > (darker diff: baseColor)
        ifTrue: [ lighter ]
        ifFalse: [ darker ].
    right := self bounds width - margin.
    width := self bounds width - (margin * 2).
    bottom := self bounds height - margin.
    height := self bounds height - (margin * 2).
    (margin to: right by: width / 10)
        do: [ :x |
            x := x rounded.
            aCanvas line: x @ margin to: x @ bottom color: gridColor ].
    (margin to: bottom by: height / 10)
        do: [ :y |
            y := y rounded.
            aCanvas line: margin @ y to: right @ y color: gridColor ]
Loaded -> PlotMorph-StephanEggermont.8 ---
http://smalltalkhub.com/mc/PharoExtras/PlotMorph/main/ --- cache
...finished 1.1



--
Mark


Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

bestlem
In reply to this post by Stephane Ducasse-3
In this case shouldm't the catalog only be added to if someone actually
takes an action to do this - then there is a chance the code would be
checked. Otherwise rollinmg over from one release to another just
accumulates junk.



Stephane Ducasse <[hidden email]>
wrote:

> Thanks for the report since I need PlotMorph too for a project.
> What you see is the consequence of lack of validation of published
> packages. This is years that I'm saying that I need someone to work on
> that.
> We got money from inria for Pavel to work on it but the bootstrap was
> more important :).
>


--
Mark


Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

bestlem
Mark Bestley <[hidden email]> wrote:

> In this case shouldm't the catalog only be added to if someone actually
> takes an action to do this - then there is a chance the code would be
> checked. Otherwise rollinmg over from one release to another just
> accumulates junk.
>

OK I am now more confused as I see that suggestion does not work.

Looking for graphing packages I tried to load GraphET - which gives a
popup box

GraphET has not been marked as tested for Pharo6! Do you want to
continue (installation could fail)

Which seems to me to be a good feature,

But does imply some packages have been added and marked as tested
without being tested which does raise a large doubt in my mind as to
what is supposed to work and how can I trust parts of the system which
are marked as working.

 

>
>
> Stephane Ducasse <[hidden email]>
> wrote:
>
> > Thanks for the report since I need PlotMorph too for a project.
> > What you see is the consequence of lack of validation of published
> > packages. This is years that I'm saying that I need someone to work on
> > that.
> > We got money from inria for Pavel to work on it but the bootstrap was
> > more important :).
> >


--
Mark


Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

Stephan Eggermont-3
In reply to this post by bestlem
On 13/09/17 19:22, Mark Bestley wrote:

> Unfortunatley not. That error has gone but I now get
 >
>              x := x rounded.

Yes, that is the question I posed.
Assignment to block variables is prohibited now?

Stephan




Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

abergel
In reply to this post by bestlem
Hi Mark,

In case you are not tied to PlotMorph, you can use Roassal for your drawing. Roassal supports Grapher, which is a resurrection of GraphET. 

Documentation is available on:

Open Pharo 6, load Roassal using:
Gofer it
    smalltalkhubUser: 'ObjectProfile' project: 'Roassal2';
    configurationOf: 'Roassal2';
    loadDevelopment


And type in a playground:
b := RTGrapher new. ds := RTData new. ds noDot. ds points: (0 to: 3.1415 * 5 by: 0.01). ds y: #sin. ds x: #yourself. ds connectColor: (Color red alpha: 0.4). b add: ds. ds := RTData new. ds noDot. ds points: (0 to: 3.1415 * 5 by: 0.01). ds y: #cos. ds x: #yourself. ds connectColor: (Color blue alpha: 0.4). b add: ds. b

You will get:

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Sep 13, 2017, at 2:49 PM, Mark Bestley <[hidden email]> wrote:

Mark Bestley <[hidden email]> wrote:

In this case shouldm't the catalog only be added to if someone actually
takes an action to do this - then there is a chance the code would be
checked. Otherwise rollinmg over from one release to another just
accumulates junk.


OK I am now more confused as I see that suggestion does not work.

Looking for graphing packages I tried to load GraphET - which gives a
popup box

GraphET has not been marked as tested for Pharo6! Do you want to
continue (installation could fail)

Which seems to me to be a good feature,

But does imply some packages have been added and marked as tested
without being tested which does raise a large doubt in my mind as to
what is supposed to work and how can I trust parts of the system which
are marked as working.




Stephane Ducasse <[hidden email]>
wrote:

Thanks for the report since I need PlotMorph too for a project.
What you see is the consequence of lack of validation of published
packages. This is years that I'm saying that I need someone to work on
that.
We got money from inria for Pavel to work on it but the bootstrap was
more important :).



--
Mark



Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

Stephane Ducasse-3
In reply to this post by bestlem
Hi mark

live is chaotic here with two or three meetings in parallel, visitors,
and a lecture to finish
Now I tested. I took a Pharo 6.1 32 bits and loaded PlotMorph from the catalog
It load Stefaneggermont.8

Can you tell us how to reproduce your problem?


On Wed, Sep 13, 2017 at 7:22 PM, Mark Bestley <[hidden email]> wrote:

> Stephane Ducasse <[hidden email]>
> wrote:
>
>> Excellent!
>>
>>
>> On Mon, Sep 11, 2017 at 8:10 PM, stephan
> <[hidden email]> wrote:
>> > On 11-09-17 19:20, Stephane Ducasse wrote:
>> >>
>> >> Stefan
>> >>
>> >> (Did you publish the configuration in the PlotMorph repo?)
>> >>      ifTrue: [ Stefan isPerfect ]
>> >
>> >
>> > PlotMorph, MetaRepos for Pharo 5 and 6 :)
>> >
>> >
>> >
>> >
>
> Unfortunatley not. That error has gone but I now get
>
> Fetched -> ConfigurationOfPlotMorph-StephanEggermont.5 ---
> http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo60/main/ ---
> http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo60/main/
> Loaded -> ConfigurationOfPlotMorph-StephanEggermont.5 ---
> http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo60/main/ ---
> http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo60/main/
> Loading 1.1 of ConfigurationOfPlotMorph...
> Fetched -> PlotMorph-StephanEggermont.8 ---
> http://smalltalkhub.com/mc/PharoExtras/PlotMorph/main/ ---
> http://smalltalkhub.com/mc/PharoExtras/PlotMorph/main/
> OCStoreIntoReadOnlyVariableError: Cannot store into
> PlotMorphGrid
> drawGridOn: aCanvas
>     | gridColor lighter darker baseColor bounds |
>     baseColor := plot baseColor alpha: 1.
>     lighter := baseColor twiceLighter.
>     darker := baseColor twiceDarker.
>     gridColor := (lighter diff: baseColor) > (darker diff: baseColor)
>         ifTrue: [ lighter ]
>         ifFalse: [ darker ].
>     bounds := plot drawBounds.
>     (bounds left to: bounds right by: (self bestStep: bounds width))
>         do: [ :x |
>             x := x rounded.
>             aCanvas line: x @ bounds top to: x @ bounds bottom color:
> gridColor ].
>     (bounds top to: bounds bottom by: (self bestStep: bounds height))
>         do: [ :y |
>             y := y rounded.
>             aCanvas line: bounds left @ y to: bounds right @ y color:
> gridColor ]
> OCStoreIntoReadOnlyVariableError: Cannot store into
> PlotMorphGrid
> drawGridOn: aCanvas
>     | gridColor lighter darker baseColor bounds |
>     baseColor := plot baseColor alpha: 1.
>     lighter := baseColor twiceLighter.
>     darker := baseColor twiceDarker.
>     gridColor := (lighter diff: baseColor) > (darker diff: baseColor)
>         ifTrue: [ lighter ]
>         ifFalse: [ darker ].
>     bounds := plot drawBounds.
>     (bounds left to: bounds right by: (self bestStep: bounds width))
>         do: [ :x |
>             x := x rounded.
>             aCanvas line: x @ bounds top to: x @ bounds bottom color:
> gridColor ].
>     (bounds top to: bounds bottom by: (self bestStep: bounds height))
>         do: [ :y |
>             y := y rounded.
>             aCanvas line: bounds left @ y to: bounds right @ y color:
> gridColor ]
> OCStoreIntoReadOnlyVariableError: Cannot store into
> AxesMorph
> drawGridOn: aCanvas
>     | gridColor right bottom width height lighter darker baseColor |
>     baseColor := self baseColor.
>     lighter := baseColor twiceLighter.
>     darker := baseColor twiceDarker.
>     gridColor := (lighter diff: baseColor) > (darker diff: baseColor)
>         ifTrue: [ lighter ]
>         ifFalse: [ darker ].
>     right := self bounds width - margin.
>     width := self bounds width - (margin * 2).
>     bottom := self bounds height - margin.
>     height := self bounds height - (margin * 2).
>     (margin to: right by: width / 10)
>         do: [ :x |
>             x := x rounded.
>             aCanvas line: x @ margin to: x @ bottom color: gridColor ].
>     (margin to: bottom by: height / 10)
>         do: [ :y |
>             y := y rounded.
>             aCanvas line: margin @ y to: right @ y color: gridColor ]
> OCStoreIntoReadOnlyVariableError: Cannot store into
> AxesMorph
> drawGridOn: aCanvas
>     | gridColor right bottom width height lighter darker baseColor |
>     baseColor := self baseColor.
>     lighter := baseColor twiceLighter.
>     darker := baseColor twiceDarker.
>     gridColor := (lighter diff: baseColor) > (darker diff: baseColor)
>         ifTrue: [ lighter ]
>         ifFalse: [ darker ].
>     right := self bounds width - margin.
>     width := self bounds width - (margin * 2).
>     bottom := self bounds height - margin.
>     height := self bounds height - (margin * 2).
>     (margin to: right by: width / 10)
>         do: [ :x |
>             x := x rounded.
>             aCanvas line: x @ margin to: x @ bottom color: gridColor ].
>     (margin to: bottom by: height / 10)
>         do: [ :y |
>             y := y rounded.
>             aCanvas line: margin @ y to: right @ y color: gridColor ]
> Loaded -> PlotMorph-StephanEggermont.8 ---
> http://smalltalkhub.com/mc/PharoExtras/PlotMorph/main/ --- cache
> ...finished 1.1
>
>
>
> --
> Mark
>
>

Screen Shot 2017-09-14 at 20.41.09.png (50K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

Stephane Ducasse-3
In reply to this post by bestlem
I do not get what you mean. Stefan fixed the problem so may be there
is a problem on 64 bits.
I have no idea. So far he fixes the previous problem.
So let us fix the new one. But so far I cannot reproduce it.

On Wed, Sep 13, 2017 at 7:26 PM, Mark Bestley <[hidden email]> wrote:

> In this case shouldm't the catalog only be added to if someone actually
> takes an action to do this - then there is a chance the code would be
> checked. Otherwise rollinmg over from one release to another just
> accumulates junk.
>
>
>
> Stephane Ducasse <[hidden email]>
> wrote:
>
>> Thanks for the report since I need PlotMorph too for a project.
>> What you see is the consequence of lack of validation of published
>> packages. This is years that I'm saying that I need someone to work on
>> that.
>> We got money from inria for Pavel to work on it but the bootstrap was
>> more important :).
>>
>
>
> --
> Mark
>
>

Reply | Threaded
Open this post in threaded view
|

Re: PlotMorph on Pharo 6.1

Stephane Ducasse-3
In reply to this post by Stephan Eggermont-3
I think that block arguments are like method arguments and are read only.
Now I do not remember.

On Wed, Sep 13, 2017 at 8:39 PM, Stephan Eggermont <[hidden email]> wrote:

> On 13/09/17 19:22, Mark Bestley wrote:
>
>> Unfortunatley not. That error has gone but I now get
>
>>
>>
>>              x := x rounded.
>
>
> Yes, that is the question I posed.
> Assignment to block variables is prohibited now?
>
> Stephan
>
>
>
>

12