Re: [Pharo-dev] SSL error on windows 7

2018-04-02 Thread Ben Coman
On 3 April 2018 at 04:13, Cyril Ferlicot D. 
wrote:

> Hi!
>
> I have some trouble with SSL in Pharo 7.
>
> If I execute this code:
>
> ZnClient new url: 'https://google.com'; get.
>
> I get a result.
>
> If I execute this code:
>
> ZnClient new url: 'https://github.com'; get.
>

This works for me on Microsoft Windows [Version 10.0.16299.309]   (`ver`
from cmd.exe)
with 60539 run from PharoLauncher.




  

  https://assets-cdn.github.com;>
  https://avatars0.githubusercontent.com;>
  https://avatars1.githubusercontent.com;>
etc...

cheers -ben



>
> I get this error: Error: SSL Exception: connect failed [code:-5]
>
> I tried with both stable and latest vm.
>
> This is very troublesome because I cannot load some projects on this
> computer :(
>
> I am on windows 7.
>
> Here are the details and the stack:
>
> Image
> -
> E:\Pharo\images\Pharo 7.0 (development version)-22\Pharo 7.0
> (development version)-22.image
> Pharo7.0alpha
> Build information:
> Pharo-7.0+alpha.build.749.sha.039a4b6f0d61ba99778349c4cff2c4e8d5ff9227
> (32 Bit)
> Unnamed
>
> Virtual Machine
> ---
> C:\Users\JeCisC\Documents\Pharo\vms\70-x86\Pharo.exe
> CoInterpreter VMMaker.oscog-eem.2359 uuid:
> b3273e3e-dd9d-4819-a928-7034e1cf412c Mar 16 2018
> StackToRegisterMappingCogit VMMaker.oscog-eem.2359 uuid:
> b3273e3e-dd9d-4819-a928-7034e1cf412c Mar 16 2018
> VM: 201803161038 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $
> Date: Fri Mar 16 11:38:09 2018 +0100 $ Plugins: 201803161038
> https://github.com/OpenSmalltalk/opensmalltalk-vm.git $
>
> Win32 built on Mar 16 2018 11:02:19 GMT Compiler: 6.4.0
> VMMaker versionString VM: 201803161038
> https://github.com/OpenSmalltalk/opensmalltalk-vm.git $ Date: Fri Mar 16
> 11:38:09 2018 +0100 $ Plugins: 201803161038
> https://github.com/OpenSmalltalk/opensmalltalk-vm.git $
> CoInterpreter VMMaker.oscog-eem.2359 uuid:
> b3273e3e-dd9d-4819-a928-7034e1cf412c Mar 16 2018
> StackToRegisterMappingCogit VMMaker.oscog-eem.2359 uuid:
> b3273e3e-dd9d-4819-a928-7034e1cf412c Mar 16 2018
>
> Operating System/Hardware
> -
> Win32 6.1 IX86
>
> Operating System Details
> 
> Operating System: Windows 7 Professional N (Build 7601 Service Pack 1)
> SP major version: 1
> SP minor version: 0
> Suite mask: 100
> Product type: 1
>
>
> ==
>
> ZdcSecureSocketStream(Object)>>error:
> ZdcSecureSocketStream>>sslException:code:
> ZdcSecureSocketStream>>connect
> ZnClient>>setupTLSTo:
> ZnClient>>newConnectionTo:
> ZnClient>>getConnectionAndExecute
> ZnClient>>executeWithRedirectsRemaining:
> [ self executeWithRedirectsRemaining: self maxNumberOfRedirects ] in
> ZnClient>>executeWithRetriesRemaining: in Block: [ self
> executeWithRedirectsRemaining: self maxNumb...etc...
> BlockClosure>>on:do:
> ZnClient>>executeWithRetriesRemaining:
> [ self executeWithRetriesRemaining: self numberOfRetries ] in [ [ self
> executeWithRetriesRemaining: self numberOfRetries ]
> on: Error
> do: self ifFailBlock ] in ZnClient>>executeWithTimeout in Block: [
> self
> executeWithRetriesRemaining: self numberOfR...etc...
> BlockClosure>>on:do:
> [ [ self executeWithRetriesRemaining: self numberOfRetries ]
> on: Error
> do: self ifFailBlock ] in ZnClient>>executeWithTimeout in Block: [
> [
> self executeWithRetriesRemaining: self numberO...etc...
> [ ^ block value ] in ZnClient>>withTimeoutDo: in Block: [ ^ block value ]
> [ activeProcess psValueAt: index put: anObject.
> aBlock value ] in ZnConnectionTimeout(DynamicVariable)>>value:during: in
> Block: [ activeProcess psValueAt: index put: anObject
> BlockClosure>>ensure:
> ZnConnectionTimeout(DynamicVariable)>>value:during:
> ZnConnectionTimeout class(DynamicVariable class)>>value:during:
> ZnClient>>withTimeoutDo:
> ZnClient>>executeWithTimeout
> [ result := self executeWithTimeout ] in ZnClient>>execute in Block: [
> result := self executeWithTimeout ]
> [ ^ block value ] in ZnClient>>withProgressDo: in Block: [ ^ block value ]
> [ activeProcess psValueAt: index put: anObject.
> aBlock value ] in ZnSignalProgress(DynamicVariable)>>value:during: in
> Block: [ activeProcess psValueAt: index put: anObject
> BlockClosure>>ensure:
> ZnSignalProgress(DynamicVariable)>>value:during:
> ZnSignalProgress class(DynamicVariable class)>>value:during:
> ZnClient>>withProgressDo:
> ZnClient>>execute
> ZnClient>>get
> UndefinedObject>>DoIt
>
>
>
> --
> Cyril Ferlicot
> https://ferlicot.fr
>
>


Re: [Pharo-dev] [Pharo7] halt inside and outside tests

2018-04-02 Thread Ben Coman
On 3 April 2018 at 03:12, Marcus Denker  wrote:

> Hi,
>
> As we can not very easily decide if we are inside a test execution or not
> there was the idea to have special #halt messages
>
> https://pharo.fogbugz.com/f/cases/20151/new-halt-messages
>
> This PR implements them:
>
> https://github.com/pharo-project/pharo/pull/1177
>
> There is now #haltIfInsideTest and #haltfOutsideTest. I
>

Should the standard #halt default to one of these?  Or left as is? (I've no
clue, just the question arises).


cheers -ben


Re: [Pharo-dev] SSL error on windows 7

2018-04-02 Thread Cyril Ferlicot D.
Le 02/04/2018 à 23:49, Sven Van Caekenberghe a écrit :
> Well, it works for me on macOS and Ubuntu with [version] 'Pharo7.0' 
> 'Pharo-7.0+alpha.build.660.sha.2eb9bd2f41e7b0bd8f9f4190906910f83c178ab1 (32 
> Bit)'
> 
> Both socket(stream) code as well as SSL plugin code is different between the 
> 3 main platforms. SSL plugin code also depends on your OS's libraries. It is 
> complex and messy.
> 
> Maybe other Windows user can help, I don't know. I can't try on Windows 7, 
> sorry.
> 
> Did it work before ?
> 
> 
> 

It has been a long time since I loaded a project on this computer (I
usually takes pre made image from CI), but I know it worked before.

I know it also work on my laptop with Windows 10 since I could load the
latest Iceberg on it.

I tried with different Pharo and:
- Pharo 70: Fail
- Pharo 61: Fail
- Pharo 60: Fail
- Pharo 50: Success


-- 
Cyril Ferlicot
https://ferlicot.fr



signature.asc
Description: OpenPGP digital signature


Re: [Pharo-dev] SSL error on windows 7

2018-04-02 Thread Sven Van Caekenberghe


> On 2 Apr 2018, at 22:13, Cyril Ferlicot D.  wrote:
> 
> Hi!
> 
> I have some trouble with SSL in Pharo 7.
> 
> If I execute this code:
> 
> ZnClient new url: 'https://google.com'; get.
> 
> I get a result.
> 
> If I execute this code:
> 
> ZnClient new url: 'https://github.com'; get.
> 
> I get this error: Error: SSL Exception: connect failed [code:-5]

Well, it works for me on macOS and Ubuntu with [version] 'Pharo7.0' 
'Pharo-7.0+alpha.build.660.sha.2eb9bd2f41e7b0bd8f9f4190906910f83c178ab1 (32 
Bit)'

Both socket(stream) code as well as SSL plugin code is different between the 3 
main platforms. SSL plugin code also depends on your OS's libraries. It is 
complex and messy.

Maybe other Windows user can help, I don't know. I can't try on Windows 7, 
sorry.

Did it work before ?

> I tried with both stable and latest vm.
> 
> This is very troublesome because I cannot load some projects on this
> computer :(
> 
> I am on windows 7.
> 
> Here are the details and the stack:
> 
> Image
> -
> E:\Pharo\images\Pharo 7.0 (development version)-22\Pharo 7.0
> (development version)-22.image
> Pharo7.0alpha
> Build information:
> Pharo-7.0+alpha.build.749.sha.039a4b6f0d61ba99778349c4cff2c4e8d5ff9227
> (32 Bit)
> Unnamed
> 
> Virtual Machine
> ---
> C:\Users\JeCisC\Documents\Pharo\vms\70-x86\Pharo.exe
> CoInterpreter VMMaker.oscog-eem.2359 uuid:
> b3273e3e-dd9d-4819-a928-7034e1cf412c Mar 16 2018
> StackToRegisterMappingCogit VMMaker.oscog-eem.2359 uuid:
> b3273e3e-dd9d-4819-a928-7034e1cf412c Mar 16 2018
> VM: 201803161038 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $
> Date: Fri Mar 16 11:38:09 2018 +0100 $ Plugins: 201803161038
> https://github.com/OpenSmalltalk/opensmalltalk-vm.git $
> 
> Win32 built on Mar 16 2018 11:02:19 GMT Compiler: 6.4.0
> VMMaker versionString VM: 201803161038
> https://github.com/OpenSmalltalk/opensmalltalk-vm.git $ Date: Fri Mar 16
> 11:38:09 2018 +0100 $ Plugins: 201803161038
> https://github.com/OpenSmalltalk/opensmalltalk-vm.git $
> CoInterpreter VMMaker.oscog-eem.2359 uuid:
> b3273e3e-dd9d-4819-a928-7034e1cf412c Mar 16 2018
> StackToRegisterMappingCogit VMMaker.oscog-eem.2359 uuid:
> b3273e3e-dd9d-4819-a928-7034e1cf412c Mar 16 2018
> 
> Operating System/Hardware
> -
> Win32 6.1 IX86
> 
> Operating System Details
> 
> Operating System: Windows 7 Professional N (Build 7601 Service Pack 1)
>   SP major version: 1
>   SP minor version: 0
>   Suite mask: 100
>   Product type: 1
> 
> 
> ==
> 
> ZdcSecureSocketStream(Object)>>error:
> ZdcSecureSocketStream>>sslException:code:
> ZdcSecureSocketStream>>connect
> ZnClient>>setupTLSTo:
> ZnClient>>newConnectionTo:
> ZnClient>>getConnectionAndExecute
> ZnClient>>executeWithRedirectsRemaining:
> [ self executeWithRedirectsRemaining: self maxNumberOfRedirects ] in
> ZnClient>>executeWithRetriesRemaining: in Block: [ self
> executeWithRedirectsRemaining: self maxNumb...etc...
> BlockClosure>>on:do:
> ZnClient>>executeWithRetriesRemaining:
> [ self executeWithRetriesRemaining: self numberOfRetries ] in [ [ self
> executeWithRetriesRemaining: self numberOfRetries ]
>   on: Error
>   do: self ifFailBlock ] in ZnClient>>executeWithTimeout in Block: [ self
> executeWithRetriesRemaining: self numberOfR...etc...
> BlockClosure>>on:do:
> [ [ self executeWithRetriesRemaining: self numberOfRetries ]
>   on: Error
>   do: self ifFailBlock ] in ZnClient>>executeWithTimeout in Block: [ [
> self executeWithRetriesRemaining: self numberO...etc...
> [ ^ block value ] in ZnClient>>withTimeoutDo: in Block: [ ^ block value ]
> [ activeProcess psValueAt: index put: anObject.
> aBlock value ] in ZnConnectionTimeout(DynamicVariable)>>value:during: in
> Block: [ activeProcess psValueAt: index put: anObject
> BlockClosure>>ensure:
> ZnConnectionTimeout(DynamicVariable)>>value:during:
> ZnConnectionTimeout class(DynamicVariable class)>>value:during:
> ZnClient>>withTimeoutDo:
> ZnClient>>executeWithTimeout
> [ result := self executeWithTimeout ] in ZnClient>>execute in Block: [
> result := self executeWithTimeout ]
> [ ^ block value ] in ZnClient>>withProgressDo: in Block: [ ^ block value ]
> [ activeProcess psValueAt: index put: anObject.
> aBlock value ] in ZnSignalProgress(DynamicVariable)>>value:during: in
> Block: [ activeProcess psValueAt: index put: anObject
> BlockClosure>>ensure:
> ZnSignalProgress(DynamicVariable)>>value:during:
> ZnSignalProgress class(DynamicVariable class)>>value:during:
> ZnClient>>withProgressDo:
> ZnClient>>execute
> ZnClient>>get
> UndefinedObject>>DoIt
> 
> 
> 
> -- 
> Cyril Ferlicot
> https://ferlicot.fr
> 




[Pharo-dev] SSL error on windows 7

2018-04-02 Thread Cyril Ferlicot D.
Hi!

I have some trouble with SSL in Pharo 7.

If I execute this code:

ZnClient new url: 'https://google.com'; get.

I get a result.

If I execute this code:

ZnClient new url: 'https://github.com'; get.

I get this error: Error: SSL Exception: connect failed [code:-5]

I tried with both stable and latest vm.

This is very troublesome because I cannot load some projects on this
computer :(

I am on windows 7.

Here are the details and the stack:

Image
-
E:\Pharo\images\Pharo 7.0 (development version)-22\Pharo 7.0
(development version)-22.image
Pharo7.0alpha
Build information:
Pharo-7.0+alpha.build.749.sha.039a4b6f0d61ba99778349c4cff2c4e8d5ff9227
(32 Bit)
Unnamed

Virtual Machine
---
C:\Users\JeCisC\Documents\Pharo\vms\70-x86\Pharo.exe
CoInterpreter VMMaker.oscog-eem.2359 uuid:
b3273e3e-dd9d-4819-a928-7034e1cf412c Mar 16 2018
StackToRegisterMappingCogit VMMaker.oscog-eem.2359 uuid:
b3273e3e-dd9d-4819-a928-7034e1cf412c Mar 16 2018
VM: 201803161038 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $
Date: Fri Mar 16 11:38:09 2018 +0100 $ Plugins: 201803161038
https://github.com/OpenSmalltalk/opensmalltalk-vm.git $

Win32 built on Mar 16 2018 11:02:19 GMT Compiler: 6.4.0
VMMaker versionString VM: 201803161038
https://github.com/OpenSmalltalk/opensmalltalk-vm.git $ Date: Fri Mar 16
11:38:09 2018 +0100 $ Plugins: 201803161038
https://github.com/OpenSmalltalk/opensmalltalk-vm.git $
CoInterpreter VMMaker.oscog-eem.2359 uuid:
b3273e3e-dd9d-4819-a928-7034e1cf412c Mar 16 2018
StackToRegisterMappingCogit VMMaker.oscog-eem.2359 uuid:
b3273e3e-dd9d-4819-a928-7034e1cf412c Mar 16 2018

Operating System/Hardware
-
Win32 6.1 IX86

Operating System Details

Operating System: Windows 7 Professional N (Build 7601 Service Pack 1)
SP major version: 1
SP minor version: 0
Suite mask: 100
Product type: 1


==

ZdcSecureSocketStream(Object)>>error:
ZdcSecureSocketStream>>sslException:code:
ZdcSecureSocketStream>>connect
ZnClient>>setupTLSTo:
ZnClient>>newConnectionTo:
ZnClient>>getConnectionAndExecute
ZnClient>>executeWithRedirectsRemaining:
[ self executeWithRedirectsRemaining: self maxNumberOfRedirects ] in
ZnClient>>executeWithRetriesRemaining: in Block: [ self
executeWithRedirectsRemaining: self maxNumb...etc...
BlockClosure>>on:do:
ZnClient>>executeWithRetriesRemaining:
[ self executeWithRetriesRemaining: self numberOfRetries ] in [ [ self
executeWithRetriesRemaining: self numberOfRetries ]
on: Error
do: self ifFailBlock ] in ZnClient>>executeWithTimeout in Block: [ self
executeWithRetriesRemaining: self numberOfR...etc...
BlockClosure>>on:do:
[ [ self executeWithRetriesRemaining: self numberOfRetries ]
on: Error
do: self ifFailBlock ] in ZnClient>>executeWithTimeout in Block: [ [
self executeWithRetriesRemaining: self numberO...etc...
[ ^ block value ] in ZnClient>>withTimeoutDo: in Block: [ ^ block value ]
[ activeProcess psValueAt: index put: anObject.
aBlock value ] in ZnConnectionTimeout(DynamicVariable)>>value:during: in
Block: [ activeProcess psValueAt: index put: anObject
BlockClosure>>ensure:
ZnConnectionTimeout(DynamicVariable)>>value:during:
ZnConnectionTimeout class(DynamicVariable class)>>value:during:
ZnClient>>withTimeoutDo:
ZnClient>>executeWithTimeout
[ result := self executeWithTimeout ] in ZnClient>>execute in Block: [
result := self executeWithTimeout ]
[ ^ block value ] in ZnClient>>withProgressDo: in Block: [ ^ block value ]
[ activeProcess psValueAt: index put: anObject.
aBlock value ] in ZnSignalProgress(DynamicVariable)>>value:during: in
Block: [ activeProcess psValueAt: index put: anObject
BlockClosure>>ensure:
ZnSignalProgress(DynamicVariable)>>value:during:
ZnSignalProgress class(DynamicVariable class)>>value:during:
ZnClient>>withProgressDo:
ZnClient>>execute
ZnClient>>get
UndefinedObject>>DoIt



-- 
Cyril Ferlicot
https://ferlicot.fr



signature.asc
Description: OpenPGP digital signature


[Pharo-dev] [Pharo7] halt inside and outside tests

2018-04-02 Thread Marcus Denker
Hi,

As we can not very easily decide if we are inside a test execution or not there 
was the idea to have special #halt messages 

https://pharo.fogbugz.com/f/cases/20151/new-halt-messages 


This PR implements them:

https://github.com/pharo-project/pharo/pull/1177 


There is now #haltIfInsideTest and #haltfOutsideTest. In addition, the PR adds 
a helper method to make checking if the current
execution environment is a test run a bit easier:  "CurrentExecutionEnvironment 
value isTest”.

Marcus

[Pharo-dev] [Pharo 7.0-dev] Build #749: 21669-Style-deprecated-classes-in-source-code

2018-04-02 Thread ci-pharo-ci-jenkins2
There is a new Pharo build available!

The status of the build #749 was: SUCCESS.

The Pull Request #1170 was integrated: 
"21669-Style-deprecated-classes-in-source-code"
Pull request url: https://github.com/pharo-project/pharo/pull/1170

Issue Url: https://pharo.fogbugz.com/f/cases/21669
Build Url: 
https://ci.inria.fr/pharo-ci-jenkins2/job/Test%20pending%20pull%20request%20and%20branch%20Pipeline/job/development/749/


Re: [Pharo-dev] AnnouncementSubscription and Ephemerons

2018-04-02 Thread Esteban A. Maringolo
Thank you for the detailed info Stef.

Regards!
Esteban A. Maringolo


2018-04-01 16:16 GMT-03:00 Stephane Ducasse :
> My last email on VM topics...
>
> Hi esteban
>
> Just for the record, our team spent a lot of engineering time and
> money on Pharo.
> May be I forgot some people. Often we bent research projects to
> squeese in Pharo activities.
>
> - Pavel 1 year paid for bootstrap and general improvements
> - Denis 2 years paid for TelePharo (for research projects)
> - Igor 4 years paid for athens, SDL, VM Build, TxText
> - Christophe 5 years bootstrap, ci, infras, plauncher, cargo
> - Clement two years as young engineer on compiler/VM
> - Clement 6 months on Sista
>
> - Camillo 3 years for his Phd
> - Guille 3 years for his Phd
> - Pablo 3 years for his Phd
> - Mariano 3 years for his Phd
> - Clement 3 years for thisPhd
>
> - Guille two years on various improvements
> - Me several years
> - Marcus several years
> - Damien on side project
> - Esteban 4 years by Inria
>
> - Nicolas Passerini got paid by the consortium 9 months
> - Guillermo paid 6 months for database
> - you and mariano got paid for side projects for a couple of months
>
> Right now only Esteban is paid by the consortium because this what the
> consortium
> can pay!
>
> If I sum up Inria put a lot of money on the table compared to the
> users and people
> benefitting from Pharo. But this is like that.
>
> So I think that the consortium is a positive thing. Some people may
> think the contrary.
> Now do not expect miracles. A single guy cannot do much.
> Retrospectively I think that
> I made a mistake pushing to have tools for git. We should have go the
> filetree way
> and command line and gain 18 months of work. But I cannot be right all
> the time.
>
> Now if all the companies doing Pharo would put money on the table then
> we could have
> another full time engineer working to improve the situation. I hope
> that this will happen.
>
> Then about the VM: a VM is a complex piece of engineering.
> And in the open-source community people apparently like to put in addition
> not good process and extra constraints (super compatibility, different
> dialects), not good communication,
> So we end up with a not good situation.
>
> Now I will not read and send any emails about the VM in the future. I
> have a set a filter to
> automatically trash any emails on the topic. So if you send me an
> email and you see now reaction it is normal.
> I think that we make no progress and we are even on regression on this part.
>
> We will talk with the consortium members and asked them what is the priority
> and if the VM is one of them, then we will have to take real decisions
> to make progress.
> Now since we cannot form someone on VM core rapidly we will see what are the
> options. But to me what is clear is that the situation cannot continue
> to be like that.
> We cannot not control our process.
>
> Stef
>
>
> On Sun, Apr 1, 2018 at 6:02 PM, Esteban A. Maringolo
>  wrote:
>> Stef,
>>
>> I encourage you to disclose as much details as possible.
>>
>> For "bystanders" as myself, it is, a Pharo _user_ that always thinks
>> of Pharo as the first option but
>> doesn't contribute to the core of it,  all this discussions only add
>> noise and concerns about the
>> stability of the whole Pharo ecosystem.
>>
>> I've always had  the impression that Pharo is heavily dependent on
>> INRIA's/government institutions,
>> which in the end depend on political decisions instead of
>> "market/profit" objectives.
>> With the support of members of the Consortium I thought this had changed, but
>> reading your statements it seems it is not enough.
>>
>> It is known you don't have the best temper, but it is also known you
>> strive to get the best for Pharo,
>> so if you're also aware of that you can avoid restraining yourself,
>> and say what you have
>> in mind trying to not make personal accusations.
>>
>> I'd prefer a brutal and noisy truth instead of false quiet calm.
>>
>> I hope this helps.
>>
>> Regards,
>>
>> Esteban A. Maringolo
>>
>>
>> 2018-04-01 10:16 GMT-03:00 Stephane Ducasse :
>>> I will not reply publicly to this email because I think that it will get 
>>> worse.
>>> So I will not talk publicly about anything related to the Pharo VM in
>>> the Pharo mailing-list and any other lists.
>>> I will put a filter and trash emails automatically. Like that I will
>>> get touched anymore by what I see.
>>>
>>> You may think that I'm wrong. I'm probably.
>>>
>>> Now just to make clear: I funded all the PhD of Clement, and all the
>>> work of Igor around the VM.
>>> And many other engineers and PhD (C. Bruni, Sophie, ...)
>>> I'm fighting to make the Pharo consortium working so that we can pay
>>> people like Esteban
>>> (Esteban is not working in Pharo just because he cannot find a job
>>> outside our little community and this
>>> is the case for many other people) and other people.
>>>
>>> Stef