[Pharo-users] Pharo 7.0.3 dialog information at startup

2019-04-24 Thread Trussardi Dario Romano
Ciao,

i download the last Pharo 70 image ( on Ubuntu 16.04 LTS  system  )

with the commannd: wget -O- https://get.pharo.org/64/70+vm | 
bash


When i launch the relative  ./pharo-ui  

after the opening the Pharo window

the Pharo system open an information with:

Information
Cannot read stored value of 
#pharoSystem#delaySchedulerClass.
 Exception: KeyNotFound: key #DelaySpinScheduler not 
found in SystemDictionary


Should i consider it as an important problem or can i proceed ignoring 
it?


Thanks,

Dario

Re: [Pharo-users] Pharo 7.0 image size

2019-03-12 Thread Trussardi Dario Romano
Ciao,

About  Hilaire:

>   Beside the browser windows, did you close all Transcript windows?

Yes.

> Hi,
> 
> I am confused by what you are reporting.

I apologize, i'm trying to understand better.
> 
> If you add 10.000 entries to the Transcript, then I don't see how that 
> results in 1000s of those Strings being alive (and certainly not after a GC).
> 
> I tried the following (both with the Transcript window open and closed):
> 
> Transcript.
> Transcript open.
> Transcript clear.
> 
> 1 to: 1e4 do: [ :each | 
>  Transcript crShow: DateAndTime now asString , ' MARKTEST ' , each asString ].
> 
> 3 timesRepeat: [ Smalltalk garbageCollect ].
> 
> [ | count |
> count := 0.
> String allSubInstancesDo: [ :each | 
>  (each includesSubstring: 'MARKTEST') ifTrue: [ count := count + 1 ] ].
> count ] value.

I did some tests following the code you reported.

The thing I noticed is that  the image size after some entry,  from 
144MB is splashed at 272MB.

+10 MB at each step:

 1 to: 1e4 do: [ :each | 
Transcript crShow: DateAndTime now asString , ' 
MARKTEST ' , each asString ].

> 
> The count never went above 100. I am using Pharo 8 but 7 would be similar.
> 
> If you are retaining so many of the messages that you wrote to the 
> Transcript, then you must be doing something else.

I haven't been able to document it for now,

but I had the feeling that the following code creates problems:

testImageSizeCreateTranscriptEntryB
" Create some transcript entry "
  | count  |
 count := 0.
 [ 1 to: 1e4 do:[ :each |
[ Transcript crShow: DateAndTime now asString, ' DARIOTEST ', each 
asString.
1 / ( 0 to: 10 ) atRandom ]
 on: Error
 do:[ :ex | count := count +1.
ex retry ] ] ]value.
 ^ count

Could it be that the retry creates, has created problems?

Thanks,

Dario

> 
> That being said, we do have an issue with the WriteStream held by the stream 
> instance variable inside ThreadSafeTranscript. It is being reset from time to 
> time and when #clear is called, but that does not bring down the size of the 
> underlying collection below its 'one time peak'.
> 
> Sven
> 
>> On 8 Mar 2019, at 11:59, Trussardi Dario Romano  
>> wrote:
>> 
>> Ciao,
>> 
>>  this morning i started with an image of about 240 MB.
>> 
>>  I have 3 System Browser open ( for a long time ).
>> 
>>  I close all the System Browser and save the image.
>> 
>>  The image size after the save is about 131 MB.
>> 
>>  The new SpaceTally printSpaceAnalysis   report:
>> 
>>  Class code space# instances inst 
>> space percent   inst average size
>>  Array   4115561766  
>> 37353480   25.60   66.49
>>  ByteString  2942249761  
>> 31313136   21.50  125.37
>> 
>> 
>>  The Transcript entry reference basically does not change:
>> 
>>  ByteString allInstances select:[ :i |  i includesSubstring: 
>> 'NETWORK' ] 
>> 
>>  where 'NETWORK' is a string used in the methods to add 
>> Transcript entry  Transcript show: .. NETWORK' ..' .
>> 
>>  
>>  The system found 2958ByteString instances( 
>> relative to the NETWORK  ) 
>> 
>>  The system found22655   ByteString instances( 
>> relative to the CASH  ) 
>> 
>> 
>>  Why are there many references in the system to the ByteString 
>> instances, created in the methods to report the data in Transcript ?
>> 
>>  Someone to considerations ?
>> 
>>  Thanks,
>> 
>>  Dario
>> 
>>> Ciao,
>>> 
>>> I thought that using Transcript as a report to analyze the operation of 
>>> the code was a good thing - solution.
>>> 
>>> Unfortunately, however, the size of the image continues to increase  ( 
>>> and I think it's due to the use of the transcript )
>>> 
>>> and i can not find the solution to avoid the problem.
>>> 
>>> I could create a file to report everything about the operations code, 
>>> but then it becomes difficult to manage, or am i wrong?
>>> 
>>> Oth

Re: [Pharo-users] Pharo 7.0 image size

2019-03-08 Thread Trussardi Dario Romano
Ciao,

this morning i started with an image of about 240 MB.

I have 3 System Browser open ( for a long time ).

I close all the System Browser and save the image.

The image size after the save is about 131 MB.

The new SpaceTally printSpaceAnalysis   report:

Class code space# instances inst 
space percent   inst average size
Array   4115561766  
37353480   25.60   66.49
ByteString  2942249761  
31313136   21.50  125.37


The Transcript entry reference basically does not change:

ByteString allInstances select:[ :i |  i includesSubstring: 
'NETWORK' ] 

where 'NETWORK' is a string used in the methods to add 
Transcript entry  Transcript show: .. NETWORK' ..' .


The system found 2958ByteString instances( 
relative to the NETWORK  ) 

The system found22655   ByteString instances( 
relative to the CASH  ) 


Why are there many references in the system to the ByteString 
instances, created in the methods to report the data in Transcript ?

Someone to considerations ?

Thanks,

Dario

> Ciao,
> 
>   I thought that using Transcript as a report to analyze the operation of 
> the code was a good thing - solution.
> 
>   Unfortunately, however, the size of the image continues to increase  ( 
> and I think it's due to the use of the transcript )
> 
>   and i can not find the solution to avoid the problem.
> 
>   I could create a file to report everything about the operations code, 
> but then it becomes difficult to manage, or am i wrong?
> 
>   Other solutions - indications - references ?
> 
>   Thanks,
> 
>   Dario
> 
>> Ciao,
>> 
>>  thanks.
>> 
>>  i have a Pharo 7.0  alpha build 1262.
>> 
>>  I development a Seaside application.
>> 
>>> May be you have a lot of still open Seaside session, which if I remember
>>> correctly are automatically shutdown after 10 min when not active.
>>> 
>>> Looking at Seaside session instances may give clue.
>>  
>>  OK, i clear the seaside session with the relative seaside status
>>  Clear  action.
>> 
>>  
>> 
>>  But the image size keeps increasing, without an apparent reason.
>> 
>>  The consideration that I can do and that in the method code i often use 
>> Transcript show: '.NETWORK | CASH | .' to check the correct 
>> functioning.
>> 
>>  With theSpaceTally printSpaceAnalysis   i note:
>> 
>>  as of February  16th:
>>  
>>  Classcode space # instances 
>>  inst space percent inst average size
>>   Array  4115
>> 656764  43904528   23.30 66.85
>>   ByteString 2942
>> 233871   27527272  14.60117.70 
>> 
>>  
>>  as of March 4th
>>  Class  code space# instances
>>   inst space percentinst average size
>>   Array  4115837017  
>>  50564552   23.4060.41
>>   ByteString 2942
>>  266620  31933216  14.80 119.77
>> 
>>  Now i do:
>> 
>>  ByteString allInstances select:[ :i |  i 
>> includesSubstring: 'NETWORK' ] 
>> 
>>  where 'NETWORK' is a string used in the Transcript show: .. 
>> NETWORK' ..'  report entry.
>> 
>>  
>>  The system found 3214 ByteString instances( relative to 
>> the NETWORK  ) 
>> 
>>  The system found 22650 ByteString instances( 
>> relative to the CASH  ) 
>>  
>>  The system found ..
>> 
>>  
>>  Because ?
>> 
>> 
>>  Does the system remember something about the string 
>> create for the Transcript show:   entry ?
>> 
>>  I need to reset something?
>> 
>>  How can I analyze the situation?
>> 
>>  I follow some aByteString entry   with the   
>> pointersTo  method
>>  
>>   but for now I have not found the solution.
>> 
>>  
>>  
>>  Thanks,
>> 
>>  Dario
>> 
>> 
> 
> 




Re: [Pharo-users] Pharo 7.0 image size

2019-03-08 Thread Trussardi Dario Romano
Ciao,

this morning i started with an image of about 240 MB.

I have 3 System Browser open ( for a long time ).

I close all the System Browser and save the image.

The image size after the save is about 131 MB.

The new SpaceTally printSpaceAnalysis   report:

Class code space# instances inst 
space percent   inst average size
Array   4115561766  
37353480   25.60   66.49
ByteString  2942249761  
31313136   21.50  125.37


The Transcript entry reference basically does not change:

ByteString allInstances select:[ :i |  i includesSubstring: 
'NETWORK' ] 

where 'NETWORK' is a string used in the methods to add 
Transcript entry  Transcript show: .. NETWORK' ..' .


The system found 2958ByteString instances( 
relative to the NETWORK  ) 

The system found22655   ByteString instances( 
relative to the CASH  ) 


Why are there many references in the system to the ByteString 
instances, created in the methods to report the data in Transcript ?

Someone to considerations ?

Thanks,

Dario

> Ciao,
> 
>   I thought that using Transcript as a report to analyze the operation of 
> the code was a good thing - solution.
> 
>   Unfortunately, however, the size of the image continues to increase  ( 
> and I think it's due to the use of the transcript )
> 
>   and i can not find the solution to avoid the problem.
> 
>   I could create a file to report everything about the operations code, 
> but then it becomes difficult to manage, or am i wrong?
> 
>   Other solutions - indications - references ?
> 
>   Thanks,
> 
>   Dario
> 
>> Ciao,
>> 
>>  thanks.
>> 
>>  i have a Pharo 7.0  alpha build 1262.
>> 
>>  I development a Seaside application.
>> 
>>> May be you have a lot of still open Seaside session, which if I remember
>>> correctly are automatically shutdown after 10 min when not active.
>>> 
>>> Looking at Seaside session instances may give clue.
>>  
>>  OK, i clear the seaside session with the relative seaside status
>>  Clear  action.
>> 
>>  
>> 
>>  But the image size keeps increasing, without an apparent reason.
>> 
>>  The consideration that I can do and that in the method code i often use 
>> Transcript show: '.NETWORK | CASH | .' to check the correct 
>> functioning.
>> 
>>  With theSpaceTally printSpaceAnalysis   i note:
>> 
>>  as of February  16th:
>>  
>>  Classcode space # instances 
>>  inst space percent inst average size
>>   Array  4115
>> 656764  43904528   23.30 66.85
>>   ByteString 2942
>> 233871   27527272  14.60117.70 
>> 
>>  
>>  as of March 4th
>>  Class  code space# instances
>>   inst space percentinst average size
>>   Array  4115837017  
>>  50564552   23.4060.41
>>   ByteString 2942
>>  266620  31933216  14.80 119.77
>> 
>>  Now i do:
>> 
>>  ByteString allInstances select:[ :i |  i 
>> includesSubstring: 'NETWORK' ] 
>> 
>>  where 'NETWORK' is a string used in the Transcript show: .. 
>> NETWORK' ..'  report entry.
>> 
>>  
>>  The system found 3214 ByteString instances( relative to 
>> the NETWORK  ) 
>> 
>>  The system found 22650 ByteString instances( 
>> relative to the CASH  ) 
>>  
>>  The system found ..
>> 
>>  
>>  Because ?
>> 
>> 
>>  Does the system remember something about the string 
>> create for the Transcript show:   entry ?
>> 
>>  I need to reset something?
>> 
>>  How can I analyze the situation?
>> 
>>  I follow some aByteString entry   with the   
>> pointersTo  method
>>  
>>   but for now I have not found the solution.
>> 
>>  
>>  
>>  Thanks,
>> 
>>  Dario
>> 
>> 
> 
> 




Re: [Pharo-users] Pharo 7.0 image size

2019-03-07 Thread Trussardi Dario Romano
Ciao,

I thought that using Transcript as a report to analyze the operation of 
the code was a good thing - solution.

Unfortunately, however, the size of the image continues to increase  ( 
and I think it's due to the use of the transcript )

and i can not find the solution to avoid the problem.

I could create a file to report everything about the operations code, 
but then it becomes difficult to manage, or am i wrong?

Other solutions - indications - references ?

Thanks,

Dario

> Ciao,
> 
>   thanks.
> 
>   i have a Pharo 7.0  alpha build 1262.
> 
>   I development a Seaside application.
> 
>> May be you have a lot of still open Seaside session, which if I remember
>> correctly are automatically shutdown after 10 min when not active.
>> 
>> Looking at Seaside session instances may give clue.
>   
>   OK, i clear the seaside session with the relative seaside status
>  Clear  action.
> 
>   
> 
>   But the image size keeps increasing, without an apparent reason.
> 
>   The consideration that I can do and that in the method code i often use 
> Transcript show: '.NETWORK | CASH | .' to check the correct 
> functioning.
> 
>   With theSpaceTally printSpaceAnalysis   i note:
> 
>   as of February  16th:
>   
>   Classcode space # instances 
>  inst space percent inst average size
>Array  4115
> 656764  43904528   23.30 66.85
>ByteString 2942
> 233871   27527272  14.60117.70 
> 
>   
>   as of March 4th
>   Class  code space# instances
>   inst space percentinst average size
>Array  4115837017  
>  50564552   23.4060.41
>ByteString 2942
>  266620  31933216  14.80 119.77
> 
>   Now i do:
> 
>   ByteString allInstances select:[ :i |  i 
> includesSubstring: 'NETWORK' ] 
> 
>   where 'NETWORK' is a string used in the Transcript show: .. 
> NETWORK' ..'  report entry.
> 
>   
>   The system found 3214 ByteString instances( relative to 
> the NETWORK  ) 
> 
>   The system found 22650 ByteString instances( 
> relative to the CASH  ) 
>   
>   The system found ..
> 
>   
>   Because ?
> 
> 
>   Does the system remember something about the string 
> create for the Transcript show:   entry ?
> 
>   I need to reset something?
> 
>   How can I analyze the situation?
> 
>   I follow some aByteString entry   with the   
> pointersTo  method
>   
>but for now I have not found the solution.
> 
>   
>   
>   Thanks,
> 
>   Dario
> 
> 




Re: [Pharo-users] Pharo 7.0 image size

2019-03-07 Thread Trussardi Dario Romano
Ciao,

thanks.

i have a Pharo 7.0  alpha build 1262.

I development a Seaside application.

> May be you have a lot of still open Seaside session, which if I remember
> correctly are automatically shutdown after 10 min when not active.
> 
> Looking at Seaside session instances may give clue.

OK, i clear the seaside session with the relative seaside status
 Clear  action.



But the image size keeps increasing, without an apparent reason.

The consideration that I can do and that in the method code i often use 
Transcript show: '.NETWORK | CASH | .' to check the correct functioning.

With theSpaceTally printSpaceAnalysis   i note:

as of February  16th:

Classcode space # instances 
 inst space percent inst average size
 Array  4115
656764  43904528   23.30 66.85
 ByteString 2942
233871   27527272  14.60117.70 


as of March 4th
Class  code space# instances
  inst space percentinst average size
 Array  4115837017  
 50564552   23.4060.41
 ByteString 2942
 266620  31933216  14.80 119.77

Now i do:

ByteString allInstances select:[ :i |  i 
includesSubstring: 'NETWORK' ] 

where 'NETWORK' is a string used in the Transcript show: .. 
NETWORK' ..'  report entry.


The system found 3214 ByteString instances( relative to 
the NETWORK  ) 

The system found 22650 ByteString instances( 
relative to the CASH  ) 

The system found ..


Because ?


Does the system remember something about the string 
create for the Transcript show:   entry ?

I need to reset something?

How can I analyze the situation?

I follow some aByteString entry   with the   
pointersTo  method

 but for now I have not found the solution.



Thanks,

Dario




Re: [Pharo-users] Pharo 7.0 image size

2019-02-17 Thread Trussardi Dario Romano
Ciao,

thanks Hilaire.

> May be you have a lot of still open Seaside session, which if I remember
> correctly are automatically shutdown after 10 min when not active.
> 
> Looking at Seaside session instances may give clue.

OK, 

but it is possible to have a report on the state of employment 
related to each class?

className   Instances   Memory

ClassA  222 1MB
ClassB  11  128Byte
 ecc.

Thanks,

Dario   
> 
> Hilaire
> 
> 
> Le 16/02/2019 à 13:18, Trussardi Dario Romano a écrit :
>>  Starting from 94 MB, now after rebooting and save the image the 
>> relative size is 252 MB.
>> 
>>  How can I understand what is happening?
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> 
> 
> 




[Pharo-users] Pharo 7.0 image size

2019-02-16 Thread Trussardi Dario Romano
Ciao,

i have a Pharo 7.0  alpha build 1262.

I development a Seaside application.

The size of the image keeps increasing, without an apparent reason.

Starting from 94 MB, now after rebooting and save the image the 
relative size is 252 MB.

How can I understand what is happening?

How can I analyze the data to understand who is occupying more and more 
space?

The other day the system generated a warning that in practice said that 
there was no more space and that image had to be started with a particular 
value.

Some considerations ?

Thanks,

Dario


[Pharo-users] Iceberg repository import

2018-12-15 Thread Trussardi Dario Romano
Ciao,

i work with Pharo 7.0.0 build 34.


in the past, into another pharo environment,  i have clone the git  
Seaside project  ( master 9566cb4 )

Now in the new image for import the Seaside project,

 i do the Iceberg command:  Import from existing clone

the Repository window report the entry:

Seaside Master  No Project 
Found

The relative Package window is empty.

Because ?   what i need to do?



In parallel i work with Magritte project,

i import it from existing clone without problem.


Some considerations ?

Thanks,

Dario


[Pharo-users] Pharo 7.0 code documentation

2018-09-27 Thread Trussardi Dario Romano
Ciao,

I would be interested in understanding how I can document the code 
directly in pharo.

Can someone give me some reference - link about it?

Thank you,

Dario   


Re: [Pharo-users] Pharo launcher

2018-09-26 Thread Trussardi Dario Romano
Ciao Christophe,


> Hi Dario,
> 
> The problem is probably fixed in the latest PharoLauncher version (1.4) 
> available from http://pharo.org/download.

Yes, i download the last Pharo launcher ( 1.4 ) and everything works,

> If not, as specified in the dialog text, please run the given command from 
> the command line to give us more information on what is the problem.
> 
Thanks, 

Dario

> Regards,
> Christophe
> 
>> Le 26 sept. 2018 à 12:05, Trussardi Dario Romano 
>>  a écrit :
>> 
>> Ciao,
>> 
>>  on Ubuntu system with Pharo Launcher 1.3
>> 
>>  after create a new Pharo 7.0-64 bit ( development version )
>> 
>>  when i launch the images the system answer :
>> 
>> Cannot determine image version: image version file not found!
>> Try to run this command in a shell to get more information on the problem:
>> cd "/opt/pharolauncher/pharo-vm/lib/pharo/5.0-201805090836" && export 
>> SQUEAK_PLUGINS="" && 
>> "/opt/pharolauncher/pharo-vm/lib/pharo/5.0-201805090836/pharo" --nodisplay 
>> "/home/party/Pharo/images/Pharo 7.0 - 64bit (180926)-01/Pharo 7.0 - 64bit 
>> (180926)-01.image" eval "(Smalltalk imagePath asFileReference parent) / 
>> 'pharo.version' writeStreamDo: [ :stream | |major minor|major := 
>> SystemVersion current major.minor := SystemVersion current 
>> minor.(major = 6 and: [ SystemVersion current highestUpdate >= 
>> 60509 ])ifTrue: [ minor := 1 ].stream
>>  << major asString; << minor asString ]"pha
>> 
>>  Thanks for considerations,
>> 
>>  Dario
>> 
>>  P.S. In the same environment one hold  Pharo 7.0-64 bit ( development 
>> version ) image ran well with launch command
> 



[Pharo-users] Pharo launcher

2018-09-26 Thread Trussardi Dario Romano
Ciao,

on Ubuntu system with Pharo Launcher 1.3

after create a new Pharo 7.0-64 bit ( development version )

when i launch the images the system answer :

Cannot determine image version: image version file not found!
Try to run this command in a shell to get more information on the problem:
cd "/opt/pharolauncher/pharo-vm/lib/pharo/5.0-201805090836" && export 
SQUEAK_PLUGINS="" && 
"/opt/pharolauncher/pharo-vm/lib/pharo/5.0-201805090836/pharo" --nodisplay 
"/home/party/Pharo/images/Pharo 7.0 - 64bit (180926)-01/Pharo 7.0 - 64bit 
(180926)-01.image" eval "(Smalltalk imagePath asFileReference parent) / 
'pharo.version' writeStreamDo: [ :stream | |major minor|major := 
SystemVersion current major.minor := SystemVersion current minor.   
 (major = 6 and: [ SystemVersion current highestUpdate >= 60509 ])  
  ifTrue: [ minor := 1 ].stream << major 
asString; << minor asString ]"pha

Thanks for considerations,

Dario

P.S. In the same environment one hold  Pharo 7.0-64 bit ( development 
version ) image ran well with launch command

[Pharo-users] IdentityDictionary reset

2018-04-09 Thread Trussardi Dario Romano
Ciao,

in the Pharo 4.0 image i have a IdentityDictionary with ten items.

Now when i reset the dictionary the system behaves as follows:

Version A)  resetAllLocks

locks keysAndValuesDo:[:k :v | locks removeKey: 
k ifAbsent: [self halt]]


Not all items are removed fro the dictionary.


Version B) resetAllLocks

locks keys do:[:k | locks removeKey: k 
ifAbsent: [self halt]]

All the items are always removed.


Considerations about it?

Thanks,

Dario



[Pharo-users] Timespan translateToUTC problematic

2017-11-16 Thread Trussardi Dario Romano
Ciao,

i have a Pharo 4.0 image run on macbook with time zone is set to Rome 
+1 UTC .

When i send the translateToUTC to Date instance it is ok:

Date today  >  2017-11-16T00:00:00+01:00

Date today translateToUTC   >   
2017-11-16T00:00:00+00:00


But for Month instance :

Month month:  6 year:  2015 >   
2015-06-01T00:00:00+01:00

( Month month:  6 year:  2015 )  translateToUTC >   
2015-06-01T00:00:00+01:00

The same problematic is for Year instance.

Considerations ?

Thanks, 

Dario


Re: [Pharo-users] Error loading Seaside Gettext support

2017-10-11 Thread Trussardi Dario Romano
Excuse me..

it's for Seaside problematic  and relative mails ...

Sorry,

Dario
> Ciao,
>> Ciao,
>> 
>> i load correctly the Gettext support into: Pharo 6.1-64 Latest 
>> update: #60510
>> 
>> In the image was load the Seaside 3.2
>> Now i do:
>> 
>> (ConfigurationOfSeaside3 project version: #stable )
>> load: #( 'Seaside-Gettext-Core' 'Seaside-Gettext-Examples').
>> 
>> The system erase the error: 
>> NaturalLanguageTranslator class(Object)>>doesNotUnderstand: 
>> #domainRegistered:
>> 
>> TextDomainManager class>>registerDomain:
>> [ self registerDomain: domainName ] in TextDomainManager 
>> class>>domainInfoFor: in Block: [ self registerDomain: domainName ]
>> [ self at: key put: aBlock value ] in Dictionary>>at:ifAbsentPut: in Block: 
>> [ self at: key put: aBlock value ]
>> Dictionary>>at:ifAbsent:
>> Dictionary>>at:ifAbsentPut:
>> TextDomainManager class>>domainInfoFor:
>> TextDomainManager class>>registerCategoryPrefix:domain:
>> WAGettextExample class>>register
>> WAGettextExample class>>initialize
>> Some considerations ?
>> 
>> Thanks,
>> 
>> Dario
>   After the error i restart the image and the:WAGettextExample 
> class>>initialize  works well.
> 
>   Now i don't understand what i need to do for create the relative
> .potfile.
> 
>   The  WAGettextExample exportmethod  
> reference the:  WAGetTextExporter   but  is not in the system.
> 
>   The GetTextExporter  exportTemplate create only the 
> pharo.pot   file  (  ...  the relative  pharo.moworks 
> fine ).
> 
>   
>   Thanks for considerations,
>   
>   Dario
>   



Re: [Pharo-users] Error loading Seaside Gettext support

2017-10-11 Thread Trussardi Dario Romano
Ciao,
> Ciao,
> 
> i load correctly the Gettext support into: Pharo 6.1-64 Latest 
> update: #60510
> 
> In the image was load the Seaside 3.2
> Now i do:
> 
> (ConfigurationOfSeaside3 project version: #stable )
> load: #( 'Seaside-Gettext-Core' 'Seaside-Gettext-Examples').
> 
> The system erase the error: 
> NaturalLanguageTranslator class(Object)>>doesNotUnderstand: #domainRegistered:
> 
> TextDomainManager class>>registerDomain:
> [ self registerDomain: domainName ] in TextDomainManager 
> class>>domainInfoFor: in Block: [ self registerDomain: domainName ]
> [ self at: key put: aBlock value ] in Dictionary>>at:ifAbsentPut: in Block: [ 
> self at: key put: aBlock value ]
> Dictionary>>at:ifAbsent:
> Dictionary>>at:ifAbsentPut:
> TextDomainManager class>>domainInfoFor:
> TextDomainManager class>>registerCategoryPrefix:domain:
> WAGettextExample class>>register
> WAGettextExample class>>initialize
> Some considerations ?
> 
> Thanks,
> 
> Dario
After the error i restart the image and the:WAGettextExample 
class>>initialize  works well.

Now i don't understand what i need to do for create the relative
.potfile.

The  WAGettextExample exportmethod  
reference the:  WAGetTextExporter   but  is not in the system.

The GetTextExporter  exportTemplate create only the 
pharo.pot   file  (  ...  the relative  pharo.moworks 
fine ).


Thanks for considerations,

Dario


[Pharo-users] Pharo Group for System Browser

2017-08-28 Thread Trussardi Dario Romano
Ciao,

i work with Pharo 4.0 and with the relative  System Browser.

My goal is to define a group where i add all definition:

Package ( CMD n-e-p )
Class ( CMD n-e-c )
Protocol ( CMD n--e-t ? )
Method (  CMD n-e-m )

 relative to a specific problematic ( when i development - management 
it ).

Into Pharo 4.0 this command works with some problem ( they do not 
always work as you expect )

I do some test with the Pharo 6.1 and seems that the group handle only 
the Package reference add.

Anyone can give me directions about it?

How i can 'group' some reference ( Package - Class - Method ) into the 
System Browser to have control 

to all the method relative a specific problematic ?

 I forget something?

Thanks,

Dario


Re: [Pharo-users] Pharo 6.0 don't start

2017-07-17 Thread Trussardi Dario Romano
Ciao,


> Nothing there jumps out at me, so just a general question... what other 
> versions of Pharo have you successfully run on your system?

I have run:

Pharo4.0  Launcher Latest update: #40621

Pharo 4.0   Latest update: #40625

Pharo 5.0 Latest update: #50763
> 
> 
> Also, OSX 10.7.5 (September 19, 2012) is considered old (no longer support by 
> Apple)... 
>
> http://www.computerworld.com/article/2950580/operating-systems/the-end-is-near-for-os-x-mountain-lion-support.html
> so perhaps that could be related.  

It could be ?? !


Thanks,

Dario
> 
> cheers -ben
> 
> On Tue, Jul 11, 2017 at 11:08 PM, Trussardi Dario Romano 
> <dario.trussa...@tiscali.it> wrote:
> Ciao,
> 
>   I'm interested to understund how git support work in Pharo.
> 
>   i download and unzip Pharo 6.0 from  
> http://files.pharo.org/platform/Pharo6.0-mac.zip
> 
>   Now when i open the application on the desktop the system open a dialog 
> with : Pharo 6.0 it closed unexpectedly.
> 
> 
>   The relative information are:
> 
>> Process: launchd [75184]
>> Path:/Users/USER/Desktop/Pharo6.0.app/Contents/MacOS/Pharo
>> 
>> Identifier:  org.pharo.Pharo
>> 
>> Version: ??? (???)
>> 
>> Code Type:   X86 (Native)
>> 
>> Parent Process:  launchd [178]
>> 
>>  
>> 
>> Date/Time:   2017-07-11 16:40:23.605 +0200
>> 
>> OS Version:  Mac OS X 10.7.5 (11G63b)
>> 
>> Report Version:  9
>> 
>>  
>> 
>> Interval Since Last Report:  33830084 sec
>> 
>> Crashes Since Last Report:   465
>> 
>> Per-App Crashes Since Last Report:   30
>> 
>> Anonymous UUID:  E84D2E1F-939E-4486-AF79-68ABE2A5AAB9
>> 
>>  
>> 
>> Crashed Thread:  Unknown
>> 
>> Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
>> 
>> Exception Codes: KERN_INVALID_ADDRESS at 0x8fe01030
>> 
>> Backtrace not available
>> 
>> Unknown thread crashed with X86 Thread State (32-bit):
>> 
>> eax: 0x  ebx: 0x  ecx: 0x  edx: 0x 
>> 
>> edi: 0x  esi: 0x  ebp: 0x  esp: 0x
>> 
>> ss: 0x0023  efl: 0x00010202  eip: 0x8fe01030   cs: 0x001b
>>   
>> ds: 0x0023   es: 0x0023   fs: 0x   gs: 0x
>>  
>> cr2: 0x8fe01030
>> Logical CPU: 0
>> 
>> Binary images description not available
>> 
>> External Modification Summary: 
>> 
>> Calls made by other processes targeting this process:
>>
>> task_for_pid: 1
>>
>> thread_create: 0
>>
>> thread_set_state: 0
>>  
>> Calls made by this process:
>>
>> task_for_pid: 0
>>
>> thread_create: 0
>>
>> thread_set_state: 0
>>  
>> Calls made by all processes on this machine:
>>
>> task_for_pid: 140939
>>
>> thread_create: 0
>> 
>> thread_set_state: 0 
>> Model: MacBookPro5,2, BootROM MBP52.008E.B05, 2 processors, Intel Core 2 
>> Duo, 2.8 GHz, 8 GB, SMC 1.42f4
>> 
>> Graphics: NVIDIA GeForce 9600M GT, NVIDIA GeForce 9600M GT, PCIe, 512 MB
>> 
>> Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
>> 
>> Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1067 MHz, 0x830B, 
>> 0x4D3253344736344342384847354E2D424520
>> 
>> Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1067 MHz, 0x830B, 
>> 0x4D3253344736344342384847354E2D424520
>> 
>> AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), 
>> Broadcom BCM43xx 1.0 (5.106.198.19.22)
>> 
>> Bluetooth: Version 4.0.8f17, 2 service, 11 devices, 3 incoming serial ports
>> 
>> Network Service: Ethernet, Ethernet, en0
>> 
>> Network Service: AirPort, AirPort, en1
>> 
>> Serial ATA Device: Hitachi HTS545050B9SA02, 500,11 GB
>> 
>> Serial ATA Device: HL-DT-ST DVDRW  GS21N
>> 
>> USB Device: Built-in iSight, apple_vendor_id, 0x8507, 0x2440 / 2
>> 
>> USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0237, 
>> 0x0460 / 3
>> 
>> USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x0450 / 2
>> 
>>  USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 
>> 0x4500, 0x0610 / 2
>> 
>>  USB Device: Bluetooth USB Host Controller, 
>> apple_vendor_id, 0x8217, 0x0611 / 5
>> 
>  Thanks for considerations,
> 
> 
>   Dario
> 



[Pharo-users] Pharo 6.0 don't start

2017-07-11 Thread Trussardi Dario Romano
Ciao,

I'm interested to understund how git support work in Pharo.

i download and unzip Pharo 6.0 from  
http://files.pharo.org/platform/Pharo6.0-mac.zip

Now when i open the application on the desktop the system open a dialog 
with : Pharo 6.0 it closed unexpectedly.


The relative information are:

> Process: launchd [75184]
> Path:/Users/USER/Desktop/Pharo6.0.app/Contents/MacOS/Pharo
> 
> Identifier:  org.pharo.Pharo
> 
> Version: ??? (???)
> 
> Code Type:   X86 (Native)
> 
> Parent Process:  launchd [178]
> 
>  
> 
> Date/Time:   2017-07-11 16:40:23.605 +0200
> 
> OS Version:  Mac OS X 10.7.5 (11G63b)
> 
> Report Version:  9
> 
>  
> 
> Interval Since Last Report:  33830084 sec
> 
> Crashes Since Last Report:   465
> 
> Per-App Crashes Since Last Report:   30
> 
> Anonymous UUID:  E84D2E1F-939E-4486-AF79-68ABE2A5AAB9
> 
>  
> 
> Crashed Thread:  Unknown
> 
> Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
> 
> Exception Codes: KERN_INVALID_ADDRESS at 0x8fe01030
> 
> Backtrace not available
> 
> Unknown thread crashed with X86 Thread State (32-bit):
> 
> eax: 0x  ebx: 0x  ecx: 0x  edx: 0x 
> 
> edi: 0x  esi: 0x  ebp: 0x  esp: 0x
> 
> ss: 0x0023  efl: 0x00010202  eip: 0x8fe01030   cs: 0x001b
>   
> ds: 0x0023   es: 0x0023   fs: 0x   gs: 0x
>  
> cr2: 0x8fe01030
> Logical CPU: 0
> 
> Binary images description not available
> 
> External Modification Summary: 
> 
> Calls made by other processes targeting this process:
>
> task_for_pid: 1
>
> thread_create: 0
>
> thread_set_state: 0
>  
> Calls made by this process:
>
> task_for_pid: 0
>
> thread_create: 0
>
> thread_set_state: 0
>  
> Calls made by all processes on this machine:
>
> task_for_pid: 140939
>
> thread_create: 0
> 
> thread_set_state: 0 
> Model: MacBookPro5,2, BootROM MBP52.008E.B05, 2 processors, Intel Core 2 Duo, 
> 2.8 GHz, 8 GB, SMC 1.42f4
> 
> Graphics: NVIDIA GeForce 9600M GT, NVIDIA GeForce 9600M GT, PCIe, 512 MB
> 
> Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
> 
> Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1067 MHz, 0x830B, 
> 0x4D3253344736344342384847354E2D424520
> 
> Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1067 MHz, 0x830B, 
> 0x4D3253344736344342384847354E2D424520
> 
> AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), 
> Broadcom BCM43xx 1.0 (5.106.198.19.22)
> 
> Bluetooth: Version 4.0.8f17, 2 service, 11 devices, 3 incoming serial ports
> 
> Network Service: Ethernet, Ethernet, en0
> 
> Network Service: AirPort, AirPort, en1
> 
> Serial ATA Device: Hitachi HTS545050B9SA02, 500,11 GB
> 
> Serial ATA Device: HL-DT-ST DVDRW  GS21N
> 
> USB Device: Built-in iSight, apple_vendor_id, 0x8507, 0x2440 / 2
> 
> USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0237, 
> 0x0460 / 3
> 
> USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x0450 / 2
> 
>   USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 
> 0x4500, 0x0610 / 2
> 
>   USB Device: Bluetooth USB Host Controller, 
> apple_vendor_id, 0x8217, 0x0611 / 5
> 
 Thanks for considerations,


Dario

[Pharo-users] Hash considerations

2017-02-21 Thread Trussardi Dario Romano
Ciao,

i have a class with some instance variable.

For example  a class Product  with some instance variable and the   
 =  method set to:

= anItem

anItem ifNil:[^false]. 

anItem class = self class ifFalse:[ ^false].

^  rfrConsegna  = anItem rfrConsegna 
and:[ rfrSubTable  = anItem rfrSubTable
and:[ rfrDcm = anItem rfrDcm
and:[ indexRiga = anItem 
indexRiga
and:[ referenceTime = 
anItem referenceTime 
and:[ consumer 
= anItem consumer
and:[ 
item = anItem item

and:[ opzioniVoce  = anItem opzioniVoce
]]]

Some of these variables are instances  of classes with specific 
implementation and some variables themselves.


I set the relative hash method to:

hash

^ rfrConsegna hash
bitXor:( rfrSubTable  hash
bitXor: ( rfrDcm hash
bitXor: ( indexRiga hash
bitXor: ( referenceTime hash
bitXor: ( consumer   hash
bitXor: ( item   hash
bitXor: ( 
opzioniVoce  hash

)))


Now my doubt,  having many variables affecting the hash calculation,

is to be sure  that different instances don't give the same hash value.

Some advice about it?


Thanks,

Dario




Re: [Pharo-users] Equality and hash

2017-02-20 Thread Trussardi Dario Romano
Thanks Denis. 

> There is refactoring which sadly not available from menu. But you can 
> evaluate it manually:
> 
> (RBGenerateEqualHashRefactoring className: #YourClass variables: #(var1 
> var2)) execute

My problem is display in this image.

In the left the inspector display all the items in the bag ( it's right )

In the right the inspector display the relative  Occurences,but some are 
set to 0.
 




Because ?

Thanks for considerations,

Dario

> 2017-02-20 13:46 GMT+01:00 Trussardi Dario Romano 
> <dario.trussa...@tiscali.it>:
> Ciao,
> 
> i works with Pharo 4.0 environment.
> 
> I have a class Product  with some instance variable and the  =
>   method set to:
> 
> = anItem
> 
> anItem ifNil:[^false].
> 
> anItem class = self class ifFalse:[ ^false].
> 
> ^  rfrConsegna  = anItem rfrConsegna
> and:[ rfrSubTable  = anItem rfrSubTable
> and:[ rfrDcm = anItem rfrDcm
> and:[ indexRiga = anItem 
> indexRiga
> and:[ referenceTime = 
> anItem referenceTime
> and:[ 
> consumer = anItem consumer
> and:[ 
> item = anItem item
>   
>   and:[ opzioniVoce  = anItem opzioniVoce
> ]]]
> 
> Some of these variables are instances  of classes with specific 
> implementation and some variables themselves.
> 
> 
> I set the relative hash method to:
> 
> hash
> 
> ^ rfrConsegna hash
> bitXor:( rfrSubTable  hash
> bitXor: ( rfrDcm hash
> bitXor: ( indexRiga hash
> bitXor: ( referenceTime hash
> bitXor: ( consumer   hash
> bitXor: ( item   hash
> bitXor: ( 
> opzioniVoce  hash
> 
> )))
> 
> Now when add some setup instances of class Product  to a bag,
> 
>  the relative inspector report
> 
> some aProduct entry but with some Occurences of this set to 0.
> 
> aProduct1   3
> aProduct2   0
> aProduct3   0
> 
> 
> Some consideration about it ?
> 
> Some references about hash implementations ?
> 
> Thanks,
> 
> Dario
> 
> 
> 



Re: [Pharo-users] Scaled image

2016-12-22 Thread Trussardi Dario Romano
Ciao,


> Morphs have an extent method that you can passes the size as a point in the 
> x@y format, there are also width: and height: methods that take simple numbers

Can explain what i need do  with some code, example ?

After the scaled i need to save the new scaled image on the disk.

Thanks

> 
> On Thu, Dec 22, 2016 at 6:02 PM Trussardi Dario Romano 
> <dario.trussa...@tiscali.it> wrote:
> Ciao,
> 
> after upload an image   ( with MAFileDescription support )
> 
> i need to create the relative logo image with specific size 128 x 128 
> px.
> 
> How i can scale the image into Pharo?
> 
> And for deployment system based on Gemstone ?
> 
> Thanks,
> 
> Dario
> 



[Pharo-users] Scaled image

2016-12-22 Thread Trussardi Dario Romano
Ciao,

after upload an image   ( with MAFileDescription support )

i need to create the relative logo image with specific size 128 x 128 
px.

How i can scale the image into Pharo?

And for deployment system based on Gemstone ?

Thanks,

Dario



Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-06 Thread Trussardi Dario Romano
Thanks Dimitris,

> 
> 
> On Tue, Dec 6, 2016 at 8:46 PM Dimitris Chloupis  
> wrote:
> because you run a very old macos version it may be possible that because 
> Cairo lib has been compiled for more recent macos that this is the source of 
> your problems.
> 
> Try the following commands from inside the folder you installed pharo 
> following my previous instructions

The 
> otool -L ./pharo-vm/Pharo.app/Contents/MacOS/Plugins/libcairo.2.dylib

Answer:

./pharo-vm/Pharo.app/Contents/MacOS/Plugins/libcairo.2.dylib:
@executable_path/Plugins/libcairo.2.dylib (compatibility version 
11203.0.0, current version 11203.14.0)
@executable_path/Plugins/libpixman-1.0.dylib (compatibility version 
27.0.0, current version 27.0.0)
@executable_path/Plugins/libfreetype.6.dylib (compatibility version 
15.0.0, current version 15.1.0)
@executable_path/Plugins/libpng12.0.dylib (compatibility version 
50.0.0, current version 50.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 
1.2.5)

/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
 (compatibility version 1.0.0, current version 48.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 1225.1.1)

/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 
(compatibility version 150.0.0, current version 1253.0.0)

/System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics 
(compatibility version 64.0.0, current version 600.0.0)


> 
> This command will print the dependencies of the library and whether your OS 
> libraries are enough to support this library. If one dependency fail then the 
> whole library may fail.
> 
> In that case you will need to locate a build for Cairo for the version of 
> MacOS you are using and replace the dylib file or build it yourself, 

Without load anything   the VGTigerDemo runDemo report 
into the error debug and into relative terminal ( where a launch the pharo 
):

dtr$ ./pharo-ui Pharo.image
Error: External module not found
ExternalLibraryFunction(Object)>>error:
ExternalLibraryFunction(Object)>>externalCallFailed
ExternalLibraryFunction(ExternalFunction)>>invokeWithArguments:
AthensCairoSurface class>>primImage:width:height:
FFICalloutAPI>>function:module:
AthensCairoSurface class(Object)>>nbCall:
AthensCairoSurface class>>primImage:width:height:
AthensCairoSurface class>>extent:format:
AthensCairoSurface class>>extent:
VGTigerDemo>>initialize
VGTigerDemo class(Behavior)>>new
VGTigerDemo class>>runDemo

> 
> As you may imagine its very difficult for us to continue supporting very old 
> OS , because we are a small community.  

I do not want to bother.

Just see if the issue is resolved on my system,

or whether to postpone everything when update the operating system.

But the gitFileTree support would be very useful to continue in a certain 
direction.

Cheers,

Dario







Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-06 Thread Trussardi Dario Romano

Ciao,

> I run Pharo 5.0 with no problems on a Macbook Pro, but it’s running OS X v. 
> 10.12.1.  Any reason your OS is backdated?

i have a  MacBookPro with OS X   10.7.5.  with much work on it.

The upgrade to a the last supported OS X   on my book   ( 10.11.6  )

is very problematic because with the upgrade the system can't restart,

and consequently I should reformat the disk.

This is no time for such risk.

Cheers,

Dario

>  
> Andrew Glynn
>  
> From: Pharo-users <pharo-users-boun...@lists.pharo.org> on behalf of 
> Trussardi Dario Romano <dario.trussa...@tiscali.it>
> Reply-To: Any question about pharo is welcome <pharo-users@lists.pharo.org>
> Date: Monday, December 5, 2016 at 11:34 AM
> To: Any question about pharo is welcome <pharo-users@lists.pharo.org>
> Subject: Re: [Pharo-users] GitFileTree on Pharo 5.0
>  
> Ciao,
> 
> 
>>> Pharo is unable to access a library it needs; this is the native boost 
>>> plugin which is normally bundled with it (and the cairo lib?)...
>>>  
>>> Guys, anybody with a mac around there?
>>> 
>>> Thierry
>>  
>> 
>  
> thanks Dimitris.
> 
> 
>> Nativeboost has been removed and been replaced by UFFI, all libraries that 
>> used Nativeboost are now using UFFI including the Cairo backend library for 
>> Athens.
>  
> OK, but what i need to do for load UFFI Cairo 
> library
>  
> and for load  the UFFI  library required by GitFileTree Pharo 
> support?
>  
>  
> I wrong to install Pharo 5.0 on my MacBookPro with OS X   10.7.5. 
> ?
>  
> If right remember i install Pharo 5.0 from 
> http://pharo.org/download   link
>  
> 
> Thanks.
>
> Dario



Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-06 Thread Trussardi Dario Romano
Ciao,

from terminal i create a /opt/pharo folder and run your command.

> If you go to the applications there is a folder called Utilities and inside 
> it there is a terminal application open it and issue the following commands
> 
> mkdir pharo
> cd pharo
> curl get.pharo.org | bash
> ./pharo-ui Pharo.image
> 
> First command will make folder, second will enter the folder, third will 
> dowload the standard stable version of pharo to the folder, foruth will 
> launch pharo.
> 
> Then when pharo opens

the Pharo is right open

> follow the instruction Esteban gave you to test that Athens works as it 
> should.

The Roassal2 is not load in the image.

I load it from Pharo Project Catalog. 

I select the Roassal2 project and do the Install stable version.

( a this point i have a strange dialog behaviour :

when the system open a dialog with:
Question
Roassal2 has not been marked as tested for Pharo5.0!
Do you want to continue (installation could fail )?

when i i select the yes or no button the dialog with the same 
question is often redispaly. )

> Do not install anything before testings. Then if everything works proceed and 
> install one thing, only, then test it, then install the next one etc.

After install the Roassal2 like above and do theVGTigerDemo 
runDemo  

answer the same error:

ExternalLibraryFunction(Object)>>error:
ExternalLibraryFunction(Object)>>externalCallFailed
ExternalLibraryFunction(ExternalFunction)>>invokeWithArguments:
AthensCairoSurface class>>primImage:width:height:
AthensCairoSurface class>>extent:format:
AthensCairoSurface class>>extent:
VGTigerDemo>>initialize
VGTigerDemo class(Behavior)>>new
VGTigerDemo class>>runDemo

Thanks,

Dario
> Moving step by step will help us pin point your problem
> 
> I suspect maybe something went crazy , it happens from time to time in pharo, 
> recently I had a nasty corruption with Pharo 6. If it happens once, its ok , 
> if it happens frequently its a problem. 
> 
> 
> On Mon, Dec 5, 2016 at 6:35 PM Trussardi Dario Romano 
> <dario.trussa...@tiscali.it> wrote:
> Ciao,
> 
>> Pharo is unable to access a library it needs; this is the native boost 
>> plugin which is normally bundled with it (and the cairo lib?)...
>> 
>> Guys, anybody with a mac around there?
>> 
>> Thierry
>> 
>> 
> 
>   thanks Dimitris.
> 
>> Nativeboost has been removed and been replaced by UFFI, all libraries that 
>> used Nativeboost are now using UFFI including the Cairo backend library for 
>> Athens.
> 
>   OK, but what i need to do for load UFFI Cairo library
> 
>   and for load  the UFFI  library  required byGitFileTree Pharo 
> support?
> 
> 
>   I wrong to install Pharo 5.0 on my MacBookPro with OS X  10.7.5. ?
> 
>   If right remember i install Pharo 5.0 from   
> http://pharo.org/download   link
> 
> 
>   Thanks.
>   
>   Dario



Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-06 Thread Trussardi Dario Romano
>>>> dowload the standard stable version of pharo to the folder, foruth will 
>>>> launch pharo.
>>>> 
>>>> Then when pharo opens follow the instruction Esteban gave you to test that 
>>>> Athens works as it should. Do not install anything before testings. Then 
>>>> if everything works proceed and install one thing, only, then test it, 
>>>> then install the next one etc.
>>>> 
>>>> Moving step by step will help us pin point your problem
>>>> 
>>>> I suspect maybe something went crazy , it happens from time to time in 
>>>> pharo, recently I had a nasty corruption with Pharo 6. If it happens once, 
>>>> its ok , if it happens frequently its a problem.
>>>> 
>>>> 
>>>> On Mon, Dec 5, 2016 at 6:35 PM Trussardi Dario Romano 
>>>> <dario.trussa...@tiscali.it> wrote:
>>>> Ciao,
>>>> 
>>>>> Pharo is unable to access a library it needs; this is the native boost 
>>>>> plugin which is normally bundled with it (and the cairo lib?)...
>>>>> 
>>>>> Guys, anybody with a mac around there?
>>>>> 
>>>>> Thierry
>>>>> 
>>>>> 
>>>> 
>>>> thanks Dimitris.
>>>> 
>>>>> Nativeboost has been removed and been replaced by UFFI, all libraries 
>>>>> that used Nativeboost are now using UFFI including the Cairo backend 
>>>>> library for Athens.
>>>> 
>>>> OK, but what i need to do for load UFFI Cairo library
>>>> 
>>>> and for load  the UFFI  library  required byGitFileTree Pharo 
>>>> support?
>>>> 
>>>> 
>>>> I wrong to install Pharo 5.0 on my MacBookPro with OS X  10.7.5. ?
>>>> 
>>>> If right remember i install Pharo 5.0 from   
>>>> http://pharo.org/download   link
>>>> 
>>>> 
>>>> Thanks.
>>>> 
>>>> Dario
>>> 
>>> 
>> 
>> 
> 



Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-05 Thread Trussardi Dario Romano
Ciao Esteban,


> Hi, Dario, 
> 
> I do not understand quite well your problem… you should not have a problem 
> installing GitFileTree in Pharo5, no matter the replacement of NativeBoost. 
> Athens also works fine with UFFI (since is part of Pharo, it has to work on 
> all versions). 
> 
> You *do not need* to download cairo bindings, they are already there. 
> So… if Athens is not working (and you can check that executing "VGTigerDemo 
> runDemo” ,

The VGTigerDemo runDemo report:

ExternalLibraryFunction(Object)>>error:
ExternalLibraryFunction(Object)>>externalCallFailed
ExternalLibraryFunction(ExternalFunction)>>invokeWithArguments:
AthensCairoSurface class>>primImage:width:height:
AthensCairoSurface class>>extent:format:
AthensCairoSurface class>>extent:
VGTigerDemo>>initialize
VGTigerDemo class(Behavior)>>new
VGTigerDemo class>>runDemo

>  then you have another kind of problem. 

What do you mean about : another kind of problem.

How can I investigate about that?

Download again the image and see what happens?

Thanks,

Dario

P.S. What do you think about my email with same object dated:   29 
novembre 2016 11:55:02 GMT+01:00

    It may be source of problems?


> 
> cheers, 
> Esteban
> 
> 
>> On 5 Dec 2016, at 17:34, Trussardi Dario Romano <dario.trussa...@tiscali.it> 
>> wrote:
>> 
>> Ciao,
>> 
>>> Pharo is unable to access a library it needs; this is the native boost 
>>> plugin which is normally bundled with it (and the cairo lib?)...
>>> 
>>> Guys, anybody with a mac around there?
>>> 
>>> Thierry
>>> 
>>> 
>> 
>>  thanks Dimitris.
>> 
>>> Nativeboost has been removed and been replaced by UFFI, all libraries that 
>>> used Nativeboost are now using UFFI including the Cairo backend library for 
>>> Athens.
>> 
>>  OK, but what i need to do for load UFFI Cairo library
>> 
>>  and for load  the UFFI  library  required byGitFileTree Pharo 
>> support?
>> 
>> 
>>  I wrong to install Pharo 5.0 on my MacBookPro with OS X  10.7.5. ?
>> 
>>  If right remember i install Pharo 5.0 from   
>> http://pharo.org/download   link
>> 
>> 
>>  Thanks.
>>  
>>  Dario
> 



Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-05 Thread Trussardi Dario Romano
Ciao,

> Pharo is unable to access a library it needs; this is the native boost plugin 
> which is normally bundled with it (and the cairo lib?)...
> 
> Guys, anybody with a mac around there?
> 
> Thierry
> 
> 

thanks Dimitris.

> Nativeboost has been removed and been replaced by UFFI, all libraries that 
> used Nativeboost are now using UFFI including the Cairo backend library for 
> Athens.

OK, but what i need to do for load UFFI Cairo library

and for load  the UFFI  library  required byGitFileTree Pharo 
support?


I wrong to install Pharo 5.0 on my MacBookPro with OS X  10.7.5. ?

If right remember i install Pharo 5.0 from   
http://pharo.org/download   link


Thanks.

Dario

Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-01 Thread Trussardi Dario Romano
Ciao,

few days ago i encountered problems installing gitFileTree in pharo 5.0.

The basic error is relative to the : External module not found.

Someone considerations about it?


> Hi Dario,
> 
> this is good that you tested with Roassal. We have a more general issue...

The same problematic is relative to Roassal.

 I install on the MacBook Pro OS/X 10.7.5the  sudo port install 
cairo

But the error persist.

Thanks for any help.

Dario


> 
> 2016-11-29 15:56 GMT+01:00 Trussardi Dario Romano 
> <dario.trussa...@tiscali.it>:
> Ciao,
> 
>> Hi Dario,
>> 
>> 2016-11-29 14:00 GMT+01:00 Trussardi Dario Romano 
>> <dario.trussa...@tiscali.it>:
>> 
>>> 
>>> 
>>> 2016-11-29 11:55 GMT+01:00 Trussardi Dario Romano 
>>> <dario.trussa...@tiscali.it>:
>>> Ciao,
>>> 
>>> IMPORTANT CONSIDERATION:
>>> 
>>> If i started the Pharo 5.0 image from the desktop icon all 
>>> works fine.
>> 
>>  Do you note this difference?!
>> 
>> Of course. Paths/environment may be (is probably) different when you start 
>> from the desktop icon and when you start it from Contents/Resource.
>> 
>>> 
>>> But i have a working  Pharo5.0-161126.image into the Pharo 
>>> 5.0 package Contents/ Resource/  directory.
>>> 
>>> I open it with Pharo5.0 ( Pharo5.0 )  application.
>>> 
>>> The Pharo image is right open   but the 
>>> GitFileTree loading  generates the exception in this case.
>> 
>> 
>> 
>> 
>> 
>>> 
>>> These are the step i do for load:
>>> 
>>> I open the Catalogs Browser and select the GitFileTree project.
>>> 
>>> On it  i press the right mouse button and do the option:
>>> Instal stable version
>>> 
>>> The system browse a dialog with: 
>>> 
>>> " GitFileTree has not been marked as tested for Pharo5.0!
>>> Do you want to continue ( installation could fail )?
>>> 
>>> Ok. Will have a look into the catalog browser source code to get rid of 
>>> that. I know that the catalog browser uses the Pharo6 
>>> ConfigurationOfGitFileTree instead of the Pharo5 one.
>> 
>>  But the same procedure and relative ConfigurationOfGitFileTree,
>> 
>>   works fine when i load it to Pharo launched from 
>> Pharo desktop icon.
>> 
>>  The problematic is when i load it into  Pharo5.0-161126.image   from  
>> the Pharo 5.0 package Contents/ Resource/ subdirectory.
>> 
>> I have noticed and my questions relate to that.
>>  
>>  
>>>  
>>> 
>>> I confirm.
>>> 
>>> The Pharo load some 'package'   and after the image  use the 100% of 
>>> the CPU.
>>> 
>>> After some times the CPU load don't change ( 100% ) and the Pharo don't 
>>> answer. ( the User interrupt alt  Cmd - :   is not intercepted )
>>> 
>>> Yes, this one is problematic.
>>> 
>>> Could you try to load OSSubprocess from the configuration browser? Tell me 
>>> if it locks-up while trying to load that.
>> 
>>  Like above,  load OSSubprocess:
>> 
>>  A ) Into Pharo launched from desktop icon   all 
>> works fine.
>> 
>>  B) Into Pharo5.0-161126.image launched from : the Pharo 5.0 
>> package Contents/ Resource/ subdirectory
>>  
>>  the system locks-up
>> 
>> Does this lockup happens if you load something else from the catalog, such 
>> as Roassal2?
> 
>   I load he Roassal2 without problem in both images ( Pharo desktop and  
> Pharo5.0 Contents/ Resource/Pharo5.0-161126.image )
> 
>   When i run Roassal2 example ( RTLayoutExample new exampleCircle )  in 
> both images   the system answer:
> 
>   Error: External module not found
> 
> ExternalLibraryFunction(Object)>>error:
> ExternalLibraryFunction(Object)>>externalCallFailed
> ExternalLibraryFunction(ExternalFunction)>>invokeWithArguments:
> AthensCairoSurface class>>primImage:width:height:
> AthensCairoSurface class>>extent:format:
> AthensCairoSurface class>>extent:
> TRCanvas>>initialize
> TRCanvas class(Behavior)>>ne

Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-11-29 Thread Trussardi Dario Romano
Ciao,

> Hi Dario,
> 
> 2016-11-29 14:00 GMT+01:00 Trussardi Dario Romano 
> <dario.trussa...@tiscali.it>:
> 
>> 
>> 
>> 2016-11-29 11:55 GMT+01:00 Trussardi Dario Romano 
>> <dario.trussa...@tiscali.it>:
>> Ciao,
>> 
>>  IMPORTANT CONSIDERATION:
>> 
>>  If i started the Pharo 5.0 image from the desktop icon all 
>> works fine.
> 
>   Do you note this difference?!
> 
> Of course. Paths/environment may be (is probably) different when you start 
> from the desktop icon and when you start it from Contents/Resource.
> 
>> 
>>  But i have a working  Pharo5.0-161126.image into the Pharo 
>> 5.0 package Contents/ Resource/  directory.
>> 
>>  I open it with Pharo5.0 ( Pharo5.0 )  application.
>> 
>>  The Pharo image is right open   but the 
>> GitFileTree loading  generates the exception in this case.
> 
> 
> 
> 
> 
>>  
>>  These are the step i do for load:
>> 
>>  I open the Catalogs Browser and select the GitFileTree project.
>> 
>>  On it  i press the right mouse button and do the option:
>> Instal stable version
>> 
>>  The system browse a dialog with: 
>> 
>>  " GitFileTree has not been marked as tested for Pharo5.0!
>>  Do you want to continue ( installation could fail )?
>> 
>> Ok. Will have a look into the catalog browser source code to get rid of 
>> that. I know that the catalog browser uses the Pharo6 
>> ConfigurationOfGitFileTree instead of the Pharo5 one.
> 
>   But the same procedure and relative ConfigurationOfGitFileTree,
> 
>works fine when i load it to Pharo launched from 
> Pharo desktop icon.
> 
>   The problematic is when i load it into  Pharo5.0-161126.image   from  
> the Pharo 5.0 package Contents/ Resource/ subdirectory.
> 
> I have noticed and my questions relate to that.
>  
>   
>>  
>> 
>>  I confirm.
>> 
>>  The Pharo load some 'package'   and after the image  use the 100% of 
>> the CPU.
>> 
>>  After some times the CPU load don't change ( 100% ) and the Pharo don't 
>> answer. ( the User interrupt alt  Cmd - :   is not intercepted )
>> 
>> Yes, this one is problematic.
>> 
>> Could you try to load OSSubprocess from the configuration browser? Tell me 
>> if it locks-up while trying to load that.
> 
>   Like above,  load OSSubprocess:
> 
>   A ) Into Pharo launched from desktop icon   all 
> works fine.
> 
>   B) Into Pharo5.0-161126.image launched from : the Pharo 5.0 
> package Contents/ Resource/ subdirectory
>   
>   the system locks-up
> 
> Does this lockup happens if you load something else from the catalog, such as 
> Roassal2?

I load he Roassal2 without problem in both images ( Pharo desktop and  
Pharo5.0 Contents/ Resource/Pharo5.0-161126.image )

When i run Roassal2 example ( RTLayoutExample new exampleCircle )  in 
both images   the system answer:

Error: External module not found

ExternalLibraryFunction(Object)>>error:
ExternalLibraryFunction(Object)>>externalCallFailed
ExternalLibraryFunction(ExternalFunction)>>invokeWithArguments:
AthensCairoSurface class>>primImage:width:height:
AthensCairoSurface class>>extent:format:
AthensCairoSurface class>>extent:
TRCanvas>>initialize
TRCanvas class(Behavior)>>new
RTView>>initialize
RTView class(Behavior)>>new
RTMondrian(RTBuilder)>>createView
RTMondrian>>createView
RTMondrian(RTBuilder)>>initialize
RTMondrian>>initialize
RTMondrian class(Behavior)>>new
UndefinedObject>>DoIt
Compiler>>evaluate:in:to:notifying:ifFail:logged:
Compiler class>>evaluate:for:notifying:logged:
Compiler class>>evaluate:for:logged:
Compiler class>>evaluate:
RTLayoutExample(RTAbstractExample)>>installTitle:code:
RTLayoutExample class>>DoIt
OpalCompiler>>evaluate
RubSmalltalkEditor>>evaluate:andDo:
RubSmalltalkEditor>>evaluateSelectionAndDo:
RubSmalltalkEditor>>printIt
[ :target | target editor printIt ] in RubSmalltalkEditor 
class>>buildShortcutsOn: in Block: [ :target | target editor printIt ]
BlockClosure>>cull:
BlockClosure>>cull:cull:
BlockClosure>>cull:cull:cull:

thanks,

Dario

> 
> My hypothesis is that, since you have two different ways of starting Pharo 
> with a different sys

[Pharo-users] Add gitfiletree:// Error

2016-11-29 Thread Trussardi Dario Romano
Ciao,

after load the GitFileTree on Pharo 5.0 ( I use the desktop Pharo image 
)

when in Monticello Browser  i add a new repository based on 
gitfiletree://  

after select a directory (on the local disk ) the system answer:

PrimitiveFailed: primitive #loadSymbol:module: in ExternalAddress class failed

The relative variable are:
loadSymbol: 'environ'   module:  libc.dylib

The stack is:

ExternalAddress class>>loadSymbol:module:
ExternalAddress class>>loadSymbol:from:
UnixEnvironment>>environ
UnixEnvironment>>environAt:
[ associationString := self environAt: index.
associationString ifNil: [ ^ self ].
self keysAndValuesDo: aBlock withAssociationString: associationString.
index := index + 1 ] in UnixEnvironment>>keysAndValuesDo: in Block: [ 
associationString := self environAt: index
BlockClosure>>repeat
UnixEnvironment>>keysAndValuesDo:
UnixEnvironment(OSEnvironment)>>asDictionary
OSSUnixSubprocess>>defaultEnvVariablesDictionary
OSSUnixSubprocess>>addAllEnvVariablesFromParentWithoutOverride
OSSUnixSubprocess>>buildPrimitiveEnvArgument
OSSUnixSubprocess>>internalRun
[ self internalRun ] in OSSUnixSubprocess>>run in Block: [ self internalRun ]
BlockClosure>>ensure:
OSSUnixSubprocess>>run
OSSUnixSubprocess>>runAndWaitPollingEvery:retrievingStreams:onExitDo:
MCFileTreeGitRepository class>>runOSSubprocessGitCommand:in:
[ :bar | 
bar label: self gitCommand , ' ' , anArrayOfStrings first.
Smalltalk platform isWin32

ifTrue:

[ ^ self runProcessWrapperGitCommand: anArrayOfStrings in: aDirectory ]

ifFalse: [ ((Smalltalk at: #OSSUnixSubprocess ifAbsent: [  ])

ifNil: [ false ]

ifNotNil: [ :g | g isClass ])

ifTrue: [ ^ self runOSSubprocessGitCommand: anArrayOfStrings in: aDirectory ]

ifFalse: [ ^ self runOSProcessGitCommand: anArrayOfStrings in: aDirectory ] ] ] 
in MCFileTreeGitRepository class>>runGitCommand:in: in Block: [ :bar | ...
[ :bar | aBlock value: bar ] in MorphicUIManager>>informUserDuring: in Block: [ 
:bar | aBlock value: bar ]
BlockClosure>>cull:
[ ^ block cull: self ] in [ self prepareForRunning.
CurrentJob value: self during: [ ^ block cull: self ] ] in Job>>run in Block: [ 
^ block cull: self ]
[ p psValueAt: index put: anObject.
aBlock value ] in CurrentJob(DynamicVariable)>>value:during: in Block: [ p 
psValueAt: index put: anObject
BlockClosure>>ensure:
CurrentJob(DynamicVariable)>>value:during:
CurrentJob class(DynamicVariable class)>>value:during:
[ self prepareForRunning.
CurrentJob value: self during: [ ^ block cull: self ] ] in Job>>run in Block: [ 
self prepareForRunning
BlockClosure>>ensure:
Job>>run
MorphicUIManager(UIManager)>>displayProgress:from:to:during:
MorphicUIManager>>informUserDuring

Considerations ?

Thanks,

Dario




Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-11-29 Thread Trussardi Dario Romano

> 
> 
> 2016-11-29 11:55 GMT+01:00 Trussardi Dario Romano 
> <dario.trussa...@tiscali.it>:
> Ciao,
> 
>   IMPORTANT CONSIDERATION:
> 
>   If i started the Pharo 5.0 image from the desktop icon all 
> works fine.

Do you note this difference?!

> 
>   But i have a working  Pharo5.0-161126.image into the Pharo 
> 5.0 package Contents/ Resource/  directory.
> 
>   I open it with Pharo5.0 ( Pharo5.0 )  application.
> 
>   The Pharo image is right open   but the 
> GitFileTree loading  generates the exception in this case.





>   
>   These are the step i do for load:
> 
>   I open the Catalogs Browser and select the GitFileTree project.
> 
>   On it  i press the right mouse button and do the option:
> Instal stable version
> 
>   The system browse a dialog with: 
> 
>   " GitFileTree has not been marked as tested for Pharo5.0!
>   Do you want to continue ( installation could fail )?
> 
> Ok. Will have a look into the catalog browser source code to get rid of that. 
> I know that the catalog browser uses the Pharo6 ConfigurationOfGitFileTree 
> instead of the Pharo5 one.

But the same procedure and relative ConfigurationOfGitFileTree,

 works fine when i load it to Pharo launched from 
Pharo desktop icon.

The problematic is when i load it into  Pharo5.0-161126.image   from  
the Pharo 5.0 package Contents/ Resource/ subdirectory.   

>  
> 
>   I confirm.
> 
>   The Pharo load some 'package'   and after the image  use the 100% of 
> the CPU.
> 
>   After some times the CPU load don't change ( 100% ) and the Pharo don't 
> answer. ( the User interrupt alt  Cmd - :   is not intercepted )
> 
> Yes, this one is problematic.
> 
> Could you try to load OSSubprocess from the configuration browser? Tell me if 
> it locks-up while trying to load that.

Like above,  load OSSubprocess:

A ) Into Pharo launched from desktop icon   all 
works fine.

B) Into Pharo5.0-161126.image launched from : the Pharo 5.0 
package Contents/ Resource/ subdirectory

the system locks-up

Dario

> 
> Thierry
>  
> 
>   I need to shut Pharo  and reopen the image.
> 
>   Thanks,
> 
>   Dario
>   
> 
>> Hi Dario,
>> 
>> can you tell a bit more about what is happening exactly?
>> 
>> Thierry
>> 
>> 2016-11-29 10:57 GMT+01:00 Trussardi Dario Romano 
>> <dario.trussa...@tiscali.it>:
>> Ciao,
>> 
>> i have aPharo5.0Latest update: #50763  image 
>>run on MacBook Pro with OS X 10.7.5.
>> 
>> When i load the GitFileTree support the 
>> environment go in loop and i need to shut it.
>> 
>> Considerations?
>> 
>> Thanks,
>> 
>> Dario
>> 
>> 
>> 
>> 
>> 
> 
> 



Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-11-29 Thread Trussardi Dario Romano
Ciao,

IMPORTANT CONSIDERATION:

If i started the Pharo 5.0 image from the desktop icon all 
works fine.

But i have a working  Pharo5.0-161126.image into the Pharo 
5.0 package Contents/ Resource/  directory.

I open it with Pharo5.0 ( Pharo5.0 )  application.

The Pharo image is right open   but the 
GitFileTree loading  generates the exception in this case.


These are the step i do for load:

I open the Catalogs Browser and select the GitFileTree project.

On it  i press the right mouse button and do the option:
Instal stable version

The system browse a dialog with: 

" GitFileTree has not been marked as tested for Pharo5.0!
Do you want to continue ( installation could fail )?

I confirm.

The Pharo load some 'package'   and after the image  use the 100% of 
the CPU.

After some times the CPU load don't change ( 100% ) and the Pharo don't 
answer. ( the User interrupt alt  Cmd - :   is not intercepted )

I need to shut Pharo  and reopen the image.

Thanks,

Dario


> Hi Dario,
> 
> can you tell a bit more about what is happening exactly?
> 
> Thierry
> 
> 2016-11-29 10:57 GMT+01:00 Trussardi Dario Romano 
> <dario.trussa...@tiscali.it>:
> Ciao,
> 
> i have aPharo5.0Latest update: #50763  image  
>   run on MacBook Pro with OS X 10.7.5.
> 
> When i load the GitFileTree support the 
> environment go in loop and i need to shut it.
> 
> Considerations?
> 
> Thanks,
> 
> Dario
> 
> 
> 
> 
> 



[Pharo-users] GitFileTree on Pharo 5.0

2016-11-29 Thread Trussardi Dario Romano
Ciao,

i have aPharo5.0Latest update: #50763  image
run on MacBook Pro with OS X 10.7.5.

When i load the GitFileTree support the environment 
go in loop and i need to shut it.

Considerations?

Thanks,

Dario