[Pharo-users] Re: Recent Pharo's seem to lose first keystroke when you swap to them to paste?

2024-05-27 Thread Davide Varvello via Pharo-users
Tim,
Also Pharo10 has this bug (mac m2, sonoma).

Thanks for your report!
Cheers
Davide 







On Monday, May 27, 2024 at 03:45:46 PM GMT+2, Tim Mackinnon  
wrote: 






For a while I've noticed that every time I try and copy some text from a web 
browser or email and then paste it into pharo the first time it fails - and 
then thinking I didn't copy, I try it again and then realise that I have to 
paste twice - as the first one doesn't work.

This didn't seem to do this in Pharo 9 (maybe 10) but its definitely the case 
in Pharo 11 and Pharo 12. This is on OSX (14.x) so I'm wondering if the same 
occurs in Windows or Linux or if its just my laptop? Its quite annoying and I'm 
wondering if it might be a side effect from the gradual UI changes in Pharo?

I've looked in the issues tracker - but its a tricky thing to search for - and 
so I wanted to canvas experience and then will report it.

Tim


[Pharo-users] Re: [SOLVED] Shortcut CMD-v for version history

2024-05-26 Thread Davide Varvello via Pharo-users





On Saturday, May 25, 2024 at 07:07:24 PM GMT+2, stephane ducasse 
 wrote: 





Since this mailing-list is not a bug tracker I created an issue with the 
feature.

https://github.com/pharo-project/pharo/issues/16694

I will not comment this but smart people will easily guess.
Now Pharo is more important than that.

S

> On 25 May 2024, at 06:42, Davide Varvello via Pharo-users 
>  wrote:
> 
> Hi,
> If you too miss some shortcuts like... cmd-v to show the versions of a 
> method, here is the solution, you have to add methodShortcutActivation to 
> SycShowMethodVersionCommand class:
> 
> SycShowMethodVersionCommand class >> methodShortcutActivation
> 
> ^ CmdShortcutActivation by: $v meta for: ClyMethod asCalypsoItemContext
> 
> HTH
> Cheers
> Davide


Stéphane Ducasse
http://stephane.ducasse.free.fr
06 30 93 66 73

"If you knew today was your last day on earth, what would you do differently? 
ESPECIALLY if, by doing something different, today might not be your last 
day on earth.” Calvin & Hobbes






[Pharo-users] [SOLVED] Shortcut CMD-v for version history

2024-05-24 Thread Davide Varvello via Pharo-users
Hi,
If you too miss some shortcuts like... cmd-v to show the versions of a method, 
here is the solution, you have to add methodShortcutActivation to 
SycShowMethodVersionCommand class:

SycShowMethodVersionCommand class >> methodShortcutActivation

^ CmdShortcutActivation by: $v meta for: ClyMethod asCalypsoItemContext

HTH
Cheers
Davide


[Pharo-users] Re: Window size: look at ClyBrowserMorph>>initialExtent

2024-05-13 Thread Davide Varvello via Pharo-users
Hi Tim,

I get it and appreciate your suggestion. My approach to contribute to the Pharo 
community is when I can solve an issue to post my solution or a workaround on 
this list, I know pushing code to github would be better but I can’t do more 
than this actually, sorry.

Cheers
Davide







On Friday, May 10, 2024 at 07:03:55 PM GMT+2, Tim Mackinnon  
wrote: 






Davide - why don't you submit a PR? I'm sure you can figure out how to add a 
settings to the system (can't offhand remember, but there are examples - and 
you can ask on the discord) and it would be a nice contribution to make .

Its all the little contributions that make the system better - I know I've been 
there, and saw how the others do it and so had a go.

Tim

On Fri, 10 May 2024, at 5:25 PM, Davide Varvello via Pharo-users wrote:
> Hi Guys,
> It seems to me the default size of a lot of windows is too small, so after 
> some search and thanks to this 
> https://stackoverflow.com/questions/55102480/how-do-i-change-the-default-height-of-the-system-browser
>  by Marko Grdinić
> 
> I discovered I can change the default size of many type of windows simply 
> changing ClyBrowserMorph>>initialExtent.
> HTH
> 
> It would be good to be able to manage the size of windows in Settings
> 
> Cheers
> Davide
> 


[Pharo-users] Re: The System Browser has recently started showing 2 comments tabs - one is text and one is formatted pretty. That seems odd and is not wanted...

2024-05-13 Thread Davide Varvello via Pharo-users
Switch version is never pain free.
Davide







On Monday, May 13, 2024 at 11:05:39 AM GMT+2, stephane ducasse 
 wrote: 





I understand.
Can you tell us what is blocking you to switch versions?


You should know that we did an amazing amount of job fixing a lot of glitches 
and improving  
Pharo over the last two years. 

Would you be interested in a special support for Pharo10 and at which price? 
Because we were thinking
about a LTS for Pharo but this is not free :).

Have fun. 



>> On Sunday, May 12, 2024 at 11:26:02 AM GMT+2, stephane ducasse 
>>  wrote: 
> 
> 
>> Not really. Did you check in Pharo 12? 
> 
> No, I can't switch Pharo version and I don't think is so uncommon to stay on 
> a stable version for a while.
> Davide 
> 
> 
> 
>> We got too busy on more important issues.
> 
>> S
> 
> 
> 
> 
> 
>> On 9 May 2024, at 11:43, Davide Varvello via Pharo-users 
>>  wrote:
>> 
>> 
>> 
>> Hi Guys,
>> 
>> Any news about this issue? It's happening also to me.
>> 
>> Cheers
>> Davide
>> 
>> 
>> 
>> 
>>   
>>   
>>   On Monday, January 9, 2023 at 07:03:43 AM GMT+1, Mark O'Donoghue 
>>  wrote: 
>> 
>> 
>> 
>> 
>> 
>> Hi Stephane
>>    
>> Many thanks for following up on the issue with the extra comment tab in the 
>> System Browser.
>>    
>> As requested, I have included more information below:
>>    
>> Versions
>> Over the last few days, I have seen the issue in 
>> Build information: 
>> Pharo-10.0.0+build.536.sha.2314c3f457171dcde477ff6575b578835f1fd519 (64 Bit)
>> I believe this is the latest stable P10 release for Windows 64.
>> It was created as a new image via Pharo Launcher version: 3.0.1
>>    
>> Previously I was using 
>> Build information: 
>> Pharo-10.0.0+build.515.sha.b18847fed2389428342d35b0056824644a1ce5fe (64 Bit)
>> And I was getting the normal comment tab behaviour. 
>> I still can see that when I fire up that old image.
>>    
>> Background
>> I had not used Pharo since July 2022, and before resuming work I decided to 
>> create a fresh new P10 image to work with.
>> Using the launcher, I created a new image based on the Pharo 10 (stable) 
>> image. And of course it updated the Windows 64 VM as well for me.
>> I then reloaded my code base and started work. Pretty soon I noticed the odd 
>> behaviour with the System Browser.
>> I then posed the question on discord for guidance.
>>    
>> Since then, I tried to simplify the issue by creating another new image 
>> based on Pharo 10 (stable).
>> This time I didn’t make any changes, alter settings, or loading any code or 
>> libraries. 
>> I checked the simple image and verified that the System Browser issue was 
>> happening.
>> Because this is just the ‘vanilla’ image, unchanged by me, I a hoping it 
>> will be easy to verify this behaviour at your end…
>>    
>>    
>> Cheers and regards
>> Mark
>> Perth, Western Australia
>>    
>> From: stephane ducasse  Sent: Sunday, 8 January 
>> 2023 10:43 PMTo: Any question about pharo is welcome 
>> Subject: [Pharo-users] Re: The System Browser 
>> has recently started showing 2 comments tabs - one is text and one is 
>> formatted pretty. That seems odd and is not wanted - has anyone else seen 
>> this? Pharo 10 stable image - windows 64 - all reloaded recently...
>>    
>> Hi mark 
>>    
>> Which version of Pharo are you using?
>> In P11 I saw some regressions.
>> S
>> 
>> 
>>> On 8 Jan 2023, at 14:30, mark.odonoghue.2...@gmail.com wrote:
>>>    
>>> 
>>    
>> 
>> 
> 
> 
> Stéphane Ducasse
> http://stephane.ducasse.free.fr
> 06 30 93 66 73
> 
> "If you knew today was your last day on earth, what would you do differently? 
> ESPECIALLY if, by doing something different, today might not be your last 
> day on earth.” Calvin & Hobbes
> 
> 
> 
> 
> 
> 


Stéphane Ducasse
http://stephane.ducasse.free.fr
06 30 93 66 73

"If you knew today was your last day on earth, what would you do differently? 
ESPECIALLY if, by doing something different, today might not be your last 
day on earth.” Calvin & Hobbes






[Pharo-users] The System Browser has recently started showing 2 comments tabs - one is text and one is formatted pretty. That seems odd and is not wanted...

2024-05-13 Thread Davide Varvello via Pharo-users







From: Davide Varvello 
To: stephane ducasse 
Sent: Monday, May 13, 2024 at 10:43:37 AM GMT+2
Subject: Re: [Pharo-users] The System Browser has recently started showing 2 
comments tabs - one is text and one is formatted pretty. That seems odd and is 
not wanted...


> On Sunday, May 12, 2024 at 11:26:02 AM GMT+2, stephane ducasse 
>  wrote: 


> Not really. Did you check in Pharo 12? 

No, I can't switch Pharo version and I don't think is so uncommon to stay on a 
stable version for a while.
Davide 




> We got too busy on more important issues.

>S





> On 9 May 2024, at 11:43, Davide Varvello via Pharo-users 
>  wrote:
> 
> 
> 
> Hi Guys,
> 
> Any news about this issue? It's happening also to me.
> 
> Cheers
> Davide
> 
> 
> 
> 
>  
>  
>  On Monday, January 9, 2023 at 07:03:43 AM GMT+1, Mark O'Donoghue 
> wrote: 
> 
> 
> 
> 
> 
> Hi Stephane
>   
> Many thanks for following up on the issue with the extra comment tab in the 
> System Browser.
>   
> As requested, I have included more information below:
>   
> Versions
> Over the last few days, I have seen the issue in 
> Build information: 
> Pharo-10.0.0+build.536.sha.2314c3f457171dcde477ff6575b578835f1fd519 (64 Bit)
> I believe this is the latest stable P10 release for Windows 64.
> It was created as a new image via Pharo Launcher version: 3.0.1
>   
> Previously I was using 
> Build information: 
> Pharo-10.0.0+build.515.sha.b18847fed2389428342d35b0056824644a1ce5fe (64 Bit)
> And I was getting the normal comment tab behaviour. 
> I still can see that when I fire up that old image.
>   
> Background
> I had not used Pharo since July 2022, and before resuming work I decided to 
> create a fresh new P10 image to work with.
> Using the launcher, I created a new image based on the Pharo 10 (stable) 
> image. And of course it updated the Windows 64 VM as well for me.
> I then reloaded my code base and started work. Pretty soon I noticed the odd 
> behaviour with the System Browser.
> I then posed the question on discord for guidance.
>   
> Since then, I tried to simplify the issue by creating another new image based 
> on Pharo 10 (stable).
> This time I didn’t make any changes, alter settings, or loading any code or 
> libraries. 
> I checked the simple image and verified that the System Browser issue was 
> happening.
> Because this is just the ‘vanilla’ image, unchanged by me, I a hoping it will 
> be easy to verify this behaviour at your end…
>   
>   
> Cheers and regards
> Mark
> Perth, Western Australia
>   
> From: stephane ducasse  Sent: Sunday, 8 January 
> 2023 10:43 PMTo: Any question about pharo is welcome 
> Subject: [Pharo-users] Re: The System Browser 
> has recently started showing 2 comments tabs - one is text and one is 
> formatted pretty. That seems odd and is not wanted - has anyone else seen 
> this? Pharo 10 stable image - windows 64 - all reloaded recently...
>   
> Hi mark 
>   
> Which version of Pharo are you using?
> In P11 I saw some regressions.
> S
> 
> 
>> On 8 Jan 2023, at 14:30, mark.odonoghue.2...@gmail.com wrote:
>>   
>> 
>   
> 
> 


Stéphane Ducasse
http://stephane.ducasse.free.fr
06 30 93 66 73

"If you knew today was your last day on earth, what would you do differently? 
ESPECIALLY if, by doing something different, today might not be your last 
day on earth.” Calvin & Hobbes






[Pharo-users] Window size: look at ClyBrowserMorph>>initialExtent

2024-05-10 Thread Davide Varvello via Pharo-users
Hi Guys,It seems to me the default size of a lot of windows is too small, so 
after some search and thanks to this 
https://stackoverflow.com/questions/55102480/how-do-i-change-the-default-height-of-the-system-browser
 by Marko Grdinić
I discovered I can change the default size of many type of windows simply 
changing ClyBrowserMorph>>initialExtent.HTH

It would be good to be able to manage the size of windows in Settings
CheersDavide


[Pharo-users] Re: The System Browser has recently started showing 2 comments tabs - one is text and one is formatted pretty. That seems odd and is not wanted...

2024-05-09 Thread Davide Varvello via Pharo-users
 Hi Guys,
Any news about this issue? It's happening also to me.
CheersDavide


On Monday, January 9, 2023 at 07:03:43 AM GMT+1, Mark O'Donoghue 
 wrote:  
 
 
Hi Stephane

  

Many thanks for following up on the issue with the extra comment tab in the 
System Browser.

  

As requested, I have included more information below:

  

Versions

Over the last few days, I have seen the issue in 

Build information: 
Pharo-10.0.0+build.536.sha.2314c3f457171dcde477ff6575b578835f1fd519 (64 Bit)

I believe this is the latest stable P10 release for Windows 64.

It was created as a new image via Pharo Launcher version: 3.0.1

  

Previously I was using 

Build information: 
Pharo-10.0.0+build.515.sha.b18847fed2389428342d35b0056824644a1ce5fe (64 Bit)

And I was getting the normal comment tab behaviour. 

I still can see that when I fire up that old image.

  

Background

I had not used Pharo since July 2022, and before resuming work I decided to 
create a fresh new P10 image to work with.

Using the launcher, I created a new image based on the Pharo 10 (stable) image. 
And of course it updated the Windows 64 VM as well for me.

I then reloaded my code base and started work. Pretty soon I noticed the odd 
behaviour with the System Browser.

I then posed the question on discord for guidance.

  

Since then, I tried to simplify the issue by creating another new image based 
on Pharo 10 (stable).

This time I didn’t make any changes, alter settings, or loading any code or 
libraries. 

I checked the simple image and verified that the System Browser issue was 
happening.

Because this is just the ‘vanilla’ image, unchanged by me, I a hoping it will 
be easy to verify this behaviour at your end…

  

  

Cheers and regards

Mark

Perth, Western Australia

  

From: stephane ducasse  
Sent: Sunday, 8 January 2023 10:43 PM
To: Any question about pharo is welcome 
Subject: [Pharo-users] Re: The System Browser has recently started showing 2 
comments tabs - one is text and one is formatted pretty. That seems odd and is 
not wanted - has anyone else seen this? Pharo 10 stable image - windows 64 - 
all reloaded recently...

  

Hi mark 

  

Which version of Pharo are you using?

In P11 I saw some regressions.

S






On 8 Jan 2023, at 14:30, mark.odonoghue.2...@gmail.com wrote:

  




  
  

[Pharo-users] Some issues in starting Pharo12 - Re: [ANN] Pharo 12 Release !

2024-05-08 Thread Davide Varvello via Pharo-users
 Hi Guys,
I'm trying to play with Pharo12 so I downloaded it via the Zeroconf script (it 
seems to me more approachable than the Pharo Launcher).The script (curl -L 
https://get.pharo.org | bash) got everything for my machine (apple silicon). 
Now, if I run pharo via command line everything is working, but if I double 
click on Pharo.app and select the image file Pharo.image nothing happens.
Can you check that behavior, please?
TIADavide
-
On Friday, April 26, 2024 at 12:20:41 PM GMT+2, Esteban Lorenzano via 
Pharo-users  wrote:  
 
   
Dear Pharo users and dynamic language lovers:
 
We have released Pharo version 12!
 
What is Pharo?


 

 

   

[Pharo-users] Re: How to run multiple images?

2024-01-24 Thread Davide Varvello via Pharo-users
 +1
Cheers
On Wednesday, January 24, 2024 at 10:17:31 AM GMT+1, Marcus Denker 
 wrote:  
 
 Yes, I would like to have drag-n-drop support, too. Or more specifically: 
double click of the imagein the Finder opens that image.
(I am on the mac)




  

[Pharo-users] Re: How to run multiple images?

2024-01-24 Thread Davide Varvello via Pharo-users
 Thanks both Sergio and Noury,
I'm not a big fan of the pharo launcher, but I'll give it a chance.
Anyway I found that the problem to run multiple VMs is a constraint of macos, 
see 
https://www.totalphase.com/support/articles/200349376-multiple-application-instances-on-mac-os-x/
  so if you want to run a couple of pharo.apps you should run them via 
terminal: open -n "/mypath pharo.app"

Cheers
Davide
On Tuesday, January 23, 2024 at 06:06:51 PM GMT+1, sergio ruiz 
 wrote:  
 
 I am in the same boat.
I have been using the pharo launcher for a few years, and it lets you do all of 
these things with no fuss..
check out: https://pharo.org/download


On Jan 23, 2024, at 11:39 AM, Davide Varvello via Pharo-users 
 wrote:
First: it is not possible anymore to drag and drop the image file on the VM 
(pharo.app), it was very comfortable.
Second: If I open the pharo.app and choose an image that becomes the only 
running image, I can't launch the pharo.app to run another image in parallel


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage 
BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV@sergio_101@mastodon.socialhttps://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101
  

[Pharo-users] How to run multiple images?

2024-01-23 Thread Davide Varvello via Pharo-users
Hi Guys,I'm on a mac apple silicon with Pharo 10, I've a couple of problems
First: it is not possible anymore to drag and drop the image file on the VM 
(pharo.app), it was very comfortable.
Second: If I open the pharo.app and choose an image that becomes the only 
running image, I can't launch the pharo.app to run another image in parallel
Are these 2 issues solvable, please? Any hint?
TIA
Davide

[Pharo-users] Re: FUEL version migration

2024-01-18 Thread Davide Varvello via Pharo-users
 Solved!
See the solution for FUEL migration issues here: 
https://github.com/theseion/Fuel/issues/289#issuecomment-1896454432
CheersDavide



On Monday, January 15, 2024 at 07:48:47 PM GMT+1, Davide Varvello via 
Pharo-users  wrote:  
 
 Hi Guys,How can I migrate from Fuel version 3.0.2 to the latest one?
This: https://theseion.github.io/Fuel/format-migration/  seems osbolete
TIA
Davide

  

[Pharo-users] Re: Backing up data

2024-01-18 Thread Davide Varvello via Pharo-users
 +1 for Fuel, see here https://github.com/theseion/Fuel
CheersDavide



On Thursday, January 18, 2024 at 09:37:21 AM GMT+1, Todd Blanchard via 
Pharo-users  wrote:  
 
 You want to look at Fuel, a serialization library.

Sent from my iPhone

On Jan 17, 2024, at 9:49 PM, sergio ruiz  wrote:




I have been in the relational database world for decades. One of the things 
that is super simple is backing up and restoring data.
Sometimes, it makes it makes sense to pull the production data into 
development. In the case of a catastrophe, it’s super simple to restore data 
from a backup.
I am thinking of backup strategies for my data once again, and am wondering if 
things have changed since I was last using smalltalk.
I am thinking of the following:
STONI could dump all of my data into STON, but there is one slight twist. In 
this project, it’s just making a list of movie listings. There are three basic 
classes: Theater, Movie, Event. Each of these classes stores an 
OrderedCollection of items of that type on a class variable, as I’ll need to 
access each on their own.. so, if an event has a theater, I’ll need to access 
Theaters on their own, and Movies on their own.
So, I would have to rebuild the list of Theaters from the Theaters in each 
event. Otherwise, I would lose the link between the Theaters on the Theater 
class variable and the Theater in the Event instance.
Am I thinking about this incorrectly?
GemstonesI am totally into the idea of using gemstones. Is there a backup and 
restore for objects here? do the relationships remain?
VoyageThis seems like a good solution, but I would rather stay in the smalltalk 
object store.
Ideas?
Thanks!

peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get=0x69B08F58923AB3A2
#BitMessage 
BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV@sergio_101@mastodon.socialhttps://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101
  

[Pharo-users] FUEL version migration

2024-01-15 Thread Davide Varvello via Pharo-users
Hi Guys,How can I migrate from Fuel version 3.0.2 to the latest one?
This: https://theseion.github.io/Fuel/format-migration/  seems osbolete
TIA
Davide



[Pharo-users] Re: How to halt on Test errors?

2024-01-08 Thread Davide Varvello via Pharo-users
 Hi Gabriel,Your answer leads back to my original question: how can I implement 
the "halt on error"? It is not clear to me.
Cheers
Davide
On Monday, January 8, 2024 at 02:31:33 PM GMT+1, Gabriel Cotelli 
 wrote:  
 
 You can implement another version of TestResult that halts when an error is 
added instead of recording it, and reimplement classForTestResult in the test 
cases to return this new class instead.

On Mon, Jan 8, 2024 at 5:54 AM Davide Varvello via Pharo-users 
 wrote:

 No ideas?
CheersDavide

On Thursday, January 4, 2024 at 03:42:17 PM GMT+1, Davide Varvello via 
Pharo-users  wrote:  
 
  Hi Noury,
You are right and reading your answer I understand I wasn't crystal clear.
I have a test scenario where sometimes a race condition occurs, so I'm not 
expecting any error. Which is why I'd prefer something built-in Pharo: a sort 
of "haltIfError" or "haltOnError" built-in command.Is there anything like that 
in Pharo?
TIA
Davide
On Thursday, January 4, 2024 at 01:24:59 PM GMT+1, Noury Bouraqadi 
 wrote:  
 
 Hi Davide,
Why not use one of the following:
self should: ["message that might signal an error"] raise: Error "Replace Error 
with the exception you want to catch"self shouldnt:  ["message that might 
signal an error"] raise: Error "Replace Error with the exception you want to 
catch"
On Jan 3 2024, at 4:55 pm, Davide Varvello via Pharo-users 
 wrote:
Hi Guys,
Sometimes I'd like to stop my test suite when an error occurs.
My raw approach is to put a self halt in the TestResult>>addError: and look at 
the debugger, but I'm wondering if there is a more suitable way.
Can you help me, please?
TIADavide

  

[Pharo-users] Re: How to halt on Test errors?

2024-01-08 Thread Davide Varvello via Pharo-users
 No ideas?
CheersDavide

On Thursday, January 4, 2024 at 03:42:17 PM GMT+1, Davide Varvello via 
Pharo-users  wrote:  
 
  Hi Noury,
You are right and reading your answer I understand I wasn't crystal clear.
I have a test scenario where sometimes a race condition occurs, so I'm not 
expecting any error. Which is why I'd prefer something built-in Pharo: a sort 
of "haltIfError" or "haltOnError" built-in command.Is there anything like that 
in Pharo?
TIA
Davide
On Thursday, January 4, 2024 at 01:24:59 PM GMT+1, Noury Bouraqadi 
 wrote:  
 
 Hi Davide,
Why not use one of the following:
self should: ["message that might signal an error"] raise: Error "Replace Error 
with the exception you want to catch"self shouldnt:  ["message that might 
signal an error"] raise: Error "Replace Error with the exception you want to 
catch"
On Jan 3 2024, at 4:55 pm, Davide Varvello via Pharo-users 
 wrote:
Hi Guys,
Sometimes I'd like to stop my test suite when an error occurs.
My raw approach is to put a self halt in the TestResult>>addError: and look at 
the debugger, but I'm wondering if there is a more suitable way.
Can you help me, please?
TIADavide


[Pharo-users] Re: How to halt on Test errors?

2024-01-04 Thread Davide Varvello via Pharo-users
 Hi Noury,
You are right and reading your answer I understand I wasn't crystal clear.
I have a test scenario where sometimes a race condition occurs, so I'm not 
expecting any error. Which is why I'd prefer something built-in Pharo: a sort 
of "haltIfError" or "haltOnError" built-in command.Is there anything like that 
in Pharo?
TIA
Davide
On Thursday, January 4, 2024 at 01:24:59 PM GMT+1, Noury Bouraqadi 
 wrote:  
 
 Hi Davide,
Why not use one of the following:
self should: ["message that might signal an error"] raise: Error "Replace Error 
with the exception you want to catch"self shouldnt:  ["message that might 
signal an error"] raise: Error "Replace Error with the exception you want to 
catch"
On Jan 3 2024, at 4:55 pm, Davide Varvello via Pharo-users 
 wrote:
Hi Guys,
Sometimes I'd like to stop my test suite when an error occurs.
My raw approach is to put a self halt in the TestResult>>addError: and look at 
the debugger, but I'm wondering if there is a more suitable way.
Can you help me, please?
TIADavide
  

[Pharo-users] How to halt on Test errors?

2024-01-03 Thread Davide Varvello via Pharo-users
Hi Guys,
Sometimes I'd like to stop my test suite when an error occurs.
My raw approach is to put a self halt in the TestResult>>addError: and look at 
the debugger, but I'm wondering if there is a more suitable way.
Can you help me, please?
TIADavide

[Pharo-users] [SOLVED} Cryptography repo on github not loading on Pharo 10

2023-12-04 Thread Davide Varvello via Pharo-users
Hi Norbert and guys on the list,
I finally made the suggestion Norbert gave me (see here: 
https://lists.pharo.org/empathy/thread/PG7CCEBGJOI4SNGO6GNQPCLP47EXWFAX?hash=6GB4PA62UNKWD7NM4P2Y27D3F22EQY6B#6GB4PA62UNKWD7NM4P2Y27D3F22EQY6B
 ) working.



There was something to tune in:
1) The SSL binding here https://github.com/PierceNg/OpenSSL-Pharo that's 
working on Pharo 10 is the pharo9 one. This one: 
Metacello new  baseline: 'OpenSSL';  repository: 
'github://PierceNg/OpenSSL-Pharo:openssl_1_1_pharo9/src-st';  load  the 
previous one (github://PierceNg/OpenSSL-Pharo:openssl_1_1/src-st) does not work 
with Pharo 10, it gives a DNU on LcLibCrypto>>moduleName.



2) The code Norbert suggested 
(https://lists.pharo.org/empathy/thread/PG7CCEBGJOI4SNGO6GNQPCLP47EXWFAX?hash=6GB4PA62UNKWD7NM4P2Y27D3F22EQY6B#6GB4PA62UNKWD7NM4P2Y27D3F22EQY6B)
 should be implemented in a subclass of LcLibCrypto
LcLibCrypto subclass: #MyCrypto instanceVariableNames: '' classVariableNames: 
'' package: 'MyPackage'




3) Call the method pbkdf2Password: aPlainPassword salt: aSalt iterations: 
someIterations keySize: aSize using uniqueInstance, i.e. MyCrypto 
uniqueInstance pbkdf2Password: aPlainPassword salt: aSalt iterations: 
someIterations keySize: aSize
HTH
CheersDavode

[Pharo-users] Re: Cryptography repo on github not loading on Pharo 10

2023-12-01 Thread Davide Varvello via Pharo-users
 Thank you, NorbertI'll use your approach, thank you very much
CheersDavide

On Thursday, November 30, 2023 at 11:06:09 PM GMT+1, Norbert Hartl 
 wrote:  
 
 You can load the code and I think PBKDF2 does not rely on the troubling code. 
But when you do this you will see that it is way too slow. The number of 
iterations for modern crypto environment makes a single password action many 
seconds to complete.
I use the https://github.com/PierceNg/OpenSSL-Pharo library where I’ve added 
two methods 
pbkdf2: password passwordLength: passlen salt: salt saltLength: saltlen 
iterations: iterations keySize: keySize result: result hashFunction: algo ^ 
self ffiCall: #(void PKCS5_PBKDF2_HMAC (const char* password, int passlen, 
const char* salt, int saltlen, int32 iterations, EVP_MD *algo, uint32 keySize, 
uint8* result))
and 
pbkdf2Password: password salt: salt iterations: iterations keySize: keySize | 
result | result := ByteArray new: keySize. self  pbkdf2: password  
passwordLength: password size salt: salt  saltLength: salt size iterations: 
iterations  keySize: keySize  result: result hashFunction: LcEvpSHA256 new. ^ 
result

maybe this helps even if it is not a load and use option. The two methods can 
just be added as extension methods in your own code.
Norbert

Am 30.11.2023 um 16:32 schrieb Davide Varvello via Pharo-users 
:
 Hi Marcus,Yes I can do it, but the Cryptogrphy package relies on 
InputEventSensor to generate random seeds in this code:
RandomGenerator class>> unpredictableStringsDo: aBlock "Enumerate sources of 
information from my environment that should be generally hard to guess." | time 
| time := Time millisecondsToRun: [ aBlock value: World imageForm bits 
compressToByteArray ; value: Sensor mousePoint x asString ; value: Sensor 
mousePoint y asString ; value: Time millisecondClockValue asByteArray ; value: 
Date today asString ; value: Time now asString ; value: Display extent 
asString. 100 timesRepeat: [ aBlock value: UUID new ]. #(imagePath 
lastUpdateString systemInformationString shortImageName datedVersion 
lastQuitLogPosition licenseStringTemplate)  collect: [ : each | aBlock value: 
(SmalltalkImage current perform: each) asByteArray ] ]. aBlock  value: time 
asByteArray; "maybe the pointer has moved, hit it again." value: Sensor 
mousePoint asString ; value: Time millisecondClockValue asByteArray

I need to use PBKDF2, is there any alternative (running on Pharo 10) to this 
Cryptography package? 
TIA
CheersDavide


On Thursday, November 30, 2023 at 12:48:49 PM GMT+1, Marcus Denker 
 wrote:  
 
 You could add a class InputEventSensor (just a subclass of Object) to make the 
code load
(the package might want to add methods to that class?)

After that it will be easier to see why it relies on low level code like that.

    Marcus

> On 29 Nov 2023, at 16:14, Davide Varvello via Pharo-users 
>  wrote:
> 
> 
> Nobody?
> InputEventSensor is missing in Pharo 10.
> 
> There are also several unheard requests about InputEventSensor on Discord, 
> see attachment.
> 
> Cheers
> Davide
> 
> 
> 
> On Tuesday, November 28, 2023 at 02:43:18 PM GMT+1, Davide Varvello via 
> Pharo-users  wrote: 
> 
> 
> Hi Guys,
> The crypto repo: 
> 
> Metacello new 
>  baseline: 'Cryptography'; 
>  repository: 'github://pharo-contributions/Cryptography'; 
>  load:'core'. 
> is not loading due to a dependency on InputEventSensor, can you help me 
> please?
> 
> TIA
> Davide
> 

  

  

[Pharo-users] Re: Cryptography repo on github not loading on Pharo 10

2023-11-30 Thread Davide Varvello via Pharo-users
 Hi Marcus,Yes I can do it, but the Cryptogrphy package relies on 
InputEventSensor to generate random seeds in this code:
RandomGenerator class>> unpredictableStringsDo: aBlock "Enumerate sources of 
information from my environment that should be generally hard to guess." | time 
| time := Time millisecondsToRun: [ aBlock value: World imageForm bits 
compressToByteArray ; value: Sensor mousePoint x asString ; value: Sensor 
mousePoint y asString ; value: Time millisecondClockValue asByteArray ; value: 
Date today asString ; value: Time now asString ; value: Display extent 
asString. 100 timesRepeat: [ aBlock value: UUID new ]. #(imagePath 
lastUpdateString systemInformationString shortImageName datedVersion 
lastQuitLogPosition licenseStringTemplate)  collect: [ : each | aBlock value: 
(SmalltalkImage current perform: each) asByteArray ] ]. aBlock  value: time 
asByteArray; "maybe the pointer has moved, hit it again." value: Sensor 
mousePoint asString ; value: Time millisecondClockValue asByteArray

I need to use PBKDF2, is there any alternative (running on Pharo 10) to this 
Cryptography package? 
TIA
CheersDavide


On Thursday, November 30, 2023 at 12:48:49 PM GMT+1, Marcus Denker 
 wrote:  
 
 You could add a class InputEventSensor (just a subclass of Object) to make the 
code load
(the package might want to add methods to that class?)

After that it will be easier to see why it relies on low level code like that.

    Marcus

> On 29 Nov 2023, at 16:14, Davide Varvello via Pharo-users 
>  wrote:
> 
> 
> Nobody?
> InputEventSensor is missing in Pharo 10.
> 
> There are also several unheard requests about InputEventSensor on Discord, 
> see attachment.
> 
> Cheers
> Davide
> 
> 
> 
> On Tuesday, November 28, 2023 at 02:43:18 PM GMT+1, Davide Varvello via 
> Pharo-users  wrote: 
> 
> 
> Hi Guys,
> The crypto repo: 
> 
> Metacello new 
>  baseline: 'Cryptography'; 
>  repository: 'github://pharo-contributions/Cryptography'; 
>  load:'core'. 
> is not loading due to a dependency on InputEventSensor, can you help me 
> please?
> 
> TIA
> Davide
> 

  

[Pharo-users] Cryptography repo on github not loading on Pharo 10

2023-11-28 Thread Davide Varvello via Pharo-users
Hi Guys,The crypto repo: 

Metacello new 

  baseline: 'Cryptography'; 

  repository: 'github://pharo-contributions/Cryptography'; 
  load:'core'. 
is not loading due to a dependency on InputEventSensor, can you help me please?
TIADavide

[Pharo-users] Re: Porting Pharo8 code to Pharo10

2023-11-28 Thread Davide Varvello via Pharo-users
 Hi David,Thank you for your reply, it is slightly different from my solution 
(see https://lists.pharo.org/empathy/thread/FKBM3BI7COOB4SMJKDHQVADBN6RQKPPN) 
but as same as effective.
Cheers Davide
On Monday, November 27, 2023 at 10:33:24 AM GMT+1,  
wrote:  
 
 
Hello Davide!

I used TonelWriter functionality in one of projects, following worked for me.

|tonelWriter|

tonelWriter := TonelWriterV2 on: FileLocator home asFileReference. “or any 
other directory”

tonelWriter writeSnapshot: ((RPackage named: 'YourPackageName') snapshot )

Note: TonelWriterV2 is replacement and valid from P11, it is slightly different 
than V1 (I don’t know the details). In P10 is still just TonelWriter.

Cheers,

David
  

[Pharo-users] [INFO] exporting and importing code with Tonel

2023-11-26 Thread Davide Varvello via Pharo-users
Hi Guys,
I've to move my code from Pharo8 to Pharo10, here: 
https://lists.pharo.org/empathy/thread/BMON6SATURPEHBHCWYOMOXCYMWEK7YE6?hash=BMON6SATURPEHBHCWYOMOXCYMWEK7YE6#BMON6SATURPEHBHCWYOMOXCYMWEK7YE6
 , Esteban suggests to use Tonel, I've no experience with it and after looking 
for info on the web, I summarize here these 2 statements
To export a package named MyPackage:
[ :packageName :directory |
      TonelWriter fileOut:  packageName asPackage mcWorkingCopy on: directory.
] value: 'MyPackage' value: '/aSelected/directory' asFileReference 



To import the package into another image:
(TonelReader on: '/aSelected/directory' asFileReference  fileName: 'MyPackage') 
version load.

HTH
Cheers
Davide

[Pharo-users] Re: Porting Pharo8 code to Pharo10

2023-11-26 Thread Davide Varvello via Pharo-users
Hi Esteban, I gave Tonel a chance, It worked.

The documentation about Tonel is 0, I'm going to write an email to the mlist 
with a couple of basic tonal commands for future help.
Cheers
Davide







On Saturday, November 25, 2023 at 11:57:51 AM GMT+1, Esteban Lorenzano 
 wrote: 





what a good moment to start using it, isn't? :)

Esteban

ps: if the cs exported the classes in different order than needed, there 
is not much the importer can do. You can always pre-create manually the 
class (a simple stub will suffice) and then expect the import process 
will fix the rest.


>   Hi Esteban
> On Saturday, November 25, 2023 at 08:29:14 AM GMT+1, Esteban Lorenzano 
>  wrote:
>> hi,
>>
>> some questions :)
>>
>>   1. why you are importing from cs? In pharo 8 there was already other 
>>formats available, including tonel.
> Yep, but I never used it
>
>>   1. Are you sure your missing class is not in another .cs you 
>>should install before?
> The class is in the same .cs
>
>>    2. In that sense, it would help to know which class is missing, we don't 
>>know if this is yours, ours or from an imported dependency.
> The class is mine and it is a subclass of Object
>
> Cheers
> Davide
>
>>
>> Esteban
>
> On 25/11/2023 07:15, Davide Varvello via Pharo-users wrote:
>
>
>>    
> Hi Guys,
>
> I can't port my Pharo 8 code to Pharo 10.
>
>
>
>
> I'm filing out my packages to a .cs file, but when I install it on Pharo 10 
> it shows an error that one of my class is missing, even if it is in the .cs 
> file.
>
>
>
>
> Any hints?
>
>
>
>
> TIA
>
> Davide
>


[Pharo-users] Re: Porting Pharo8 code to Pharo10

2023-11-25 Thread Davide Varvello via Pharo-users
 Hi Esteban
>
On Saturday, November 25, 2023 at 08:29:14 AM GMT+1, Esteban Lorenzano 
 wrote: 
>
> hi,
>
> some questions :)
>
> 1. why you are importing from cs? In pharo 8 there was already other 
>formats available, including tonel. 

Yep, but I never used it

>
> 1. Are you sure your missing class is not in another .cs you should 
>install before?
The class is in the same .cs

>  2. In that sense, it would help to know which class is missing, we don't 
>know if this is yours, ours or from an imported dependency.
The class is mine and it is a subclass of Object

Cheers
Davide

>
>
> Esteban


On 25/11/2023 07:15, Davide Varvello via Pharo-users wrote:


>  

Hi Guys,

I can't port my Pharo 8 code to Pharo 10. 




I'm filing out my packages to a .cs file, but when I install it on Pharo 10 it 
shows an error that one of my class is missing, even if it is in the .cs file.




Any hints?




TIA

Davide



[Pharo-users] Porting Pharo8 code to Pharo10

2023-11-24 Thread Davide Varvello via Pharo-users
Hi Guys,I can't port my Pharo 8 code to Pharo 10. 
I'm filing out my packages to a .cs file, but when I install it on Pharo 10 it 
shows an error that one of my class is missing, even if it is in the .cs file.
Any hints?
TIADavide

[Pharo-users] Re: How to run a Pharo 8 image on an Apple Silicon (ARM64)?

2023-08-07 Thread Davide Varvello via Pharo-users
Guillermo Polito wrote:

> Pharo8 is pretty old :)

Hi Gulliermo,

Have you any stats on what are the most used Pharo version?

> The best I can propose is that you try compiling the VM without the JIT 
> compiler.
> That will not give you optimum performances, but acceptable ones compared to 
> Rosetta.
>
> I’d suggest you try to compile using the branch pharo-9. That’s probably the 
> oldest branch that is easy to build using cmake.
>
> If the pharo-9 branch does not work for your image, then maybe you should 
> check the branches (see the branches v8.x.x).
>
> For installation/build instructions, please follow the readme instructions. 
> If you find any issues, tell us, maybe there are cheap workarounds or fixes 
> :).

Thank you for your hints. I try to move the codebase to Pharo9, if it is too 
cumbersome then I try to compile the VM without JIT.

Cheers

Davide

> Hope that helps,
> Guille
>
> > El 6 ago. 2023, a las 22:07, stephane ducasse 
> > [stephane.duca...@inria.fr](mailto:stephane.duca...@inria.fr) escribió:
> >
> > > On 4 Aug 2023, at 20:24, Davide Varvello via Pharo-users 
> > > [pharo-users@lists.pharo.org](mailto:pharo-users@lists.pharo.org) wrote:
> > >
> > > Hi Guys,
> > > I want to use my old Pharo 8 image on an Apple Silicon (ARM64). I 
> > > downloaded the stable VM for apple silicon 
> > > http://files.pharo.org/get-files/110/pharo-vm-Darwin- 
> > > <http://files.pharo.org/get-files/110/pharo-vm-Darwin-arm64-stable.zip>arm64
> > >  
> > > <http://files.pharo.org/get-files/110/pharo-vm-Darwin-arm64-stable.zip>-stable.zip
> > >  <http://files.pharo.org/get-files/110/pharo-vm-Darwin-arm64-stable.zip> 
> > > but it isn't working with my pharo8 image.
> > >
> > > My old VM is working, of course, but I suppose it's because of Rosetta... 
> > > and the performance is not optimal.
> > >
> > > Any other solution?
> >
> > I do not think that we have a solution. I’m sorry but we decided that we 
> > cannot garantee that old Pharo version can run on Apple Silicon
> > just because of engineering effort.
> > With Pharo we are always trying not to trade the past for the future but 
> > this is difficult.
> >
> > S.


[Pharo-users] Re: How to run a Pharo 8 image on an Apple Silicon (ARM64)?

2023-08-07 Thread Davide Varvello via Pharo-users
Hi Steph,

I see, I hoped as Pharo 8 and M1 were born in 2020 that Pharo8 was supported

Davide


[Pharo-users] Re: Installing code in a running image

2022-04-08 Thread Davide Varvello via Pharo-users
 Thanks Tim, that's a valid question, I don't love git so much, we have the 
code repository versioned on mercurial and we are also trying to have no more 
that a single baseline in production. On customers' machines should run only a 
small portion of code so I guess CodeImporter is enough, but I'll feedback the 
list within some days with my results ;-)
Thanks for helpingCheersDavide

On Monday, April 4, 2022, 03:31:42 PM GMT+2, Tim Mackinnon 
 wrote:  
 
 From memory - the Excercism project does this too (can't recall if it uses 
CodeImporter, but it does get source from Exercism and load it into the image).

Having said this - are you sure you don't want to have some versioned packed in 
git that your image can load up when needed? It would add a version control 
element for you which might make sense.

Tim
On Mon, 4 Apr 2022, at 2:15 PM, Davide Varvello via Pharo-users wrote:


Thanks Markus
It seems CodeImporter is the right tool

Davide

On Monday, April 4, 2022, 11:41:50 AM GMT+2, Marcus Denker 
 wrote:





On 1 Apr 2022, at 18:35, Davide Varvello via Pharo-users 
 wrote:
Hi Folks!

For a customer of mine I want to download a bunch of new code from my webserver 
and installing it in a running Pharo image, is there a feasible way to do it?


Maybe you could just have file-outs on the server and then just load it with 
CodeImporter?

Reading from a URL:

ZnClient new get: ‘someURL’.

Loading file outs from a String:

CodeImporter class>>#evaluateString:


Marcus



  

[Pharo-users] Re: Installing code in a running image

2022-04-04 Thread Davide Varvello via Pharo-users
 Thanks MarkusIt seems CodeImporter is the right tool
Davide
On Monday, April 4, 2022, 11:41:50 AM GMT+2, Marcus Denker 
 wrote:  
 
 


On 1 Apr 2022, at 18:35, Davide Varvello via Pharo-users 
 wrote:
Hi Folks!
For a customer of mine I want to download a bunch of new code from my webserver 
and installing it in a running Pharo image, is there a feasible way to do it?


Maybe you could just have file-outs on the server and then just load it with 
CodeImporter?
Reading from a URL:
 ZnClient new get: ‘someURL’.
Loading file outs from a String:
CodeImporter class>>#evaluateString:

 Marcus
  

[Pharo-users] Installing code in a running image

2022-04-01 Thread Davide Varvello via Pharo-users
Hi Folks!
For a customer of mine I want to download a bunch of new code from my webserver 
and installing it in a running Pharo image, is there a feasible way to do it?
ThanksDavide

[Pharo-users] Re: aio event forwarding not supported

2022-02-07 Thread Davide Varvello via Pharo-users
Workaround!!!

Here I am again.
I found a workaround for the PipeableOSProcess and the Big Sur update. It is 
the usage of LibC, I was not aware of that class, it's useful.
I was able to reproduce my logic with LibC, this article 
(https://fuhrmanator.github.io/2019/03/16/LibC-Pharo-experiments.html) is 
recommended.

Cheers
Davide






[Pharo-users] Re: aio event forwarding not supported

2022-02-05 Thread Davide Varvello via Pharo-users




Hi Stephane




> On Saturday, February 5, 2022, 10:58:37 AM GMT+1, stephane.duca...@free.fr 
>  wrote: 





>Hi david
>
>Can you tell us on which version of os-x you are?


I'm on Big Sur, see my original message: 
https://www.mail-archive.com/pharo-users@lists.pharo.org/msg40530.html
And the bug I opened 
https://pharo.fogbugz.com/f/cases/22925/aio-event-forwarding-not-supported 


> We faced many glitches with monterrey. For example sometimes at startup my 
> images do not get events :(
> Pablo is going on vacation for two weeks and esteban and me too :)
> So we will be slower to react. 

> Now you face what we face, the world keeps changing under our feets and
> this brings us many things that we did not want/plan to work on.

> This is why VMs are nice for the users they abstract the shit underneath but 
> nevertheless it exists.

> S


I know it's a tough job, I'm trying to implement a workaround, thanks for your 
work.
Davide


[Pharo-users] Re: aio event forwarding not supported

2022-02-04 Thread Davide Varvello via Pharo-users
 Hi David,I don't think is an issue of warning, even if I apply your patch I 
have the same error, see: https://imgur.com/a/pYcLLWx



To reproduce the bug: Be on  Big Sur 11.6.3 (20G415) 
https://support.apple.com/en-us/HT213055Download Pharo 8: curl 
https://get.pharo.org/64/80+vm|bash
Open the image and evaluate ina playground:Metacello new     configuration: 
'OSProcess';     repository: 'http://www.squeaksource.com/MetacelloRepository'; 
   load .

and then
(PipeableOSProcess command: 'ps')  output.

The bug will show itself
CheersDavide
On Friday, February 4, 2022, 04:39:28 PM GMT+1, David T. Lewis 
 wrote:  
 
 Hi Davide,

Actually the warning has been removed in newer versions of OSProcess.
I do not have time to do an update for Pharo now, but in the mean time
you can apply this change in your image to remove the notifier:

AioEventHandler>>initializeForExceptions: exceptionEventFlag readEvents: 
readEventFlag writeEvents: writeEventFlag
    semaphore := Semaphore new.
    semaIndex := Smalltalk registerExternalObject: semaphore.
    (AioPluginPresent = true) ifTrue: [
        ([self aioEnable: self descriptor forSemaphore: self semaIndex 
externalObject: true]
            on: Warning
            do: [:e |
                self close. "unregister the semaphore"
                OSProcess trace: e messageText asString. nil])
            ifNotNil:
                [handlerProc := self
                    handleExceptions: exceptionEventFlag
                    readEvents: readEventFlag
                    writeEvents: writeEventFlag]]


HTH,
Dave



On Fri, Feb 04, 2022 at 03:05:57PM +, Davide Varvello wrote:
>  Hi David,That's weird because if the AioPlugin is not present in my 
>VM,??PipeableOSProcess shouldn't have worked till this morning... when I 
>upgraded my mac :-)
> The warning is not skippable, it stops me at:??MessageNotUnderstood: IRJump>> 
> #nextBytecodeOffsetAfterJumpCheersDavide
> 
>    On Friday, February 4, 2022, 03:54:59 PM GMT+1, David T. Lewis 
> wrote:  
>  
>  On Fri, Feb 04, 2022 at 01:46:46PM +, Davide Varvello via Pharo-users 
>wrote:
> > Hi guys,
> > Suddenly evaluating a simple: (PipeableOSProcess command: 'ps') output, or 
> > any other PipeableOSProcess command, Pharo gives me: "aio event forwarding 
> > not supported".
> > I guess it is something related to the latest update of the OS, 
> > specifically Big Sur 11.6.3 (20G415) 
> > https://support.apple.com/en-us/HT213055I'm on a Mac, of course, Pharo 
> > 8.0.0, Build information: 
> > Pharo-8.0.0+build.1128.sha.9f6475d88dda7d83acdeeda794df35d304cf620d (64 Bit)
> > Can you help me, please?CheersDavide
> 
> Hi Davide,
> 
> The warning message indicates that the AioPlugin is not present
> in your VM. I do not know the reason for that, although your
> PipeableOSProcess should still work if you proceed through the
> warning.
> 
> Dave
> 
>  
  

[Pharo-users] Re: aio event forwarding not supported

2022-02-04 Thread Davide Varvello via Pharo-users
 Hi David,That's weird because if the AioPlugin is not present in my VM, 
PipeableOSProcess shouldn't have worked till this morning... when I upgraded my 
mac :-)
The warning is not skippable, it stops me at: MessageNotUnderstood: IRJump>> 
#nextBytecodeOffsetAfterJumpCheersDavide

On Friday, February 4, 2022, 03:54:59 PM GMT+1, David T. Lewis 
 wrote:  
 
 On Fri, Feb 04, 2022 at 01:46:46PM +, Davide Varvello via Pharo-users 
wrote:
> Hi guys,
> Suddenly evaluating a simple: (PipeableOSProcess command: 'ps') output, or 
> any other PipeableOSProcess command, Pharo gives me: "aio event forwarding 
> not supported".
> I guess it is something related to the latest update of the OS, specifically 
> Big Sur 11.6.3 (20G415) https://support.apple.com/en-us/HT213055I'm on a Mac, 
> of course, Pharo 8.0.0, Build information: 
> Pharo-8.0.0+build.1128.sha.9f6475d88dda7d83acdeeda794df35d304cf620d (64 Bit)
> Can you help me, please?CheersDavide

Hi Davide,

The warning message indicates that the AioPlugin is not present
in your VM. I do not know the reason for that, although your
PipeableOSProcess should still work if you proceed through the
warning.

Dave

  

[Pharo-users] aio event forwarding not supported

2022-02-04 Thread Davide Varvello via Pharo-users
Hi guys,
Suddenly evaluating a simple: (PipeableOSProcess command: 'ps') output, or any 
other PipeableOSProcess command, Pharo gives me: "aio event forwarding not 
supported".
I guess it is something related to the latest update of the OS, specifically 
Big Sur 11.6.3 (20G415) https://support.apple.com/en-us/HT213055I'm on a Mac, 
of course, Pharo 8.0.0, Build information: 
Pharo-8.0.0+build.1128.sha.9f6475d88dda7d83acdeeda794df35d304cf620d (64 Bit)
Can you help me, please?CheersDavide

[Pharo-users] Re: Size of the critic panel in Calypso

2021-07-11 Thread Davide Varvello via Pharo-users
 Thank you very much for the suggestion, Yanni, it's working!CheersDavide
On Saturday, July 10, 2021, 06:34:48 PM GMT+2, Yanni Chiu 
 wrote:  
 
 With the hint, I found ClyCriticDecorator>>showCritiques where I changed the 
two 0.8 factors to 0.9. It would be better to specify the number of lines, but 
this is good enough. I’d searched the settings several times, at various times 
but had pretty much given up. 
Yanni Chiu 
  

[Pharo-users] Re: Size of the critic panel in Calypso

2021-07-09 Thread Davide Varvello via Pharo-users
 

   

  Hi Alexandre,Yep but I don't want to get rid of it, in my opinion it is 
useful. I need to resize it
Anyone with the solution? :-)
CheersDavide


On Friday, July 9, 2021, 01:58:57 PM GMT+2, Alexandre Bergel 
 wrote:  
 
 No idea. 
But, the way to remove it is by evaluating:

ClyCriticBrowserPlugin disable.

Maybe you can trace it to see how the panel size is set.

Cheers,
Alexandre

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



> On 9 Jul 2021, at 12:07, Davide Varvello via Pharo-users 
>  wrote:
> 
> Hi Guys, 
> How can I reduce the height of the critic panel in Calypso? I don't want to 
> get rid of it. 
> TIA 
> Davide



[Pharo-users] Size of the critic panel in Calypso

2021-07-09 Thread Davide Varvello via Pharo-users
Hi Guys, How can I reduce the height of the critic panel in Calypso? I don't 
want to get rid of it. TIA Davide

[Pharo-users] Re: Reading http post data using Zinc

2021-06-17 Thread Davide Varvello via Pharo-users
Hi Sven,
I'm sending a FormData, so the right code is in
ZnDefaultServerDelegate>>#formTest3: that you pointed out. Thank you very
much.



To help other people of the list, I summarize that in case of multipart
form-data you have to read the entity and its parts, for example:
(aRequest entity partNamed: #myPartName) fieldValueString.

or also:
aRequest entity parts first fieldName.
aRequest entity parts first fieldValue 


Cheers
Davide



Sven Van Caekenberghe-2 wrote
> Hi Davide,
> 
>> On 16 Jun 2021, at 23:17, Davide Varvello via Pharo-users 

> pharo-users@.pharo

>  wrote:
>> 
>> Hi Guys,
>> I'm posting from an http form and I'm wondering how to read data from the
>> post. It seems the request should give a ZnMultiPartFormDataEntity, but I
>> can't find how to use it.
>> 
>> Can you help me please?
>> Davide
>> 
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
> 
> It depends on how the form is posted (there are two approaches).
> 
> A working example of both can be found in
> ZnDefaultServerDelegate>>#formTest2: and #formTest3:
> 
> ZnServerTest>>#testFormTest2: and #testFormTest3: exercise this
> functionality
> 
> Basically, you just take the entity from the request and use it.
> 
> HTH,
> 
> Sven





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


[Pharo-users] Reading http post data using Zinc

2021-06-16 Thread Davide Varvello via Pharo-users
Hi Guys,
I'm posting from an http form and I'm wondering how to read data from the
post. It seems the request should give a ZnMultiPartFormDataEntity, but I
can't find how to use it.

Can you help me please?
Davide




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


[Pharo-users] Re: FileDoesNotExistException: '/.VolumeIcon.icns'

2021-06-07 Thread Davide Varvello via Pharo-users
Hi Stéphane

* I'm on mac Big Sur, Pharo8.
* Opening the File Browser it gives me FileDoesNotExistException:
'/.VolumeIcon.icns'

But I solved thanks to
http://forum.world.st/All-file-accesses-get-externalCalledFailed-exceptions-td5115342.html#a5115530

Cheers
Davide




Stéphane Ducasse wrote
> Hi davide 
> 
> We can help :) and ready to. 
> But we need better bug reports. 
> OS you use, image, VM
>  
> How to reproduce the bug?
> 
> S. 
> 
> 
>> On 1 Jun 2021, at 23:00, Davide Varvello via Pharo-users 

> pharo-users@.pharo

>  wrote:
>> 
>> Hi Guys
>> Opening the File Browser on Pharo8 (and also on Pharo9) gives me
>> FileDoesNotExistException: '/.VolumeIcon.icns'
>> 
>> Can you help me please?
>> Davide
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
> 
> 
> Stéphane Ducasse
> http://stephane.ducasse.free.fr / http://www.pharo.org 
> 03 59 35 87 52
> Assistant: Aurore Dalle 
> FAX 03 59 57 78 50
> TEL 03 59 35 86 16
> S. Ducasse - Inria
> 40, avenue Halley, 
> Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
> Villeneuve d'Ascq 59650
> France





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


[Pharo-users] FileDoesNotExistException: '/.VolumeIcon.icns'

2021-06-01 Thread Davide Varvello via Pharo-users
Hi Guys
Opening the File Browser on Pharo8 (and also on Pharo9) gives me
FileDoesNotExistException: '/.VolumeIcon.icns'

Can you help me please?
Davide



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


[Pharo-users] Image crashed on Parallels

2021-06-01 Thread Davide Varvello via Pharo-users
Hi Guys,
I'm running a 32bit image (Pharo5) on OSX Mojave on Parallels but
unfortunately it crashes.
The same image is working on my old mac with Mojave so I'm wondering what
the issue is.

Reading the dump file it seems a display problem but I'm not a vm expert so
here is the dmp, I'm seeking help from you, thanks
Davide

Segmentation fault Tue Jun  1 19:03:55 2021


VM: 201707012338 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $
Date: Sat Jul 1 16:38:23 2017 -0700 $
Plugins: 201707012338 https://github.com/OpenSmalltalk/opensmalltalk-vm.git
$

C stack backtrace & registers:
eax 0x001b ebx 0x797b3147 ecx 0x001c9f18 edx 0x001c9f30
edi 0x esi 0x ebp 0xbfed4bb8 esp 0xbfed4ba0
eip 0xa7d8e957
0   libsystem_platform.dylib0xa7d8e957 _platform_strstr + 40
1   Pharo   0x0017e440 reportStackState + 819
2   Pharo   0x0017e7c6 sigsegv + 163
3   libsystem_platform.dylib0xa7d90bbe _sigtramp + 46
4   ??? 0x 0x0 + 4294967295
5   Pharo   0x00178bf8 -[sqSqueakOSXOpenGLView
setupOpenGL] + 149
6   Pharo   0x00179617 -[sqSqueakOSXOpenGLView
drawRect:flush:] + 182
7   Pharo   0x00178a7a -[sqSqueakOSXOpenGLView
drawThelayers] + 105
8   Pharo   0x0018027b -[sqSqueakScreenAndWindow
ioForceDisplayUpdate] + 196
9   Pharo   0x0017ff49 ioForceDisplayUpdate + 61
10  Pharo   0x0013e3ab primitiveShowDisplayRect
+ 191
11  Pharo   0x000ff9d8 interpret + 26051
12  Pharo   0x00108e8a
enterSmalltalkExecutiveImplementation + 135
13  Pharo   0x000f969b interpret + 646
14  Pharo   0x0017f9b9 -[sqSqueakMainApplication
runSqueak] + 476
15  Foundation  0x95216f18 __NSFirePerformWithOrder
+ 413
16  CoreFoundation  0x9381de5a
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 22
17  CoreFoundation  0x9381dd83 __CFRunLoopDoObservers +
459
18  CoreFoundation  0x937c4dc2 __CFRunLoopRun + 2365
19  CoreFoundation  0x937c4188 CFRunLoopRunSpecific +
584
20  CoreFoundation  0x937dceed CFRunLoopRunInMode + 82
21  HIToolbox   0x92de5b71 RunCurrentEventLoopInMode
+ 323
22  HIToolbox   0x92de573c ReceiveNextEventCommon +
438
23  HIToolbox   0x92de5567
_BlockUntilNextEventMatchingListInModeWithFilter + 71
24  AppKit  0x914a8190 _DPSNextEvent + 1164
25  AppKit  0x914a6d5b -[NSApplication(NSEvent)
_nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 957
26  AppKit  0x914a6996 -[NSApplication(NSEvent)
nextEventMatchingMask:untilDate:inMode:dequeue:] + 108
27  AppKit  0x914a1037 -[NSApplication run] +
751
28  AppKit  0x91490e47 NSApplicationMain + 1140
29  libdyld.dylib   0xa7ba7051 start + 1


Smalltalk stack dump:
0xbfed6bcc I DisplayScreen>forceToScreen: 0x437f528: a(n) DisplayScreen
0xbfed6be8 M [] in DisplayScreen>forceDamageToScreen: 0x437f528: a(n)
DisplayScreen
0xbfed6c0c M OrderedCollection>do: 0x414d060: a(n) OrderedCollection
0xbfed6c38 I DisplayScreen>forceDamageToScreen: 0x437f528: a(n)
DisplayScreen
0xbfed6c5c I WorldState>forceDamageToScreen: 0x4809e60: a(n) WorldState
0xbfed6c88 I WorldState>displayWorld:submorphs: 0x4809e60: a(n) WorldState
0xbfed6cb0 I WorldMorph>displayWorld 0x4a659e0: a(n) WorldMorph
0xbfed6ccc M [] in WorldState>displayWorldSafely: 0x4809e60: a(n) WorldState
0xbfed6ce4 M BlockClosure>on:do: 0xfed4928: a(n) BlockClosure
0xbfed6d04 M BlockClosure>ifError: 0xfed4928: a(n) BlockClosure
0xbfed6d28 I WorldState>displayWorldSafely: 0x4809e60: a(n) WorldState
0xbfed6d4c I WorldState>doOneCycleNowFor: 0x4809e60: a(n) WorldState
 0xef60ec0 s WorldState>doOneCycleFor:
 0xef60f20 s WorldMorph>doOneCycle
 0xec74820 s [] in MorphicUIManager>spawnNewProcess
 0xec746b8 s [] in BlockClosure>newProcess

Most recent primitives
fractionPart
truncated
fractionPart
truncated
@
@
@
@
@
@
@
@
**PrimitiveFailure**
**PrimitiveFailure**
@
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
bitShiftMagnitude:
digitAdd:

[Pharo-users] Re: Crash after http request, see the dump file

2021-04-16 Thread Davide Varvello via Pharo-users
Hi David,
Usually when the image crashes you'll find a crash.dmp file.
It's weird there isn't anything
Davide


Long Haired David wrote
> Sorry to but in here but I have just moved my Pharo/Seaside server
> software from my MacBookAir, where it has run without issue for the last
> couple of weeks, onto firstly a Lenovo desktop running Windows 2012 server
> and then, in frustration , onto a Dell laptop but it hasn’t managed to run
> for 24 hours without crashing (by crashing, I mean Pharo just
> disappears!). I don’t us any OsProcess, just ordinary Seaside and
> Smalltalk code. It has happened three days in a row at different times
> with different pages being accessed.
> 
> Both Windows machines have ample disk space (SSD) and 16GB memory.
> 
> How do I get a dump as I can’t see any files that would be regarded as so?
> 
> David
> 
>> On 15 Apr 2021, at 14:55, Guillermo Polito 

> guillermopolito@

>  wrote:
>> 
>> Hi Davide,
>> 
>> Taking a look at the dump, I’d say it looks like a memory corruption.
>> It crashes when running the GC, but very probably because the heap was
>> already corrupt.
>> 
>> 
>> 5   Pharo   0x00010582ea3b mapStackPages
>> + 345
>> 6   Pharo   0x00010582e0ff
>> mapInterpreterOops + 16
>> 7   Pharo   0x00010580af54 doScavenge +
>> 648
>> 8   Pharo   0x00010581305e
>> scavengingGCTenuringIf + 333
>> 9   Pharo   0x0001057f663a
>> checkForEventsMayContextSwitch + 111
>> 10  Pharo   0x0001057fa815
>> ceStackOverflow + 110
>> 11  ??? 0x00010b25c62b 0x0 +
>> 4481992235
>> 12  Pharo   0x0001057e2b0a interpret +
>> 632
>> 
>> Does this happen often in your setup?
>> 
>> G
>> 
>> 
>>> El 14 abr 2021, a las 10:21, Davide Varvello via Pharo-users 

> pharo-users@.pharo

>  mailto:

> pharo-users@.pharo

> > escribió:
>>> 
>>> Hi Sven,
>>> It has not happened today. I also use a lot of OsProcess, but I don't
>>> know
>>> if it is related to it.
>>> Cheers
>>> Davide
>>> 
>>> 
>>> 
>>> Sven Van Caekenberghe-2 wrote
>>>> I can't see anything networking, HTTP or Zinc related in the dump.
>>>> It looks like something went wrong during garbage collection.
>>>> I suppose this is not a repeatable case, is it ?
>>>> 
>>>>> On 14 Apr 2021, at 09:22, Davide Varvello via Pharo-users 
>>> 
>>>> pharo-users@.pharo
>>> 
>>>>  wrote:
>>>>> 
>>>>> Hi guys,
>>>>> I'm working on Pharo 8 on BigSur 
>>>>> (Pharo 8.0.0 Build information:
>>>>> Pharo-8.0.0+build.1128.sha.9f6475d88dda7d83acdeeda794df35d304cf620d
>>>>> (64
>>>>> Bit))
>>>>> 
>>>>> Yesterday after an http call to my zinc server the image crashed.
>>>>> Can you please take a look to the dump file and tell me what happened?
>>>>> 
>>>>> It would be worth so much to me, thank you
>>>>> 
>>>>> The file is here: https://pastebin.com/SrE6gcCv
>>>>> https://pastebin.com/SrE6gcCv;
>>>>> 
>>>>> 
>>>>> Davide
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>>>> http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html;
>>> 
>>> 
>>> 
>>> 
>>> 
>>> --
>>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>> http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html;





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


[Pharo-users] Re: Crash after http request, see the dump file

2021-04-15 Thread Davide Varvello via Pharo-users
Hi Guillermo,
Nope, it was the first time, but I worry it can happen in the future.
Cheers
Davide


Guillermo Polito wrote
> Hi Davide,
> 
> Taking a look at the dump, I’d say it looks like a memory corruption.
> It crashes when running the GC, but very probably because the heap was
> already corrupt.
> 
> 
> 5   Pharo   0x00010582ea3b mapStackPages +
> 345
> 6   Pharo   0x00010582e0ff
> mapInterpreterOops + 16
> 7   Pharo   0x00010580af54 doScavenge +
> 648
> 8   Pharo   0x00010581305e
> scavengingGCTenuringIf + 333
> 9   Pharo   0x0001057f663a
> checkForEventsMayContextSwitch + 111
> 10  Pharo   0x0001057fa815 ceStackOverflow
> + 110
> 11  ??? 0x00010b25c62b 0x0 +
> 4481992235
> 12  Pharo   0x0001057e2b0a interpret + 632
> 
> Does this happen often in your setup?
> 
> G
> 
> 
>> El 14 abr 2021, a las 10:21, Davide Varvello via Pharo-users 

> pharo-users@.pharo

>  escribió:
>> 
>> Hi Sven,
>> It has not happened today. I also use a lot of OsProcess, but I don't
>> know
>> if it is related to it.
>> Cheers
>> Davide
>> 
>> 
>> 
>> Sven Van Caekenberghe-2 wrote
>>> I can't see anything networking, HTTP or Zinc related in the dump.
>>> It looks like something went wrong during garbage collection.
>>> I suppose this is not a repeatable case, is it ?
>>> 
>>>> On 14 Apr 2021, at 09:22, Davide Varvello via Pharo-users 
>> 
>>> pharo-users@.pharo
>> 
>>>  wrote:
>>>> 
>>>> Hi guys,
>>>> I'm working on Pharo 8 on BigSur 
>>>> (Pharo 8.0.0 Build information:
>>>> Pharo-8.0.0+build.1128.sha.9f6475d88dda7d83acdeeda794df35d304cf620d (64
>>>> Bit))
>>>> 
>>>> Yesterday after an http call to my zinc server the image crashed.
>>>> Can you please take a look to the dump file and tell me what happened?
>>>> 
>>>> It would be worth so much to me, thank you
>>>> 
>>>> The file is here: https://pastebin.com/SrE6gcCv
>>>> 
>>>> 
>>>> Davide
>>>> 
>>>> 
>>>> 
>>>> --
>>>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>> 
>> 
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>> http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html;





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


[Pharo-users] Re: Crash after http request, see the dump file

2021-04-14 Thread Davide Varvello via Pharo-users
Hi Sven,
It has not happened today. I also use a lot of OsProcess, but I don't know
if it is related to it.
Cheers
Davide



Sven Van Caekenberghe-2 wrote
> I can't see anything networking, HTTP or Zinc related in the dump.
> It looks like something went wrong during garbage collection.
> I suppose this is not a repeatable case, is it ?
> 
>> On 14 Apr 2021, at 09:22, Davide Varvello via Pharo-users 

> pharo-users@.pharo

>  wrote:
>> 
>> Hi guys,
>> I'm working on Pharo 8 on BigSur 
>> (Pharo 8.0.0 Build information:
>> Pharo-8.0.0+build.1128.sha.9f6475d88dda7d83acdeeda794df35d304cf620d (64
>> Bit))
>> 
>> Yesterday after an http call to my zinc server the image crashed.
>> Can you please take a look to the dump file and tell me what happened?
>> 
>> It would be worth so much to me, thank you
>> 
>> The file is here: https://pastebin.com/SrE6gcCv
>> 
>> 
>> Davide
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html





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


[Pharo-users] Crash after http request, see the dump file

2021-04-14 Thread Davide Varvello via Pharo-users
Hi guys,
I'm working on Pharo 8 on BigSur 
(Pharo 8.0.0 Build information:
Pharo-8.0.0+build.1128.sha.9f6475d88dda7d83acdeeda794df35d304cf620d (64
Bit))

Yesterday after an http call to my zinc server the image crashed.
Can you please take a look to the dump file and tell me what happened?

It would be worth so much to me, thank you

The file is here: https://pastebin.com/SrE6gcCv


Davide



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


[Pharo-users] Hack to show timestamp and author on versions of methods

2021-02-10 Thread Davide Varvello via Pharo-users
Hi Guys
In my opinion it is really uncomfortable working without the timestamp of a
specific version of a method, I read the explanation of Esteban in the
previous thread
(http://forum.world.st/pharo-8-method-versions-how-to-see-author-timestamp-td5116685.html)
but probably it will take some time before to see a new VersionBrowser and
the history based on git is not really a solution to me. 
So it took a day of debugging but I discovered the flow of "versions" in
Pharo 8 and I added the logic of the timestamp and the author of a method.


Basically I created a subclass of MessageList I named it VersionMessageList,
in this way the original MessageList is preserved for other goals I can
safely ignore.

Now
1) You can file-in VersionMessageList.st (see below) and 
2) You have to change VersionBrowser >> initializePresenters using
VersionMessageList this way:

VersionBrowser >> initializePresenters
messageList := self instantiate: VersionMessageList .


Be careful, it's a hack and it's working on Pharo8, I don't know if it works
on Pharo9

Cheers
Davide



VersionMessageList.st
  



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


[Pharo-users] Re: pharo 8 - method versions - how to see author/timestamp?

2021-02-08 Thread Davide Varvello via Pharo-users
Esteban,
Is there a hack I can do to put the timestamp in the VersionBrowser?
Thanks
Davide


Esteban Lorenzano wrote
> versions are going to stay there, we never even thought on removing that
> ;)
> they will come from Epicea instead the changes file (because yes, we want
> to remove the changes file... but this one is a hard one ;) ).
> and yes, they will have a timestamp (which is what the in-image versions
> is lacking now).
> 
> Esteban
> On Feb 5 2021, at 4:47 pm, Noury Bouraqadi 

> bouraqadi@

>  wrote:
>> So, will this remain in the image, and the timestamp will be eventually
>> fixed?
>>
>> Thanks





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


[Pharo-users] Re: pharo 8 - method versions - how to see author/timestamp?

2021-02-05 Thread Davide Varvello via Pharo-users
Thanks Esteban, I've just found this thread of Stephane
http://forum.world.st/Cant-add-local-git-repo-to-Iceberg-tp5116836p5117058.html
that explains a bit



Esteban Lorenzano wrote
> Hi,
> 
> From what I see, indeed you are missing some concepts of what iceberg is
> and their relation with a package.
> 1) iceberg is a VCS for Pharo, a frontend for git.
> 2) an iceberg project stores packages and its versions (commits), but for
> that you have to add or create an iceberg project and add the packages you
> want to handle there. There is no automagical process.
> 3) the "pharo" project there has what comes with pharo, not your packages.
> If you want to store your packages, you need your own project.
> 
> And well, that.
> There are some videos around (no time to look for them now, but I am sure
> someone can point to them) explaining how to use it and make things with
> it.
> But something to keep in mind, if you want to be happy with iceberg is:
> Iceberg is NOT ENVY, and it will never be. Its design and patterns are
> very different and require a different mindset to use it.
> 
> Esteban
> On Feb 5 2021, at 5:29 pm, Davide Varvello via Pharo-users 

> pharo-users@.pharo

>  wrote:
>> Anyway Esteban, it's for sure a limit of mine, but It's an hour I'm
>> trying to
>> set up a local Iceberg for my package and I can't configure it.
>>
>> Some issue I faced:
>> 1) I opened Iceberg and saw "pharo" had "Local repository missing", I
>> guess
>> there is a sort of default configuration so I tried to repair it. I ends
>> with: "Project location does not seems to be a valid git repository."
>> 2) Then I double clicked on "pharo" and searched for my package, there
>> wasn't, so I added my package. Now the package is added but the local
>> repository is always missing and I don't know how to create a new one.
>>
>> I wonder why there isn't a local repository by default when you create a
>> package
>> Thanks
>> Davide
>>
>>
>>
>> Esteban Lorenzano wrote
>> > indeed, it will fetch the history of each method that belongs to an
>> > iceberg repository.
>> >
>> > Esteban
>> > On Feb 5 2021, at 11:50 am, Davide Varvello via Pharo-users 
>>
>> > pharo-users@.pharo
>> >  wrote:
>> >> Hi Esteban,
>> >> The "history" button in the minitoolbar of calypso is related to git,
>> >> right?
>> >> Because it's not shown in every method
>> >> Cheers
>> >> Davide
>> >>
>> >>
>> >> Esteban Lorenzano wrote
>> >> > Hi all,
>> >> >
>> >> > While the timestamp for the in-image change is, indeed, missing and
>> >> needs
>> >> > to be fixed, I want to point that we are abandoning the in-image
>> author
>> >> > tracking by method and replacing it with the git history (which wive
>> >> you
>> >> > also authorship and timestamp by commit).
>> >> > This method commit history is already there (since Pharo 8) and can
>> be
>> >> > queried with the "history" button in the minitoolbar of calypso,
>> same
>> >> > place where you have the access to the version browser.
>> >> > Yes, it is not the same, but it fulfills correctly (and improves it,
>> >> since
>> >> > it gives you the whole method history, not just what you have in
>> image)
>> >> > the old version functionality, which however will remain as a track
>> of
>> >> > in-image changes, but without the author (since is not needed).
>> >> >
>> >> > Even more, all the Author infrastructure is target for removal in
>> next
>> >> > versions of Pharo (just not right now :P)
>> >> > cheers!
>> >> > Esteban
>> >> >
>> >> > On Feb 5 2021, at 9:16 am, Richard Sargent 
>> >>
>> >> > richard.sargent@
>> >> >  wrote:
>> >> >> Oh, yes/ That is one of the things I most love about ENVY and miss
>> in
>> >> >> everything else.
>> >> >> What is the change history of this method, class, package, etc.?
>> >> >>
>> >> >>
>> >> >>
>> >> >> On Thu, Feb 4, 2021 at 10:09 PM Kasper Osterbye 
>> >>
>> >> > kasper.osterbye@
>> >> > (mailto:
>> >> > kasper.osterbye@
>> >> > ) wrote:
>> >> >> > I went in and updated the corresponding github issue
>> >> >> (https://github.com/pharo-project/pharo/issues/7283). The tool is
>> >> really
>> >> >> useful, and it would be nice to have the author and timestamp in
>> place
>> >> >> again.
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>> >>
>>
>>
>>
>>
>>
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>





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


[Pharo-users] Re: pharo 8 - method versions - how to see author/timestamp?

2021-02-05 Thread Davide Varvello via Pharo-users
Anyway Esteban, it's for sure a limit of mine, but It's an hour I'm trying to
set up a local Iceberg for my package and I can't configure it.

Some issue I faced:
1) I opened Iceberg and saw "pharo" had "Local repository missing", I guess
there is a sort of default configuration so I tried to repair it. I ends
with: "Project location does not seems to be a valid git repository."
2) Then I double clicked on "pharo" and searched for my package, there
wasn't, so I added my package. Now the package is added but the local
repository is always missing and I don't know how to create a new one.

I wonder why there isn't a local repository by default when you create a
package
Thanks
Davide



Esteban Lorenzano wrote
> indeed, it will fetch the history of each method that belongs to an
> iceberg repository.
> 
> Esteban
> On Feb 5 2021, at 11:50 am, Davide Varvello via Pharo-users 

> pharo-users@.pharo

>  wrote:
>> Hi Esteban,
>> The "history" button in the minitoolbar of calypso is related to git,
>> right?
>> Because it's not shown in every method
>> Cheers
>> Davide
>>
>>
>> Esteban Lorenzano wrote
>> > Hi all,
>> >
>> > While the timestamp for the in-image change is, indeed, missing and
>> needs
>> > to be fixed, I want to point that we are abandoning the in-image author
>> > tracking by method and replacing it with the git history (which wive
>> you
>> > also authorship and timestamp by commit).
>> > This method commit history is already there (since Pharo 8) and can be
>> > queried with the "history" button in the minitoolbar of calypso, same
>> > place where you have the access to the version browser.
>> > Yes, it is not the same, but it fulfills correctly (and improves it,
>> since
>> > it gives you the whole method history, not just what you have in image)
>> > the old version functionality, which however will remain as a track of
>> > in-image changes, but without the author (since is not needed).
>> >
>> > Even more, all the Author infrastructure is target for removal in next
>> > versions of Pharo (just not right now :P)
>> > cheers!
>> > Esteban
>> >
>> > On Feb 5 2021, at 9:16 am, Richard Sargent 
>>
>> > richard.sargent@
>> >  wrote:
>> >> Oh, yes/ That is one of the things I most love about ENVY and miss in
>> >> everything else.
>> >> What is the change history of this method, class, package, etc.?
>> >>
>> >>
>> >>
>> >> On Thu, Feb 4, 2021 at 10:09 PM Kasper Osterbye 
>>
>> > kasper.osterbye@
>> > (mailto:
>> > kasper.osterbye@
>> > ) wrote:
>> >> > I went in and updated the corresponding github issue
>> >> (https://github.com/pharo-project/pharo/issues/7283). The tool is
>> really
>> >> useful, and it would be nice to have the author and timestamp in place
>> >> again.
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>>
>>
>>
>>
>>
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>





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


[Pharo-users] Re: pharo 8 - method versions - how to see author/timestamp?

2021-02-05 Thread Davide Varvello via Pharo-users
Thanks


Esteban Lorenzano wrote
> indeed, it will fetch the history of each method that belongs to an
> iceberg repository.
> 
> Esteban
> On Feb 5 2021, at 11:50 am, Davide Varvello via Pharo-users 

> pharo-users@.pharo

>  wrote:
>> Hi Esteban,
>> The "history" button in the minitoolbar of calypso is related to git,
>> right?
>> Because it's not shown in every method
>> Cheers
>> Davide





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


[Pharo-users] Re: pharo 8 - method versions - how to see author/timestamp?

2021-02-05 Thread Davide Varvello via Pharo-users
Hi Esteban,
The "history" button in the minitoolbar of calypso is related to git, right?
Because it's not shown in every method
Cheers
Davide


Esteban Lorenzano wrote
> Hi all,
> 
> While the timestamp for the in-image change is, indeed, missing and needs
> to be fixed, I want to point that we are abandoning the in-image author
> tracking by method and replacing it with the git history (which wive you
> also authorship and timestamp by commit).
> This method commit history is already there (since Pharo 8) and can be
> queried with the "history" button in the minitoolbar of calypso, same
> place where you have the access to the version browser.
> Yes, it is not the same, but it fulfills correctly (and improves it, since
> it gives you the whole method history, not just what you have in image)
> the old version functionality, which however will remain as a track of
> in-image changes, but without the author (since is not needed).
> 
> Even more, all the Author infrastructure is target for removal in next
> versions of Pharo (just not right now :P)
> cheers!
> Esteban
> 
> On Feb 5 2021, at 9:16 am, Richard Sargent 

> richard.sargent@

>  wrote:
>> Oh, yes/ That is one of the things I most love about ENVY and miss in
>> everything else.
>> What is the change history of this method, class, package, etc.?
>>
>>
>>
>> On Thu, Feb 4, 2021 at 10:09 PM Kasper Osterbye 

> kasper.osterbye@

>  (mailto:

> kasper.osterbye@

> ) wrote:
>> > I went in and updated the corresponding github issue
>> (https://github.com/pharo-project/pharo/issues/7283). The tool is really
>> useful, and it would be nice to have the author and timestamp in place
>> again.
>> >
>> >
>> >
>>
>>





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


[Pharo-users] Re: pharo 8 - method versions - how to see author/timestamp?

2021-02-05 Thread Davide Varvello via Pharo-users

Davide


Kasper Osterbye wrote
> I went in and updated the corresponding github issue (
> https://github.com/pharo-project/pharo/issues/7283). The tool is really
> useful, and it would be nice to have the author and timestamp in place
> again.
> 
>>





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


[Pharo-users] Re: pharo 8 - method versions - how to see author/timestamp?

2021-02-04 Thread Davide Varvello via Pharo-users
Hi Guys!
No news on this bug? It's really annoying I can't see the timestamp of a
method.
Thanks
Davide



Paul DeBruicker wrote
> Hi -
> 
> Sometimes I want to revert to older versions of methods e.g. from an hour
> ago.  
> 
> In the "Recent versions of MyClass>>#myMethod" dialog no timestamps or
> authors are present.  
> 
> How do I see those? 
> 
> Thanks
> 
> Paul





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


[Pharo-users] Re: Shortcut for Tag Test

2021-02-02 Thread Davide Varvello via Pharo-users
Thank you Pierre
Cheers
Davide


hogoww wrote
> Hi Davide,
> 
> Indeed, I only added it in P9.
> Here's the PR if you want to offer a backport to P8: 
> https://github.com/pharo-project/pharo/pull/6992
> 
> Pierre
> 
> On 01/02/2021 23:25, Davide Varvello via Pharo-users wrote:
>> Hi Pierre,
>> On my Pharo image (Pharo8) Cmd + t is only available for packages, see
>> the
>> screenshots here:
>> https://imgur.com/a/KH4YJiD
>>
>> Cheers
>>
>>
>> hogoww wrote
>>> Hi Davide,
>>>
>>> Could you elaborate a bit please? I'm not sure I understand.
>>> Cmd + t as "run tests" is available for packages & for tags in a
>>> packages IIRC.
>>>
>>> Pierre
>>>
>>> On 01/02/2021 18:29, Davide Varvello via Pharo-users wrote:
>>>> Hi
>>>> Is it possible to have (and how) the shortcut CMD-t  for the tag Test
>>>> as
>>>> well as the package Test?
>>>> Thanks
>>>> Davide
>>>>
>>>>
>>>>
>>>> --
>>>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>
>>
>>
>>
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html





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


[Pharo-users] Re: Shortcut for Tag Test

2021-02-01 Thread Davide Varvello via Pharo-users
Hi Pierre,
On my Pharo image (Pharo8) Cmd + t is only available for packages, see the
screenshots here:
https://imgur.com/a/KH4YJiD

Cheers


hogoww wrote
> Hi Davide,
> 
> Could you elaborate a bit please? I'm not sure I understand.
> Cmd + t as "run tests" is available for packages & for tags in a 
> packages IIRC.
> 
> Pierre
> 
> On 01/02/2021 18:29, Davide Varvello via Pharo-users wrote:
>> Hi
>> Is it possible to have (and how) the shortcut CMD-t  for the tag Test as
>> well as the package Test?
>> Thanks
>> Davide
>>
>>
>>
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html





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


[Pharo-users] Shortcut for Tag Test

2021-02-01 Thread Davide Varvello via Pharo-users
Hi
Is it possible to have (and how) the shortcut CMD-t  for the tag Test as
well as the package Test?
Thanks
Davide



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


[Pharo-users] Epicea and multiple images - mixed changes

2020-09-02 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi Guys,
Did you notice that if there are 2 or more images in the same directory,
Epicea shows the changes of all of them?
I think it shouldn't.

Cheers
Davide



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

--- End Message ---


Re: [Pharo-users] Image crashed, how can I restore the Playground?

2020-08-31 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Thanks Offray,
I'll give a glance to Grafoscopio
Cheers
Davide



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

--- End Message ---


Re: [Pharo-users] Image crashed, how can I restore the Playground?

2020-08-26 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Thanks Pierre


hogoww wrote
> Also on the upper right corner of the playground, you can get old 
> playground (maybe on command+s? not sure).
> Not every one of them will be here, and you may have to use Stephane's 
> answer.
> 
> Pierre.
> 
> On 26/08/2020 17:56, Stéphane Ducasse wrote:
>> checked in the folders close to your image.
>> There is a play-cache folder
>> S.
>>
>>> On 26 Aug 2020, at 17:52, Davide Varvello 

> varvello@

>  
> > mailto:

> varvello@

> > wrote:
>>>
>>>
>>> *From: *Davide Varvello 

> varvello@

>  mailto:

> varvello@

> >
>>> *Subject: **Image crashed, how can I restore the Playground?*
>>> *Date: *26 August 2020 at 17:52:57 CEST
>>> *To: *

> pharo-users@.pharo

>  mailto:

> pharo-users@.pharo

> 
>>>
>>>
>>> Hi!
>>>
>>> My Pharo8 image crashed, where can I found the code of my playground? 
>>> It is
>>> not in Epicea.
>>>
>>> TIA
>>> Davide
>>>
>>>
>>>
>>> --
>>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>>
>>>
>>>
>>
>> 
>> Stéphane Ducasse
>> http://stephane.ducasse.free.fr / http://www.pharo.org
>> 03 59 35 87 52
>> Assistant: Aurore Dalle
>> FAX 03 59 57 78 50
>> TEL 03 59 35 86 16
>> S. Ducasse - Inria
>> 40, avenue Halley,
>> Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
>> Villeneuve d'Ascq 59650
>> France
>>





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

--- End Message ---


Re: [Pharo-users] Image crashed, how can I restore the Playground?

2020-08-26 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Thanks Stéph,
I guess the right directory is {imageDirectory}/pharo-local/play-cache/
there are some .ph files representing several playgrounds.

One further question: it seems to me there isn't a history of the
playground, right? So if I make multiple changes to a single playground,
they are lost.

Cheers
Davide


Stéphane Ducasse wrote
> checked in the folders close to your image. 
> There is a play-cache folder
> S. 
> 
>> On 26 Aug 2020, at 17:52, Davide Varvello 

> varvello@

>  wrote:
>> 
>> 
>> From: Davide Varvello 

> varvello@

> 
>> Subject: Image crashed, how can I restore the Playground?
>> Date: 26 August 2020 at 17:52:57 CEST
>> To: 

> pharo-users@.pharo

>> 
>> 
>> Hi!
>> 
>> My Pharo8 image crashed, where can I found the code of my playground? It
>> is
>> not in Epicea.
>> 
>> TIA
>> Davide
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>> 
>> 
>> 
> 
> 
> Stéphane Ducasse
> http://stephane.ducasse.free.fr / http://www.pharo.org 
> 03 59 35 87 52
> Assistant: Aurore Dalle 
> FAX 03 59 57 78 50
> TEL 03 59 35 86 16
> S. Ducasse - Inria
> 40, avenue Halley, 
> Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
> Villeneuve d'Ascq 59650
> France





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

--- End Message ---


[Pharo-users] Image crashed, how can I restore the Playground?

2020-08-26 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi!

My Pharo8 image crashed, where can I found the code of my playground? It is
not in Epicea.

TIA
Davide



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

--- End Message ---


Re: [Pharo-users] Fuel - FLSerializer tests are not working (pharo 8)

2020-08-04 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi Denis.
I drag and drop the image on the Pharo.app, but it's is an issue of Pharo8
(and also Pharo7, I downloaded a vm and tested it) because on Pharo6
everything is fine.
Davide


Denis Kudriashov wrote
> It can be a known issue with MacOS, the way how an operating system
> assigns
> a working directory for applications.
> For example starting an app using double click from Finder will use a root
> directory as a working copy.
> 
> Davide how did you start the Pharo? Can you try to run it from the command
> line? In that case the current working directory of the terminal will be
> assigned to the started application.
> 
> 
> 
> 
> пн, 3 авг. 2020 г. в 19:16, Stéphane Ducasse 

> stephane.ducasse@

> :
> 
>> I took a Pharo8 image and
>>
>> Metacello new
>>repository: 'github://theseion/Fuel:3.0.2/repository';
>>baseline: 'Fuel';
>>load.
>>
>> and run the tests and all the tests are green on my machine.
>>
>> 595 ran, 576 passed, 1 skipped, 19 expected failures, 0 failures, 0
>> errors, 0 passed unexpected
>>
>>
>> S.
>>





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

--- End Message ---


Re: [Pharo-users] Working directory and image directory

2020-08-03 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Fine Stéphane, I opened two entries:
https://github.com/pharo-project/pharo/issues/7039

https://github.com/pharo-project/pharo/issues/7040

Cheers
Davide



Stéphane Ducasse wrote
> Hi Davide 
> 
> Can you open a bug entry on Pharo and on Fuel?
> 
> S. 
> 
>> On 31 Jul 2020, at 11:37, Davide Varvello 

> varvello@

>  wrote:
>> 
>> 
>> From: Davide Varvello 

> varvello@

> 
>> Subject: Re: Working directory and image directory
>> Date: 31 July 2020 at 11:37:22 CEST
>> To: 

> pharo-users@.pharo

>> 
>> 
>> Hi
>> 
>> Isn't it weird this behavior for the community? Should I open a bug?
>> Cheers
>> Davide
>> 
>> 
>> Pharo Smalltalk Users mailing list wrote
>>> Hi Guys,
>>> As I already described here:
>>> http://forum.world.st/Fuel-FLSerializer-tests-are-not-working-pharo-8-td5120052.html
>>> there is something weird on Pharo 8 (on Mac) because I'm running an
>>> image
>>> that is in the same directory of the Pharo.app but "FileLocator
>>> workingDirectory" give me the root directory.
>>> 
>>> I expected the same directory where there is Pharo.app
>>> Cheers
>>> Davide
>>> 
>>> 
>>> 
>>> --
>>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>> 
>> 
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>> 
>> 
>> 
> 
> 
> Stéphane Ducasse
> http://stephane.ducasse.free.fr / http://www.pharo.org 
> 03 59 35 87 52
> Assistant: Aurore Dalle 
> FAX 03 59 57 78 50
> TEL 03 59 35 86 16
> S. Ducasse - Inria
> 40, avenue Halley, 
> Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
> Villeneuve d'Ascq 59650
> France





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

--- End Message ---


Re: [Pharo-users] Working directory and image directory

2020-07-31 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi

Isn't it weird this behavior for the community? Should I open a bug?
Cheers
Davide


Pharo Smalltalk Users mailing list wrote
> Hi Guys,
> As I already described here:
> http://forum.world.st/Fuel-FLSerializer-tests-are-not-working-pharo-8-td5120052.html
> there is something weird on Pharo 8 (on Mac) because I'm running an image
> that is in the same directory of the Pharo.app but "FileLocator
> workingDirectory" give me the root directory.
> 
> I expected the same directory where there is Pharo.app
> Cheers
> Davide
> 
> 
> 
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html





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

--- End Message ---


[Pharo-users] Working directory and image directory

2020-07-30 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi Guys,
As I already described here:
http://forum.world.st/Fuel-FLSerializer-tests-are-not-working-pharo-8-td5120052.html
there is something weird on Pharo 8 (on Mac) because I'm running an image
that is in the same directory of the Pharo.app but "FileLocator
workingDirectory" give me the root directory.

I expected the same directory where there is Pharo.app
Cheers
Davide



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

--- End Message ---


Re: [Pharo-users] Fuel - FLSerializer tests are not working (pharo 8)

2020-07-28 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi,
I discovered why tests are failing. 
The reason is that Fuel is using root directory as working path instead of
the working directory. Unfortunately the root dir is not writeable (of
course) and so the failings.

I guess the mistake occurs because since Pharo (7?) the File* and Stream*
classes changed.
Cheers
Davide



Pharo Smalltalk Users mailing list wrote
> Hi Guys,
> 
> There is something wrong with Fuel.
> I got the version for Pharo 8
> 
> Metacello new
> repository: 'github://theseion/Fuel:3.0.2/repository';
> baseline: 'Fuel';
> load.
> 
> 
> But tests are red, all tests of FLBinaryFileStreamBasicSerializationTest
> and
> others
> 
> Cheers
> Davide
> 
> 
> 
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html





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

--- End Message ---


[Pharo-users] Fuel - FLSerializer tests are not working (pharo 8)

2020-07-27 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi Guys,

There is something wrong with Fuel.
I got the version for Pharo 8

Metacello new
repository: 'github://theseion/Fuel:3.0.2/repository';
baseline: 'Fuel';
load.


But tests are red, all tests of FLBinaryFileStreamBasicSerializationTest and
others

Cheers
Davide



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

--- End Message ---


Re: [Pharo-users] Code completion in blocks (Pharo8)

2020-05-15 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi Guillermo,
I have tried Pharo9 and it works, so unfortunately is a issue of Pharo8
Thanks
Davide


Guillermo Polito wrote
> Hi Davide,
> 
> I’m not sure if that works on Pharo8. Could you try quickly Pharo9 to see
> if that’s fixed there?
> I’ve made a pass on the code completion there.. Don’t know how difficult
> it would be to back port it, I could give you the pointers if you want.
> 
>> El 6 may 2020, a las 12:24, Davide Varvello via Pharo-users 

> pharo-users@.pharo

>  escribió:
>> 
>> 
>> De: Davide Varvello 

> varvello@

> 
>> Asunto: Re: Code completion in blocks (Pharo8)
>> Fecha: 6 de mayo de 2020, 12:24:46 CEST
>> Para: 

> pharo-users@.pharo

>> 
>> 
>> nobody?
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>> 
>> 
>>





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

--- End Message ---


Re: [Pharo-users] Code completion in blocks (Pharo8)

2020-05-13 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Don't you use the autocompletion feature?



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

--- End Message ---


Re: [Pharo-users] Code completion in blocks (Pharo8)

2020-05-06 Thread Davide Varvello via Pharo-users
--- Begin Message ---
nobody?



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

--- End Message ---


[Pharo-users] Code completion in blocks (Pharo8)

2020-05-05 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi guys,

Is there something wrong with autocomplete in blocks in Pharo 8?

If I'm typing a variable in a block the autocomplete does not appear. In the
following statement I'm expecting a popup after typing "eac" :

'myString' do:[:eachChar | eac  


TIA
Davide



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

--- End Message ---


Re: [Pharo-users] Zinc server with static and non-static files

2020-03-28 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Thanks Sven, crystal clear!
Davide


Sven Van Caekenberghe-2 wrote
> Hi Davide,
> 
> What Norbert says is all correct and useful. Go read the code of the
> classes he mentions.
> 
> I wanted to add, that fundamentally, all this (dispatching/configuring),
> is not difficult to understand or to follow.
> 
> Even with the aptly named ZnDefaultServerDelegate you can already do a
> lot, including what you asked for. Consider part of the startup file of
> http://zn.stfx.eu which serves its own website, together with all the
> default builtin responses.
> 
> So the following are all possible:
> 
> - http://zn.stfx.eu
> - http://zn.stfx.eu/zn/index.html
> - http://zn.stfx.eu/xn/small.html
> - http://zn.stfx.eu/welcome
> - http://zn.stfx.eu/dw-bench
> - ...
> - http://zn.stfx.eu/help
> 
> (the last one lists all configured prefixes).
> 
> (ZnServer defaultOn: 8180)
>   logToTranscript;
>   logLevel: 1;
>   start.
> 
> (staticFileServerDelegate := ZnStaticFileServerDelegate new)
>   prefixFromString: 'zn'; 
>   directory: '/home/stfx/zn' asFileReference.
> 
> ZnServer default delegate prefixMap 
>   at: 'zn' 
>   put: [ :request | staticFileServerDelegate handleRequest: request ];
>   at: 'redirect-to-zn'
>   put: [ :request | ZnResponse redirect: '/zn/index.html' ];
>   at: '/'
>   put: 'redirect-to-zn'.
> 
> (#map:to: is newer/better)
> 
> When using a block as a handler, you can literally do anything.
> 
> HTH,
> 
> Sven
> 
>> On 28 Mar 2020, at 08:54, Norbert Hartl 

> norbert@

>  wrote:
>> 
>> There is ZnPrefixMappingDelegate you can use.
>> 
>> server
>>delegate: (ZnPrefixMappingDelegate
>>   map: 'static' to: staticFileDelegate; 
>>   map: 'app' to: myApp).
>> 
>> There is also ZnStaticFileDecoratorDelegate if you want to mimick another
>> typical setup where all urls that resolve to a file get served from disk
>> and any other will be forwarded to you app.
>> 
>> server
>>delegate: (ZnStaticFileDecoratorDelegate
>>   decorate: myApp
>>   servingFilesFrom: 'static/').
>> 
>> Hope this helps!
>> 
>> Norbert
>> 
>> 
>>> Am 28.03.2020 um 01:34 schrieb Davide Varvello via Pharo-users 

> pharo-users@.pharo

> :
>>> 
>>> 
>>> Von: Davide Varvello 

> varvello@

> 
>>> Betreff: Zinc server with static and non-static files
>>> Datum: 28. März 2020 um 01:34:13 MEZ
>>> An: 

> pharo-users@.pharo

>>> 
>>> 
>>> Hi Guys,
>>> Is it possible a Zinc server returns static files within a specific url
>>> path
>>> (like the ZnStaticFileServerDelegate) and also returns other logics as
>>> shown
>>> with map:#otherPath to: MyWebapp new ?
>>> TIA
>>> Davide
>>> 
>>> 
>>> 
>>> --
>>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>> 
>>> 
>>> 
>>





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

--- End Message ---


Re: [Pharo-users] Zinc server with static and non-static files

2020-03-28 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi Norbert,
Thank you very much for the suggestion!!
Davide


NorbertHartl wrote
> There is ZnPrefixMappingDelegate you can use.
> 
> server
>delegate: (ZnPrefixMappingDelegate
>   map: 'static' to: staticFileDelegate; 
>   map: 'app' to: myApp).
> 
> There is also ZnStaticFileDecoratorDelegate if you want to mimick another
> typical setup where all urls that resolve to a file get served from disk
> and any other will be forwarded to you app.
> 
> server
>delegate: (ZnStaticFileDecoratorDelegate
>   decorate: myApp
>   servingFilesFrom: 'static/').
> 
> Hope this helps!
> 
> Norbert
> 
> 
>> Am 28.03.2020 um 01:34 schrieb Davide Varvello via Pharo-users 

> pharo-users@.pharo

> :
>> 
>> 
>> Von: Davide Varvello 

> varvello@

> 
>> Betreff: Zinc server with static and non-static files
>> Datum: 28. März 2020 um 01:34:13 MEZ
>> An: 

> pharo-users@.pharo

>> 
>> 
>> Hi Guys,
>> Is it possible a Zinc server returns static files within a specific url
>> path
>> (like the ZnStaticFileServerDelegate) and also returns other logics as
>> shown
>> with map:#otherPath to: MyWebapp new ?
>> TIA
>> Davide
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>> 
>> 
>>





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

--- End Message ---


[Pharo-users] Zinc server with static and non-static files

2020-03-27 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi Guys,
Is it possible a Zinc server returns static files within a specific url path
(like the ZnStaticFileServerDelegate) and also returns other logics as shown
with map:#otherPath to: MyWebapp new ?
TIA
Davide



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

--- End Message ---


[Pharo-users] VM download link damaged

2020-03-06 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi guys,

If I download the mac vm from any browser
(https://files.pharo.org/get-files/80/pharo64-mac-stable.zip), unzip and run
Pharo.app, it says: "Pharo.app is damaged and can’t be opened. You should
move it to the Trash."

It doesn't happen with curl script: curl -L https://get.pharo.org/64/ | bash

Cheers
Davide



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

--- End Message ---


Re: [Pharo-users] Problem with ZnWebSocket and closed connections

2020-02-25 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi Sven,
It's working! Thank you very much
Davide



Sven Van Caekenberghe-2 wrote
> Hi Davide,
> 
> First I'll explain why you see a difference in behaviour, then I'll give
> you a solution.
> 
> Network connections are expensive resources, most servers try to close
> them as soon as possible when they are not used.
> 
> Zinc HTTP Components does not normally close connections by itself,
> although timeouts do naturally occur.
> 
> The WebSocket code normally loops on the server side when timeouts occur
> while waiting for incoming messages (more specifically in
> ZnWebSocket>>#runWith:). Note that even though it loops, there is no
> actual communication.
> 
> Both previous facts, not closing unused connections and looping on
> timeouts, result in a working echo/chat example, when run locally.
> 
> When you put a proxy in front of this, the proxy (like nginx) might decide
> to close an unused connection. This is allowed and it is what you are
> seeing. This is not an error and thus normal.
> 
> Of course, you might want to keep such connection open for longer, even if
> they are not used. This can be done by keeping them alive. Note however
> that this might result in many open connections.
> 
> How do you keep a connection alive ?
> 
> One solution is to do this at the application level.
> ZnWebSocketStatusHandler does this by sending a message every second.
> 
> The WebSocket protocol (https://tools.ietf.org/html/rfc6455) does define a
> number of control messages, all which were already implemented as such.
> Two of these messages, ping & pong, are meant to be used for implementing
> keep alive. Client side, this was already done
> (ZnWebSocket>>#handleControlFrame:).
> 
> I now added automatic keep alive message sending server side as well.
> 
> This can be seen in the updated implementation of ZnWebSocket>>#runWith: 
> 
> https://github.com/svenvc/zinc/commit/9073acc2fad197c2787c6cd0f4d315981ebb98b5
> 
> Now, whenever the read times out (as defined by the socket stream's
> timeout, a Zn setting), a ping control packet is sent to keep the
> connection alive, the client will answer with a pong, and then the server
> loops.
> 
> This should be sufficient to solve your issue (but both the proxy's as
> well as the Zn timeout need to be compatible, Zn's needs to be smaller).
> 
> Please let me know if this works for you.
> 
> Regards,
> 
> Sven
> 
>> On 23 Feb 2020, at 18:19, Davide Varvello via Pharo-users 

> pharo-users@.pharo

>  wrote:
>> 
>> 
>> From: Davide Varvello 

> varvello@

> 
>> Subject: Re: Problem with ZnWebSocket and closed connections
>> Date: 23 February 2020 at 18:19:02 GMT+1
>> To: 

> pharo-users@.pharo

>> 
>> 
>> Hi,
>> 
>> I put nginx as a websocket proxy and I run the ZnWebSocketEchoHandler.
>> Unfortunately also with this configuration the connection closes it after
>> a
>> couple of minutes of inactivity
>> 
>> Cheers
>> Davide
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>> 
>> 
>>





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

--- End Message ---


Re: [Pharo-users] Problem with ZnWebSocket and closed connections

2020-02-24 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi Sven,
Thanks for your reply.
I supposed that the ping/pong feature would have helped (I'm not an expert,
but I found something about it on the net).
Tomorrow I'm gonna try your updated runWith: and I'll feedback you.

Thanks
Davide


Sven Van Caekenberghe-2 wrote
> Hi Davide,
> 
> First I'll explain why you see a difference in behaviour, then I'll give
> you a solution.
> 
> Network connections are expensive resources, most servers try to close
> them as soon as possible when they are not used.
> 
> Zinc HTTP Components does not normally close connections by itself,
> although timeouts do naturally occur.
> 
> The WebSocket code normally loops on the server side when timeouts occur
> while waiting for incoming messages (more specifically in
> ZnWebSocket>>#runWith:). Note that even though it loops, there is no
> actual communication.
> 
> Both previous facts, not closing unused connections and looping on
> timeouts, result in a working echo/chat example, when run locally.
> 
> When you put a proxy in front of this, the proxy (like nginx) might decide
> to close an unused connection. This is allowed and it is what you are
> seeing. This is not an error and thus normal.
> 
> Of course, you might want to keep such connection open for longer, even if
> they are not used. This can be done by keeping them alive. Note however
> that this might result in many open connections.
> 
> How do you keep a connection alive ?
> 
> One solution is to do this at the application level.
> ZnWebSocketStatusHandler does this by sending a message every second.
> 
> The WebSocket protocol (https://tools.ietf.org/html/rfc6455) does define a
> number of control messages, all which were already implemented as such.
> Two of these messages, ping & pong, are meant to be used for implementing
> keep alive. Client side, this was already done
> (ZnWebSocket>>#handleControlFrame:).
> 
> I now added automatic keep alive message sending server side as well.
> 
> This can be seen in the updated implementation of ZnWebSocket>>#runWith: 
> 
> https://github.com/svenvc/zinc/commit/9073acc2fad197c2787c6cd0f4d315981ebb98b5
> 
> Now, whenever the read times out (as defined by the socket stream's
> timeout, a Zn setting), a ping control packet is sent to keep the
> connection alive, the client will answer with a pong, and then the server
> loops.
> 
> This should be sufficient to solve your issue (but both the proxy's as
> well as the Zn timeout need to be compatible, Zn's needs to be smaller).
> 
> Please let me know if this works for you.
> 
> Regards,
> 
> Sven
> 
>> On 23 Feb 2020, at 18:19, Davide Varvello via Pharo-users 

> pharo-users@.pharo

>  wrote:
>> 
>> 
>> From: Davide Varvello 

> varvello@

> 
>> Subject: Re: Problem with ZnWebSocket and closed connections
>> Date: 23 February 2020 at 18:19:02 GMT+1
>> To: 

> pharo-users@.pharo

>> 
>> 
>> Hi,
>> 
>> I put nginx as a websocket proxy and I run the ZnWebSocketEchoHandler.
>> Unfortunately also with this configuration the connection closes it after
>> a
>> couple of minutes of inactivity
>> 
>> Cheers
>> Davide
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>> 
>> 
>>





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

--- End Message ---


Re: [Pharo-users] Problem with ZnWebSocket and closed connections

2020-02-23 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi,

I put nginx as a websocket proxy and I run the ZnWebSocketEchoHandler.
Unfortunately also with this configuration the connection closes it after a
couple of minutes of inactivity

Cheers
Davide



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

--- End Message ---


[Pharo-users] Problem with ZnWebSocket and closed connections

2020-02-20 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi guys!
I've a problem with websockets, I'm quite a noob on the subject and I'm
doing some tests with them.

I run the echo websocket this way:

ZnServer startDefaultOn: 8000.
ZnServer default delegate: (ZnWebSocketDelegate handler:
ZnWebSocketEchoHandler new).


I tested it with with the chrome extension
(https://chrome.google.com/webstore/detail/simple-websocket-client/pfdhoblngboilpfeibdedpjgfnlcodoo)
that emulates a websocket client. If I point to the url ws://localhost:8000
everyting is fine
BUT
I want to test the websocket server via ngrok (https://ngrok.com/) and if I
point the client to the ngrok url (i.e. ws://myurl.ngrok.io that maps
localhost:8000) it happens a connection-closed after a while and I can't
understand the cause, is there a timeout somewhere?

I know that it is something related to Pharo (and not to ngrok) because if I
implement a simple echo websocket served via websocketd
(http://websocketd.com) the connection stays always active even if through
ngrok.

Can you help me please?
TIA
Davide




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

--- End Message ---


Re: [Pharo-users] Could not resolve: BaselineOfNeoJSON

2019-09-29 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi Cyril,
You are right, I updated Metacello and Tonel and everything is fine also on
Pharo5.
Thx.
Davide



CyrilFerlicot wrote
> Le 29/09/2019 à 11:23, Davide Varvello via Pharo-users a écrit :
> 
> Hi,
> 
> NoeJSON seems to be saved with the Tonel format.
> 
> Tonel is by default in Pharo since Pharo 6.1.
> 
> It should be possible to update Metacello and Tonel to be able to load
> this project in Pharo 4+
> 
> Here is a pharo-wiki page explaining how to do it:
> 
> https://github.com/pharo-open-documentation/pharo-wiki/blob/master/General/ExportFormats.md#tonel-supported-pharo-versions
> 
> Have a nice day!
> 
> -- 
> Cyril Ferlicot
> https://ferlicot.fr
> 
> 
> 
> signature.asc (836 bytes)
> http://forum.world.st/attachment/5104639/0/signature.asc;





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

--- End Message ---


Re: [Pharo-users] Could not resolve: BaselineOfNeoJSON

2019-09-29 Thread Davide Varvello via Pharo-users
--- Begin Message ---
No way to run it on Pharo5?
Thx


Pharo Smalltalk Users mailing list wrote
> Sven,
> You are right, I've just downloaded Pharo 7 and everything is fine. The
> issue is showing on Pharo 5 (I'm working on it)
> Davide





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

--- End Message ---


Re: [Pharo-users] Could not resolve: BaselineOfNeoJSON

2019-09-27 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Sven,
You are right, I've just downloaded Pharo 7 and everything is fine. The
issue is showing on Pharo 5 (I'm working on it)
Davide


Sven Van Caekenberghe-2 wrote
> Davide,
> 
> I don't know what you are doing, exactly.
> 
> If I download a fresh Pharo 7.0.4 (64bit on macOS), and I execute the
> expression
> 
> Metacello new
>   repository: 'github://svenvc/NeoJSON/repository';
>   baseline: 'NeoJSON';
>   load.
> 
> it loads as expected, with the following in the Transcript
> 
> Fetched -> BaselineOfNeoJSON-CompatibleUserName.1551110229 --- 

> git@

> :svenvc/NeoJSON.git[master] --- 

> git@

> :svenvc/NeoJSON.git[master]
> Loaded -> BaselineOfNeoJSON-CompatibleUserName.1551110229 --- 

> git@

> :svenvc/NeoJSON.git[master] --- 

> git@

> :svenvc/NeoJSON.git[master]
> Loading baseline of BaselineOfNeoJSON...
> Fetched -> Neo-JSON-Core-CompatibleUserName.1551110229 --- 

> git@

> :svenvc/NeoJSON.git[master] --- 

> git@

> :svenvc/NeoJSON.git[master]
> Fetched -> Neo-JSON-Tests-CompatibleUserName.1551110229 --- 

> git@

> :svenvc/NeoJSON.git[master] --- 

> git@

> :svenvc/NeoJSON.git[master]
> Fetched -> Neo-JSON-Pharo-Core-CompatibleUserName.1551110229 --- 

> git@

> :svenvc/NeoJSON.git[master] --- 

> git@

> :svenvc/NeoJSON.git[master]
> Fetched -> Neo-JSON-Pharo-Tests-CompatibleUserName.1551110229 --- 

> git@

> :svenvc/NeoJSON.git[master] --- 

> git@

> :svenvc/NeoJSON.git[master]
> Loaded -> Neo-JSON-Core-CompatibleUserName.1551110229 --- 

> git@

> :svenvc/NeoJSON.git[master] --- cache
> Loaded -> Neo-JSON-Tests-CompatibleUserName.1551110229 --- 

> git@

> :svenvc/NeoJSON.git[master] --- cache
> Loaded -> Neo-JSON-Pharo-Core-CompatibleUserName.1551110229 --- 

> git@

> :svenvc/NeoJSON.git[master] --- cache
> Loaded -> Neo-JSON-Pharo-Tests-CompatibleUserName.1551110229 --- 

> git@

> :svenvc/NeoJSON.git[master] --- cache
> ...finished baseline
> 
> And all NeoJSON tests are green.
> 
> Sven
> 
>> On 27 Sep 2019, at 14:57, Davide Varvello via Pharo-users 

> pharo-users@.pharo

>  wrote:
>> 
>> 
>> From: Davide Varvello 

> varvello@

> 
>> Subject: Re: Could not resolve: BaselineOfNeoJSON
>> Date: 27 September 2019 at 14:57:33 GMT+2
>> To: 

> pharo-users@.pharo

>> 
>> 
>> Hi Sven, 
>> I don't quite understand. At https://github.com/svenvc/NeoJSON it shows
>> "to
>> load NeoJSON using Metacello" 
>> Metacello new
>>  repository: 'github://svenvc/NeoJSON/repository';
>>  baseline: 'NeoJSON';
>>  load.
>> 
>> That's the step I did and I suppose it was enough. I don't know the
>> meaning
>> of the next line and :
>> spec baseline: 'NeoJSON' with: [ spec repository:
>> 'github://svenvc/NeoJSON/repository' ].
>> 
>> Any hints?
>> Thanks
>> 
>> 
>> Sven Van Caekenberghe-2 wrote
>>> When loading from Git(Hub) you have to use BaselineOf...
>>> 
>>> Installation instructions at https://github.com/svenvc/NeoJSON
>>> 
>>>> On 27 Sep 2019, at 11:54, Davide Varvello via Pharo-users 
>> 
>>> pharo-users@.pharo
>> 
>>>  wrote:
>>>> 
>>>> 
>>>> From: Davide Varvello 
>> 
>>> varvello@
>> 
>>> 
>>>> Subject: Could not resolve: BaselineOfNeoJSON
>>>> Date: 27 September 2019 at 11:54:03 GMT+2
>>>> To: 
>> 
>>> pharo-users@.pharo
>> 
>>>> 
>>>> 
>>>> Hi Guys,
>>>> 
>>>> The evaluation of 
>>>> Metacello new
>>>> repository: 'github://svenvc/NeoJSON/repository';
>>>> baseline: 'NeoJSON';
>>>> load.
>>>> 
>>>> returns: Could not resolve: BaselineOfNeoJSON [BaselineOfNeoJSON] in
>>>> /Users/myName/Development/MyProject/package-cache
>>>> github://svenvc/NeoJSON:master/repository
>>>> 
>>>> Can you help me, please?
>>>> Thanks
>>>> 
>>>> 
>>>> 
>>>> --
>>>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>>> 
>>>> 
>>>> 
>> 
>> 
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html





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

--- End Message ---


Re: [Pharo-users] Could not resolve: BaselineOfNeoJSON

2019-09-27 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi Sven, 
I don't quite understand. At https://github.com/svenvc/NeoJSON it shows "to
load NeoJSON using Metacello" 
Metacello new
  repository: 'github://svenvc/NeoJSON/repository';
  baseline: 'NeoJSON';
  load.

That's the step I did and I suppose it was enough. I don't know the meaning
of the next line and :
spec baseline: 'NeoJSON' with: [ spec repository:
'github://svenvc/NeoJSON/repository' ].

Any hints?
Thanks


Sven Van Caekenberghe-2 wrote
> When loading from Git(Hub) you have to use BaselineOf...
> 
> Installation instructions at https://github.com/svenvc/NeoJSON
> 
>> On 27 Sep 2019, at 11:54, Davide Varvello via Pharo-users 

> pharo-users@.pharo

>  wrote:
>> 
>> 
>> From: Davide Varvello 

> varvello@

> 
>> Subject: Could not resolve: BaselineOfNeoJSON
>> Date: 27 September 2019 at 11:54:03 GMT+2
>> To: 

> pharo-users@.pharo

>> 
>> 
>> Hi Guys,
>> 
>> The evaluation of 
>> Metacello new
>>  repository: 'github://svenvc/NeoJSON/repository';
>>  baseline: 'NeoJSON';
>>  load.
>> 
>> returns: Could not resolve: BaselineOfNeoJSON [BaselineOfNeoJSON] in
>> /Users/myName/Development/MyProject/package-cache
>> github://svenvc/NeoJSON:master/repository
>> 
>> Can you help me, please?
>> Thanks
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>> 
>> 
>>





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

--- End Message ---


[Pharo-users] Could not resolve: BaselineOfNeoJSON

2019-09-27 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi Guys,

The evaluation of 
Metacello new
  repository: 'github://svenvc/NeoJSON/repository';
  baseline: 'NeoJSON';
  load.

returns: Could not resolve: BaselineOfNeoJSON [BaselineOfNeoJSON] in
/Users/myName/Development/MyProject/package-cache
github://svenvc/NeoJSON:master/repository

Can you help me, please?
Thanks



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

--- End Message ---


Re: [Pharo-users] Zinc and Oauth2

2019-03-28 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Thanks Sven, I'm going to give it a glance.

Cheers
Davide



Sven Van Caekenberghe-2 wrote
> Davide,
> 
> The main Zinc repository is now https://github.com/svenvc/zinc (although
> the old ones are also still good).
> 
> You should look at the baseline, but loading group SSO will get you
> started.
> 
> I am not actively using OAuth, but several people have, so it should work
> (the code did not change in a long while).
> 
> This is not such a simple subject though (there are several demos that
> used to work).
> 
> Good luck,
> 
> Sven
> 
>> On 28 Mar 2019, at 20:54, Davide Varvello via Pharo-users 

> pharo-users@.pharo

>  wrote:
>> 
>> 
>> From: Davide Varvello 

> varvello@

> 
>> Subject: Zinc and Oauth2
>> Date: 28 March 2019 at 20:54:05 GMT+1
>> To: 

> pharo-users@.pharo

>> 
>> 
>> Hi Guys,
>> I'm trying to play with Outh2, but I'm wondering how to download it in
>> Pharo.
>> 
>> If I use the Gofer as indicated here:
>> https://github.com/svenvc/docs/blob/master/zinc/zinc-sso-paper.md
>> 
>> Gofer it
>>  url: 'http://mc.stfx.eu/ZincHTTPComponents';
>>  package: 'ConfigurationOfZincHTTPComponents';
>>  load.
>> ConfigurationOfZincHTTPComponents project latestVersion load: 'SSO'.
>> 
>> 
>> It returns an error.
>> Can you help me please?
>> 
>> TIA
>> Davide
>> 
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>> 
>> 
>>





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

--- End Message ---


[Pharo-users] Zinc and Oauth2

2019-03-28 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi Guys,
I'm trying to play with Outh2, but I'm wondering how to download it in
Pharo.

If I use the Gofer as indicated here:
https://github.com/svenvc/docs/blob/master/zinc/zinc-sso-paper.md

Gofer it
  url: 'http://mc.stfx.eu/ZincHTTPComponents';
  package: 'ConfigurationOfZincHTTPComponents';
  load.
ConfigurationOfZincHTTPComponents project latestVersion load: 'SSO'.


It returns an error.
Can you help me please?

TIA
Davide




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

--- End Message ---


Re: [Pharo-users] How to pretty print a dynamic array

2018-05-09 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Yep, Peter, that's an other option.
Thanks


Peter Uhnák wrote
>>  {self meth1. self meth2. self meth3}
> 
> This is not possible in a reasonably general way. Usually I end up writing
> it like `Array with: self meth1 with: self meth2 with: self meth3`
> 
> On Tue, May 8, 2018 at 3:31 PM, Davide Varvello via Pharo-users <

> pharo-users@.pharo

>> wrote:
> 
>>
>>
>> -- Forwarded message --
>> From: Davide Varvello 

> varvello@

> 
>> To: 

> pharo-users@.pharo

>> Cc:
>> Bcc:
>> Date: Tue, 8 May 2018 06:31:46 -0700 (MST)
>> Subject: Re: How to pretty print a dynamic array
>> Thanks Ben, I'm gonna try
>> Cheers
>> Davide
>>
>>
>> Ben Coman wrote
>> > On 8 May 2018 at 04:22, Davide Varvello via Pharo-users <
>>
>> > pharo-users@.pharo
>>
>> >> wrote:
>> >
>> >>
>> >>
>> >> -- Forwarded message --
>> >> From: Davide Varvello 
>>
>> > varvello@
>>
>> > 
>> >> To:
>>
>> > pharo-users@.pharo
>>
>> >> Cc:
>> >> Bcc:
>> >> Date: Mon, 7 May 2018 13:22:58 -0700 (MST)
>> >> Subject: How to pretty print a dynamic array
>> >> Hi guys,
>> >> I have a dynamic array that the formatter put on a column like this:
>> >> {self meth1.
>> >> self meth2.
>> >> self meth3}
>> >>
>> >> instead I want it in a single row, like this:
>> >> {self meth1. self meth2. self meth3}
>> >>
>> >> But I can't find any settings to pretty print in the last way.
>> >> Can you help me, please?
>> >>
>> >
>> > Hi Davide,
>> >
>> > I'm not sure I can be much help since I never use the pretty printer
>> and
>> > I'm not familiar with the system.
>> > There may be a setting for that, but if not and I wanted to find out
>> about
>> > how to do it
>> > I'd take the shotgun approach
>> >
>> > In System > Settings, search for "pretty" and the with some setting
>> > related
>> > to newLines,
>> > some line "New line After Cascade"
>> > then "Browse" it, then in the body of the method find that text again
>> > and look for senders attached selector.
>> >
>> > That brought me to " BIConfigurableFormatter >> visitCascadeNode: "
>> > and browsing that method in the System Browser shows a bundle of other
>> > "visitXXX" methods.
>> > Drop a "self haltOnce" in an interesting one and try to trigger when
>> you
>> > pretty print.
>> > Trace through a few times to learn how it does its stuff, and see if
>> you
>> > can change it to do what you want.
>>
>>
>>
>>
>>
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>
>>
>>





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

--- End Message ---


Re: [Pharo-users] How to pretty print a dynamic array

2018-05-08 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Thanks Ben, I'm gonna try
Cheers
Davide


Ben Coman wrote
> On 8 May 2018 at 04:22, Davide Varvello via Pharo-users <

> pharo-users@.pharo

>> wrote:
> 
>>
>>
>> -- Forwarded message --
>> From: Davide Varvello 

> varvello@

> 
>> To: 

> pharo-users@.pharo

>> Cc:
>> Bcc:
>> Date: Mon, 7 May 2018 13:22:58 -0700 (MST)
>> Subject: How to pretty print a dynamic array
>> Hi guys,
>> I have a dynamic array that the formatter put on a column like this:
>> {self meth1.
>> self meth2.
>> self meth3}
>>
>> instead I want it in a single row, like this:
>> {self meth1. self meth2. self meth3}
>>
>> But I can't find any settings to pretty print in the last way.
>> Can you help me, please?
>>
> 
> Hi Davide,
> 
> I'm not sure I can be much help since I never use the pretty printer and
> I'm not familiar with the system.
> There may be a setting for that, but if not and I wanted to find out about
> how to do it
> I'd take the shotgun approach
> 
> In System > Settings, search for "pretty" and the with some setting
> related
> to newLines,
> some line "New line After Cascade"
> then "Browse" it, then in the body of the method find that text again
> and look for senders attached selector.
> 
> That brought me to " BIConfigurableFormatter >> visitCascadeNode: "
> and browsing that method in the System Browser shows a bundle of other
> "visitXXX" methods.
> Drop a "self haltOnce" in an interesting one and try to trigger when you
> pretty print.
> Trace through a few times to learn how it does its stuff, and see if you
> can change it to do what you want.





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

--- End Message ---


[Pharo-users] How to pretty print a dynamic array

2018-05-07 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi guys,
I have a dynamic array that the formatter put on a column like this:
{self meth1.
self meth2.
self meth3}

instead I want it in a single row, like this:
{self meth1. self meth2. self meth3}

But I can't find any settings to pretty print in the last way.
Can you help me, please?


Davide



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

--- End Message ---


Re: [Pharo-users] Bloated image again. Memory leak?

2017-06-20 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Thanks for the article Phil and yep I generate many reports from the
inspection of a lot of collections
Davide


philippeback wrote
> On Mon, Jun 19, 2017 at 11:52 AM, Davide Varvello via Pharo-users <

> pharo-users@.pharo

>> wrote:
> 
>>
>>
>> -- Forwarded message --
>> From: Davide Varvello 

> varvello@

> 
>> To: 

> pharo-users@.pharo

>> Cc:
>> Bcc:
>> Date: Mon, 19 Jun 2017 02:52:08 -0700 (PDT)
>> Subject: Re: Bloated image again. Memory leak?
>> Thank you very much Phil,
>> Your code works! The image went from 600MB to 80MB
>>
> 
> I suffered from such a thing for a long time, and thanks to Clément and
> Pavel, we are not having to suffer that bloat anymore :-)
> 
> This article is worth a read for making things fast(er) in some cases (if
> you got to 600MB then you were inspecting decently sized collections):
> https://clementbera.wordpress.com/2017/03/12/tuning-the-pharo-garbage-collector/
> 
> Phil
> 





--
View this message in context: 
http://forum.world.st/Bloated-image-again-Memory-leak-tp4951862p4951975.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

--- End Message ---


Re: [Pharo-users] Bloated image again. Memory leak?

2017-06-20 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Fine
Davide


EstebanLM wrote
>> On 19 Jun 2017, at 11:52, Davide Varvello via Pharo-users 

> pharo-users@.pharo

>  wrote:
>> 
>> 
>> From: Davide Varvello 

> varvello@

>  mailto:

> varvello@

> >
>> Subject: Re: Bloated image again. Memory leak?
>> Date: 19 June 2017 at 11:52:08 GMT+2
>> To: 

> pharo-users@.pharo

>  mailto:

> pharo-users@.pharo

> 
>> 
>> 
>> Thank you very much Phil,
>> Your code works! The image went from 600MB to 80MB 
>> 
>> I'm wondering why there is no bug record about GLMPanePort on
>> https://pharo.fogbugz.com/f/search/?sSearchFor=GLMPanePort
>> https://pharo.fogbugz.com/f/search/?sSearchFor=GLMPanePort; nor a
>> fix. Nobody
>> has this issue, but you and me? I'm puzzled.
> 
> I think because this was a more general bug that *should* be fixed on
> Pharo 6. 
> 
> cheers!
> Esteban
> 
>> 
>> Anyway
>> Thank you very much
>> Davide
>> 
>> 
>> philippeback wrote
>>> Check
>>> 
>>> https://gist.github.com/philippeback/39c63bb5aa26b79098511cdfea4fea7e
>>> https://gist.github.com/philippeback/39c63bb5aa26b79098511cdfea4fea7e;
>>> 
>>> Phil
>>> 
>>> On Mon, Jun 19, 2017 at 8:45 AM, Davide Varvello via Pharo-users <
>> 
>>> pharo-users@.pharo
>> 
>>>> wrote:
>>> 
>>>> 
>>>> 
>>>> -- Forwarded message --
>>>> From: Davide Varvello 
>> 
>>> varvello@
>> 
>>> 
>>>> To: 
>> 
>>> pharo-users@.pharo
>> 
>>>> Cc:
>>>> Bcc:
>>>> Date: Sun, 18 Jun 2017 23:45:32 -0700 (PDT)
>>>> Subject: Bloated image again. Memory leak?
>>>> Hi guys,
>>>> I have this problem (http://forum.world.st/Huge-image-td4876854.html),
>>>> now
>>>> the image grow about 100MB per week and the suggestions shown on
>>>> http://forum.world.st/Huge-image-td4876854.html don't work
>>>> 
>>>> I'm on Pharo 5 on a mac.
>>>> 
>>>> I suspect it is something related to GLMPanePort, see the attached jpg
>>>> Can you help me please?
>>>> 
>>>> TIA
>>>> Davide
>>>> 
>>>> 
>>>> http://forum.world.st/file/n4951861/huge_image2.jpg;
>>>> 
>>>> 
>>>> 
>>>> --
>>>> View this message in context: http://forum.world.st/Bloated-
>>>> image-again-Memory-leak-tp4951861.html
>>>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>>> 
>>>> 
>>>> 
>>>> 
>> 
>> 
>> 
>> 
>> 
>> --
>> View this message in context:
>> http://forum.world.st/Bloated-image-again-Memory-leak-tp4951862p4951885.html
>> http://forum.world.st/Bloated-image-again-Memory-leak-tp4951862p4951885.html;
>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com
>> http://nabble.com/;.





--
View this message in context: 
http://forum.world.st/Bloated-image-again-Memory-leak-tp4951862p4951973.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

--- End Message ---


Re: [Pharo-users] Bloated image again. Memory leak?

2017-06-19 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Thank you very much Phil,
Your code works! The image went from 600MB to 80MB 

I'm wondering why there is no bug record about GLMPanePort on
https://pharo.fogbugz.com/f/search/?sSearchFor=GLMPanePort nor a fix. Nobody
has this issue, but you and me? I'm puzzled.

Anyway
Thank you very much
Davide


philippeback wrote
> Check
> 
> https://gist.github.com/philippeback/39c63bb5aa26b79098511cdfea4fea7e
> 
> Phil
> 
> On Mon, Jun 19, 2017 at 8:45 AM, Davide Varvello via Pharo-users <

> pharo-users@.pharo

>> wrote:
> 
>>
>>
>> -- Forwarded message --
>> From: Davide Varvello 

> varvello@

> 
>> To: 

> pharo-users@.pharo

>> Cc:
>> Bcc:
>> Date: Sun, 18 Jun 2017 23:45:32 -0700 (PDT)
>> Subject: Bloated image again. Memory leak?
>> Hi guys,
>> I have this problem (http://forum.world.st/Huge-image-td4876854.html),
>> now
>> the image grow about 100MB per week and the suggestions shown on
>> http://forum.world.st/Huge-image-td4876854.html don't work
>>
>> I'm on Pharo 5 on a mac.
>>
>> I suspect it is something related to GLMPanePort, see the attached jpg
>> Can you help me please?
>>
>> TIA
>> Davide
>>
>>
>> http://forum.world.st/file/n4951861/huge_image2.jpg;
>>
>>
>>
>> --
>> View this message in context: http://forum.world.st/Bloated-
>> image-again-Memory-leak-tp4951861.html
>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>
>>
>>
>>





--
View this message in context: 
http://forum.world.st/Bloated-image-again-Memory-leak-tp4951862p4951885.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

--- End Message ---


[Pharo-users] Bloated image again. Memory leak?

2017-06-19 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi guys,
I have this problem (http://forum.world.st/Huge-image-td4876854.html), now
the image grow about 100MB per week and the suggestions shown on
http://forum.world.st/Huge-image-td4876854.html don't work

I'm on Pharo 5 on a mac.

I suspect it is something related to GLMPanePort, see the attached jpg
Can you help me please?

TIA
Davide


 



--
View this message in context: 
http://forum.world.st/Bloated-image-again-Memory-leak-tp4951861.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

--- End Message ---


Re: [Pharo-users] BlueInk formatting (line length) Pharo5

2016-08-19 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi Stef,
I don't know how to write a configuration, is there some documentation
anywhere?

Actually I searched for the hardcoded 70 in the image 

and I eventually ended in
BIPrettyPrinterContext>>maxLineLength: anObject

I ignored anObject and I hardcoded a return value of 200, my favorite max
length.
Davide




stepharo wrote
> It should not be difficult to add a configuration.
> 
> Give a try. It is a nice way to get you happy.
> 
> Stef





--
View this message in context: 
http://forum.world.st/BlueInk-formatting-line-length-Pharo5-tp4911767p4911985.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

--- End Message ---


Re: [Pharo-users] BlueInk formatting (line length) Pharo5

2016-08-18 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi Nicolai,
Thanks for your reply.

Wow, 70 is not so much, especially because standard screens are wide, 16:9
sized. It's a pity it is not configurable.

Cheers
Davide


Nicolai Hess-3-2 wrote
> 2016-08-18 18:02 GMT+02:00 Davide Varvello via Pharo-users <

> pharo-users@.pharo

>>:
> 
>>
>>
>> -- Weitergeleitete Nachricht --
>> From: Davide Varvello 

> varvello@

> 
>> To: 

> pharo-users@.pharo

>> Cc:
>> Date: Thu, 18 Aug 2016 08:59:30 -0700 (PDT)
>> Subject: BlueInk formatting (line length) Pharo5
>> Hi guys
>> I can't find how to increase the line length on the new Blue Ink
>> formatter.
>>
>> On the old formatter there was the option: "Max line length", but it
>> there
>> isn't anymore.
>>
> 
> It is missing. It is initialized to be "70" but not configurable (no
> settings option).
> 
> 
> 
>> TIA
>> Davide
>>
>>
>>
>> --
>> View this message in context: http://forum.world.st/BlueInk-
>> formatting-line-length-Pharo5-tp4911766.html
>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>
>>
>>





--
View this message in context: 
http://forum.world.st/BlueInk-formatting-line-length-Pharo5-tp4911767p4911851.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

--- End Message ---


  1   2   >