[Pharo-users] Playground auto-save?

2019-06-18 Thread Hilaire
Hi,

I have to admit it is working randomly in P7 with Dr.Geo. (19.06 rel)

Sometime script can be retrieved with the playpage button other time no:
executed script can not be retrieved.

Its behavior is not predictable and it is a problem for me and the kids
playing code.

Hilaire

-- 
Dr. Geo
http://drgeo.eu





Re: [Pharo-users] Iceberg loading a Tonel package migrated using SETT

2019-06-18 Thread Esteban Maringolo
Dale,

Besides the issue affecting this particular case, I think that the Tonel
"format" should support and honor "metadata" at the class/package/method
level.
E.g. the SETT exporter creates the #vw_namespace for classes, other
dialects may need to specify other information that would be useful that
when written back by Pharo are honored as well.

E.g. You export a package from VW that has the class "Foo" in the
"FooNamespace" namespace, so the Tonel class type definition will be
defined with "Foo" as name and the #vw_namespace set to be "FooNamespace",
if you lad this into Pharo everything will compile because the
#vw_namespace will be ignored, but once you commit back the #vw_namespace
property will be lost. I can think in other cases like Dolphin's class GUID
or VAST Application/Subapplication mapping to a package or public/private
to methods, etc.

Tonel files don't have exactly the best format, but it seems to be the one
that has the most widespread adoption in file based SCM, and maybe we (as a
Smalltalk community) could make another attempt of having a common format
to interchange code between dialects without much effort from the "main
trunk" (Pharo).

Regards,

Esteban A. Maringolo


On Tue, Jun 18, 2019 at 2:32 PM Dale Henrichs <
dale.henri...@gemtalksystems.com> wrote:

> SETT was create based on our understanding (GemTalk Systems) of what the
> tonel disk format was _supposed_ to be and I think that Pharo has departed
> from somewhat from what was understood to be the format.
>
> I've had similar problems trying to use filetree repositories with Iceberg
> that have been readable by the old Monticello/Filetree readers for years
> [1] ... and are readable when loaded through the Monticello Browser, but
> not readable when using Iceberg ...
>
> One of these days, there needs to be agreement as to what the actual disk
> format of tonel and filetree repositories is going to be/has been and then
> stick to them, otherwise these problems are going to continue to plague us.
>
> Dale
>
> [1] https://github.com/pharo-vcs/iceberg/issues/1239
> On 6/18/19 6:40 AM, Esteban Maringolo wrote:
>
> Hi Guillermo,
>
> Your workaround effectively solved my issue.
>
> About the tonel format, in the .properties file at the sources directory
> there was such setting:
>
> https://github.com/eMaringolo/rbac/blob/9279f22ef5fd1c4149090b5b39a6afa143a6519c/sources/properties.st
>
>
> But the .project file was missing at the root of the repository. So maybe
> it is a mix of both conditions.
>
> In any case, I'm glad the workaround works, and that it helped spotting a
> bug.
>
> Thank you!
>
>
> Esteban A. Maringolo
>
>
> On Tue, Jun 18, 2019 at 4:35 AM Guillermo Polito <
> guillermopol...@gmail.com> wrote:
>
>> I’ve created an issue:
>>
>> https://github.com/pharo-vcs/iceberg/issues/1251
>>
>> El 18 jun 2019, a las 9:30, Guillermo Polito 
>> escribió:
>>
>> Hi Esteban,
>>
>> It seems like a bug in Iceberg. If you click on debug, you’ll see that
>> although you’ve said the project is in tonel format, it’s trying to use a
>> Filetree reader
>>
>> 
>>
>> This is due to some missing metadata in the commit (iceberg is relying on
>> commit information there and not working copy information).
>>
>> There is however a simple workaround. If you click in the commit button
>> you’ll see that Iceberg tries to create and commit the missing files:
>>
>> 
>>
>> If you commit those files, then you’ll be able to load your packages.
>>
>> Guille
>>
>>
>> El 18 jun 2019, a las 2:34, Esteban Maringolo 
>> escribió:
>>
>> Hi,
>>
>> I'm trying to load a package from a Tonel repository[1] that was created
>> using SETT[2].
>>
>> The structure seems fine, but when I try to load a package, I'm getting
>> the message saying that there is no version for the package in the current
>> commit (which seems wrong at least to the naked eye).
>>
>> Eg.
>> 
>>
>> Any idea of how to fix it?
>>
>> Regards!
>>
>> [1] https://github.com/eMaringolo/rbac/tree/master/sources/
>> [2] https://github.com/gemtalk/sett
>>
>>
>>
>> Esteban A. Maringolo
>>
>>
>>
>>


Re: [Pharo-users] Question: anyone using NOCompletion setting?

2019-06-18 Thread Sean P. DeNigris
I use it sometimes. IIRC there was a paper that it was objectively better at
finding the "right" thing. Are you thinking of removing it?



-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] Iceberg loading a Tonel package migrated using SETT

2019-06-18 Thread Dale Henrichs
SETT was create based on our understanding (GemTalk Systems) of what the 
tonel disk format was _supposed_ to be and I think that Pharo has 
departed from somewhat from what was understood to be the format.


I've had similar problems trying to use filetree repositories with 
Iceberg that have been readable by the old Monticello/Filetree readers 
for years [1] ... and are readable when loaded through the Monticello 
Browser, but not readable when using Iceberg ...


One of these days, there needs to be agreement as to what the actual 
disk format of tonel and filetree repositories is going to be/has been 
and then stick to them, otherwise these problems are going to continue 
to plague us.


Dale

[1] https://github.com/pharo-vcs/iceberg/issues/1239

On 6/18/19 6:40 AM, Esteban Maringolo wrote:

Hi Guillermo,

Your workaround effectively solved my issue.

About the tonel format, in the .properties file at the sources 
directory there was such setting:
https://github.com/eMaringolo/rbac/blob/9279f22ef5fd1c4149090b5b39a6afa143a6519c/sources/properties.st 



But the .project file was missing at the root of the repository. So 
maybe it is a mix of both conditions.


In any case, I'm glad the workaround works, and that it helped 
spotting a bug.


Thank you!


Esteban A. Maringolo


On Tue, Jun 18, 2019 at 4:35 AM Guillermo Polito 
mailto:guillermopol...@gmail.com>> wrote:


I’ve created an issue:

https://github.com/pharo-vcs/iceberg/issues/1251


El 18 jun 2019, a las 9:30, Guillermo Polito
mailto:guillermopol...@gmail.com>>
escribió:

Hi Esteban,

It seems like a bug in Iceberg. If you click on debug, you’ll see
that although you’ve said the project is in tonel format, it’s
trying to use a Filetree reader



This is due to some missing metadata in the commit (iceberg is
relying on commit information there and not working copy
information).

There is however a simple workaround. If you click in the commit
button you’ll see that Iceberg tries to create and commit the
missing files:



If you commit those files, then you’ll be able to load your packages.

Guille



El 18 jun 2019, a las 2:34, Esteban Maringolo
mailto:emaring...@gmail.com>> escribió:

Hi,

I'm trying to load a package from a Tonel repository[1] that was
created using SETT[2].

The structure seems fine, but when I try to load a package, I'm
getting the message saying that there is no version for the
package in the current commit (which seems wrong at least to the
naked eye).

Eg.


Any idea of how to fix it?

Regards!

[1] https://github.com/eMaringolo/rbac/tree/master/sources/
[2] https://github.com/gemtalk/sett



Esteban A. Maringolo






[Pharo-users] Question: anyone using NOCompletion setting?

2019-06-18 Thread Marcus Denker
Hi,

There are two completion modes currently: the standard one and the NOControler 
setting

the NO option has the idea that it sorts “newly” compiled selectors first, else 
it is the same.

Is anyone using this setting?

Marcus


Re: [Pharo-users] Iceberg loading a Tonel package migrated using SETT

2019-06-18 Thread Esteban Maringolo
Hi Guillermo,

Your workaround effectively solved my issue.

About the tonel format, in the .properties file at the sources directory
there was such setting:
https://github.com/eMaringolo/rbac/blob/9279f22ef5fd1c4149090b5b39a6afa143a6519c/sources/properties.st


But the .project file was missing at the root of the repository. So maybe
it is a mix of both conditions.

In any case, I'm glad the workaround works, and that it helped spotting a
bug.

Thank you!


Esteban A. Maringolo


On Tue, Jun 18, 2019 at 4:35 AM Guillermo Polito 
wrote:

> I’ve created an issue:
>
> https://github.com/pharo-vcs/iceberg/issues/1251
>
> El 18 jun 2019, a las 9:30, Guillermo Polito 
> escribió:
>
> Hi Esteban,
>
> It seems like a bug in Iceberg. If you click on debug, you’ll see that
> although you’ve said the project is in tonel format, it’s trying to use a
> Filetree reader
>
> 
>
> This is due to some missing metadata in the commit (iceberg is relying on
> commit information there and not working copy information).
>
> There is however a simple workaround. If you click in the commit button
> you’ll see that Iceberg tries to create and commit the missing files:
>
> 
>
> If you commit those files, then you’ll be able to load your packages.
>
> Guille
>
>
> El 18 jun 2019, a las 2:34, Esteban Maringolo 
> escribió:
>
> Hi,
>
> I'm trying to load a package from a Tonel repository[1] that was created
> using SETT[2].
>
> The structure seems fine, but when I try to load a package, I'm getting
> the message saying that there is no version for the package in the current
> commit (which seems wrong at least to the naked eye).
>
> Eg.
> 
>
> Any idea of how to fix it?
>
> Regards!
>
> [1] https://github.com/eMaringolo/rbac/tree/master/sources/
> [2] https://github.com/gemtalk/sett
>
>
>
> Esteban A. Maringolo
>
>
>
>


Re: [Pharo-users] Autocompletion

2019-06-18 Thread Marcus Denker



> On 16 Jun 2019, at 08:41, eftomi  wrote:
> 
> I found the cause - I created the #buttonBad accessing methods with code
> (re)factoring (generate accessors), and in this case the accessors are made
> in this fashion:
> 
> CustomerSatisfaction >> buttonBad: *anObject
>   *buttonBad := *anObject
> 
> *It's better to use 
> 
> CustomerSatisfaction >> buttonBad: *aComposablePresenterClass
>   *buttonBad := *aComposablePresenterClass
> 
> *as this method is doing:
> 
> ComposablePresenter >> instantiate: aComposablePresenterClass
>   "Instantiate a ComposablePresenter subclass and set its instance owner"
> 
>   ^ aComposablePresenterClass owner: self
> 

Yes, the problem is that the Type guesser guesses types, but then they are used 
as
if they would be the truth…

this is done in two cases:

1) names of arguments, as you have seen: if you call it “anArray”, the code 
completion will only show you method for Array.

2) sends to Globals that are classes: every send of the kind “Class something” 
will be types as “instance of Class”. Which is not
even true for #new in all cases (see String). 

What would be better: distinguish between “types” and “type guess”. The later 
we should use to sort the results, not to restrict it.

> To find the cause, I used the debugger extensively and found the core logic
> in ECInstVarTypeGuesser >> perform method - it was quite an exercise!
> 


Wow! that is a real execise.

Marcus


Re: [Pharo-users] Iceberg loading a Tonel package migrated using SETT

2019-06-18 Thread Guillermo Polito
I’ve created an issue:

https://github.com/pharo-vcs/iceberg/issues/1251 


> El 18 jun 2019, a las 9:30, Guillermo Polito  
> escribió:
> 
> Hi Esteban,
> 
> It seems like a bug in Iceberg. If you click on debug, you’ll see that 
> although you’ve said the project is in tonel format, it’s trying to use a 
> Filetree reader
> 
> 
> 
> This is due to some missing metadata in the commit (iceberg is relying on 
> commit information there and not working copy information).
> 
> There is however a simple workaround. If you click in the commit button 
> you’ll see that Iceberg tries to create and commit the missing files:
> 
> 
> 
> If you commit those files, then you’ll be able to load your packages.
> 
> Guille
> 
> 
>> El 18 jun 2019, a las 2:34, Esteban Maringolo > > escribió:
>> 
>> Hi,
>> 
>> I'm trying to load a package from a Tonel repository[1] that was created 
>> using SETT[2].
>> 
>> The structure seems fine, but when I try to load a package, I'm getting the 
>> message saying that there is no version for the package in the current 
>> commit (which seems wrong at least to the naked eye).
>> 
>> Eg.
>> 
>> 
>> Any idea of how to fix it?
>> 
>> Regards!
>> 
>> [1] https://github.com/eMaringolo/rbac/tree/master/sources/ 
>> 
>> [2] https://github.com/gemtalk/sett 
>> 
>> 
>> 
>> Esteban A. Maringolo
> 



Re: [Pharo-users] Iceberg loading a Tonel package migrated using SETT

2019-06-18 Thread Guillermo Polito
Hi Esteban,

It seems like a bug in Iceberg. If you click on debug, you’ll see that although 
you’ve said the project is in tonel format, it’s trying to use a Filetree reader



This is due to some missing metadata in the commit (iceberg is relying on 
commit information there and not working copy information).

There is however a simple workaround. If you click in the commit button you’ll 
see that Iceberg tries to create and commit the missing files:



If you commit those files, then you’ll be able to load your packages.

Guille


> El 18 jun 2019, a las 2:34, Esteban Maringolo  escribió:
> 
> Hi,
> 
> I'm trying to load a package from a Tonel repository[1] that was created 
> using SETT[2].
> 
> The structure seems fine, but when I try to load a package, I'm getting the 
> message saying that there is no version for the package in the current commit 
> (which seems wrong at least to the naked eye).
> 
> Eg.
> 
> 
> Any idea of how to fix it?
> 
> Regards!
> 
> [1] https://github.com/eMaringolo/rbac/tree/master/sources/ 
> 
> [2] https://github.com/gemtalk/sett 
> 
> 
> 
> Esteban A. Maringolo