Re: [Pharo-dev] File Outs: Can We Have Unix Line Endings?

2014-07-23 Thread Eliot Miranda
I have crcat crvi crmore crdiff crtolf lftocr etc...

Eliot (phone)

On Jul 23, 2014, at 7:17 PM, "Sean P. DeNigris"  wrote:

> Any reason not to? Tedious to continually do "%s/\r/\r/g"s on Mac to fix:
>  TextStream subclass:^M#UCTextStream^MinstanceVariableNames:
> ''^MclassVariableNames: ''^MpoolDictionaries: ''^Mcategory: 'UFFA-Core'!^M!
> 
> 
> 
> 
> -
> Cheers,
> Sean
> --
> View this message in context: 
> http://forum.world.st/File-Outs-Can-We-Have-Unix-Line-Endings-tp4769721.html
> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
> 



[Pharo-dev] File Outs: Can We Have Unix Line Endings?

2014-07-23 Thread Sean P. DeNigris
Any reason not to? Tedious to continually do "%s/\r/\r/g"s on Mac to fix:
  TextStream subclass:^M#UCTextStream^MinstanceVariableNames:
''^MclassVariableNames: ''^MpoolDictionaries: ''^Mcategory: 'UFFA-Core'!^M!




-
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/File-Outs-Can-We-Have-Unix-Line-Endings-tp4769721.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.



[Pharo-dev] [Bug]: Issue 13665: File outs include external extension methods

2014-07-23 Thread Sean P. DeNigris
If MyClass is in MyPackage, with MyClass>>#extensionMethod in
*ExtendingPackage...

In Nautilus package pane, choose "File Out" from context menu. The file out
will include MyClass>>#extensionMethod, which it should not.

b.t.w. observed bug in Pharo3.0 #30850



-
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/Bug-Issue-13665-File-outs-include-external-extension-methods-tp4769713.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.



Re: [Pharo-dev] SmartBreakpoints alpha release

2014-07-23 Thread Sean P. DeNigris
Tudor Girba-2 wrote
> TxText should be the future. Perhaps we can... make it a goal for the
> whole community to get it
> finished

+100. This is really important and doesn't seem fair/effective/safe to put
it all on one person's shoulders - even someone as good as Igor ;) Plus we
have gotten burned in the past by relying on one smart person...



-
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/SmartBreakpoints-alpha-release-tp4769266p4769711.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.



Re: [Pharo-dev] TextMorph: No Emphasis?

2014-07-23 Thread Sean P. DeNigris
EstebanLM wrote
> not all fonts have underline feature available. 

Ah, yes, changing the font shows the underline. This seems wierd. Maybe a
silly question, but why can e.g. Mac Pages show Arial underlined, but not in
Pharo? Is underlining something we implement separately for each font?



-
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/TextMorph-No-Emphasis-tp4769458p4769710.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.



Re: [Pharo-dev] TextMorph: No Emphasis?

2014-07-23 Thread Andreas Wacknitz
Esteban,

You are right. Changing the font solves the „problem“.
And the code snipped reveals another problem in Pharo 40120:
a right click in the resulting TextMorph gives a MNU TextMorph>>editView :(

Regards,
Andreas


Am 23.07.2014 um 19:58 schrieb Esteban Lorenzano :

> not all fonts have underline feature available. 
> if you take a 4.0 image and do not change fonts, the default fonts (DejaVu 
> Sans) can underline. 
> the one I usually use, for example (Source Sans Pro), can not (at least in 
> the installation I have).
> 
> Esteban
> 
> On 23 Jul 2014, at 19:47, Andreas Wacknitz  wrote:
> 
>> 
>> Am 23.07.2014 um 18:33 schrieb Nicolai Hess :
>> 
>>> Where did you test this?
>>> 
>>>   (TextMorph new contents: (Text string: 'hi there' attribute: (TextEmphasis
>>> underlined))) openInHand.
>>> 
>>> Works for me.
>>> 
>>> (Pharo 40120 windows 7)
>> Does not work on Pharo 40120 on Mac OSX 10.9.4 (newest Pharo-VM) for me.
>> 
>> 
>> Regards,
>> Andreas
>> 
>>> 
>>> 
>>> 
>>> 2014-07-23 6:39 GMT+02:00 Tudor Girba :
>>> Strange indeed.
>>> 
>>> Rubric supports this well:
>>> (RubEditingArea new updateTextWith: (Text string: 'hi there' attribute: 
>>> TextEmphasis underlined)) openInWindow.
>>> 
>>> Cheers,
>>> Doru
>>> 
>>> 
>>> 
>>> 
>>> On Wed, Jul 23, 2014 at 6:23 AM, Sean P. DeNigris  
>>> wrote:
>>> I was surprised that the following does not show an underline:
>>>   (TextMorph new contents: (Text string: 'hi there' attribute: (TextEmphasis
>>> underlined))) openInHand.
>>> ... especially since the first line in TM's class comment is "TextMorphs
>>> support display of text with emphasis"
>>> 
>>> Any ideas?
>>> 
>>> p.s. the emphasis is there, it's just not being displayed. When I copy the
>>> text to the clipboard and paste in the workspace via "Clipboard
>>> clipboardText: (Text string: 'hi there' attribute: (TextEmphasis
>>> underlined))", I see the underline for a split second before the syntax
>>> highlighting happens.
>>> 
>>> 
>>> 
>>> -
>>> Cheers,
>>> Sean
>>> --
>>> View this message in context: 
>>> http://forum.world.st/TextMorph-No-Emphasis-tp4769458.html
>>> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
>>> 
>>> 
>>> 
>>> 
>>> -- 
>>> www.tudorgirba.com
>>> 
>>> "Every thing has its own flow"
>>> 
>> 
> 



Re: [Pharo-dev] TextMorph: No Emphasis?

2014-07-23 Thread Esteban Lorenzano
not all fonts have underline feature available. 
if you take a 4.0 image and do not change fonts, the default fonts (DejaVu 
Sans) can underline. 
the one I usually use, for example (Source Sans Pro), can not (at least in the 
installation I have).

Esteban

On 23 Jul 2014, at 19:47, Andreas Wacknitz  wrote:

> 
> Am 23.07.2014 um 18:33 schrieb Nicolai Hess :
> 
>> Where did you test this?
>> 
>>   (TextMorph new contents: (Text string: 'hi there' attribute: (TextEmphasis
>> underlined))) openInHand.
>> 
>> Works for me.
>> 
>> (Pharo 40120 windows 7)
> Does not work on Pharo 40120 on Mac OSX 10.9.4 (newest Pharo-VM) for me.
> 
> 
> Regards,
> Andreas
> 
>> 
>> 
>> 
>> 2014-07-23 6:39 GMT+02:00 Tudor Girba :
>> Strange indeed.
>> 
>> Rubric supports this well:
>> (RubEditingArea new updateTextWith: (Text string: 'hi there' attribute: 
>> TextEmphasis underlined)) openInWindow.
>> 
>> Cheers,
>> Doru
>> 
>> 
>> 
>> 
>> On Wed, Jul 23, 2014 at 6:23 AM, Sean P. DeNigris  
>> wrote:
>> I was surprised that the following does not show an underline:
>>   (TextMorph new contents: (Text string: 'hi there' attribute: (TextEmphasis
>> underlined))) openInHand.
>> ... especially since the first line in TM's class comment is "TextMorphs
>> support display of text with emphasis"
>> 
>> Any ideas?
>> 
>> p.s. the emphasis is there, it's just not being displayed. When I copy the
>> text to the clipboard and paste in the workspace via "Clipboard
>> clipboardText: (Text string: 'hi there' attribute: (TextEmphasis
>> underlined))", I see the underline for a split second before the syntax
>> highlighting happens.
>> 
>> 
>> 
>> -
>> Cheers,
>> Sean
>> --
>> View this message in context: 
>> http://forum.world.st/TextMorph-No-Emphasis-tp4769458.html
>> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
>> 
>> 
>> 
>> 
>> -- 
>> www.tudorgirba.com
>> 
>> "Every thing has its own flow"
>> 
> 



Re: [Pharo-dev] TextMorph: No Emphasis?

2014-07-23 Thread Andreas Wacknitz

Am 23.07.2014 um 18:33 schrieb Nicolai Hess :

> Where did you test this?
> 
>   (TextMorph new contents: (Text string: 'hi there' attribute: (TextEmphasis
> underlined))) openInHand.
> 
> Works for me.
> 
> (Pharo 40120 windows 7)
Does not work on Pharo 40120 on Mac OSX 10.9.4 (newest Pharo-VM) for me.


Regards,
Andreas

> 
> 
> 
> 2014-07-23 6:39 GMT+02:00 Tudor Girba :
> Strange indeed.
> 
> Rubric supports this well:
> (RubEditingArea new updateTextWith: (Text string: 'hi there' attribute: 
> TextEmphasis underlined)) openInWindow.
> 
> Cheers,
> Doru
> 
> 
> 
> 
> On Wed, Jul 23, 2014 at 6:23 AM, Sean P. DeNigris  
> wrote:
> I was surprised that the following does not show an underline:
>   (TextMorph new contents: (Text string: 'hi there' attribute: (TextEmphasis
> underlined))) openInHand.
> ... especially since the first line in TM's class comment is "TextMorphs
> support display of text with emphasis"
> 
> Any ideas?
> 
> p.s. the emphasis is there, it's just not being displayed. When I copy the
> text to the clipboard and paste in the workspace via "Clipboard
> clipboardText: (Text string: 'hi there' attribute: (TextEmphasis
> underlined))", I see the underline for a split second before the syntax
> highlighting happens.
> 
> 
> 
> -
> Cheers,
> Sean
> --
> View this message in context: 
> http://forum.world.st/TextMorph-No-Emphasis-tp4769458.html
> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
> 
> 
> 
> 
> -- 
> www.tudorgirba.com
> 
> "Every thing has its own flow"
> 



Re: [Pharo-dev] TextMorph: No Emphasis?

2014-07-23 Thread Tudor Girba
I tested it in Pharo 3.0 30852 (Mac).

Doru


On Wed, Jul 23, 2014 at 6:33 PM, Nicolai Hess  wrote:

> Where did you test this?
>
>
>   (TextMorph new contents: (Text string: 'hi there' attribute:
> (TextEmphasis
> underlined))) openInHand.
>
> Works for me.
>
> (Pharo 40120 windows 7)
>
>
>
> 2014-07-23 6:39 GMT+02:00 Tudor Girba :
>
> Strange indeed.
>>
>> Rubric supports this well:
>> (RubEditingArea new updateTextWith: (Text string: 'hi there' attribute:
>> TextEmphasis underlined)) openInWindow.
>>
>> Cheers,
>> Doru
>>
>> [image: Inline image 1]
>>
>>
>> On Wed, Jul 23, 2014 at 6:23 AM, Sean P. DeNigris 
>> wrote:
>>
>>> I was surprised that the following does not show an underline:
>>>   (TextMorph new contents: (Text string: 'hi there' attribute:
>>> (TextEmphasis
>>> underlined))) openInHand.
>>> ... especially since the first line in TM's class comment is "TextMorphs
>>> support display of text with emphasis"
>>>
>>> Any ideas?
>>>
>>> p.s. the emphasis is there, it's just not being displayed. When I copy
>>> the
>>> text to the clipboard and paste in the workspace via "Clipboard
>>> clipboardText: (Text string: 'hi there' attribute: (TextEmphasis
>>> underlined))", I see the underline for a split second before the syntax
>>> highlighting happens.
>>>
>>>
>>>
>>> -
>>> Cheers,
>>> Sean
>>> --
>>> View this message in context:
>>> http://forum.world.st/TextMorph-No-Emphasis-tp4769458.html
>>> Sent from the Pharo Smalltalk Developers mailing list archive at
>>> Nabble.com.
>>>
>>>
>>
>>
>> --
>> www.tudorgirba.com
>>
>> "Every thing has its own flow"
>>
>
>


-- 
www.tudorgirba.com

"Every thing has its own flow"


Re: [Pharo-dev] Doubt in Pharo

2014-07-23 Thread Richard Sargent
harshit wrote
> So I was creating this dictionary for column at the instance side
> initialization of Employee.
> 
> My instructor suggested to do that in class side initialization,
> 
> My Doubts are:
> 
> 1. Why should we do class side initialization instead of instance side
> initialization.
> 
> 2. Could you please refer me to the link which explains how to do class
> side initialization. Because when I do Employee new, I see only instance
> side initialization is being called.

This comes down to the distinction between class and instance. As you know,
instance-side functionality relates to how individual instances behave while
class-side functionality related to how /all/ instances behave. In this
case, the relational mapping rules are not going to differ from one instance
to another. That is why your instructor advised you to set that up using
class-side behaviour.

If you aren't that familiar with Smalltalk - compared to C-derived languages
like Java - it may be hard to get really and truly adapted to the meaning of
"everything is an object". In this case, you have a number of classes which
represent objects mapped to a relational database, so it makes sense that
each such class is responsible for defining what that mapping is. (Although,
one could argue that proper decoupling of layers moves the responsibility of
knowing how to map the data from the individual classes to some other
objects.)


As far as doing class-side initialization, it is simply a matter of sending
the right messages to the classes at the right time. For example, you might
have a Employee class>>#setUpRelationalMappingRules method defined. Before
you can replicate the data between Smalltalk and SQL, you need to execute
that method. 

You have choices in terms of when you actually do it. 
- There is "lazy initialization" in which the initialization is done at the
last possible instant. But this incurs an overhead in that every mapping
occurrence requires the check.
- There is "application start up initialization" in which the initialization
is done early, as part of starting the application. For example, when you
connect to the database, you can initialize the mapping rules.
- There is "class loading initialization" in which the initialization is
done when you actually load the code into the image. This is typically
controlled by a class-side method called #initialize. The code loading
frameworks may execute the method automatically for you. I find too many
"corner cases" with this technique and I prefer explicit behaviours rather
than implicit ones.

The "application start up initialization" is my preferred approach. If you
imaging the UML of an application, you would have a package for your model
code, another for your persistence mechanism, and a third for your
"application". This is grossly simplified, of course. The application
package has dependencies on the other two packages, but they have no
dependencies on any of the others. In this sense, you are using the
application to tie together the model and the persistence mechanism of your
choice. At start up, you "configure" the persistence mechanism by explicitly
invoking the appropriate methods to set up the server connection, the
mapping rules, and anything else your choice of persistence requires.




--
View this message in context: 
http://forum.world.st/Doubt-in-Pharo-tp4769465p4769668.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.



Re: [Pharo-dev] Coverage testing options

2014-07-23 Thread Alexandre Bergel
We have worked on Hapao, which is available for Pharo 3.0 

http://smalltalkhub.com/#!/~ObjectProfile/S2py

It gives nice visualization, such as the one shows in:
http://bergel.eu/download/papers/Berg12c-HapaoSCP.pdf

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



On Jul 23, 2014, at 7:01 AM, Pavel Krivanek  wrote:

> Hi,
> 
> what are the current working options for the tests coverage reporting? For 
> testing of the minimal image I tried to use the standard code simulator but 
> as you may expect the results are not perfect (it cannot hanlde tests that 
> use should:rise, it's very slow etc.)
> 
> https://ci.inria.fr/pharo/view/4.0-Bootstrap/job/Pharo-4.0-Bootstrap-Step-2.2-Simulated-Coverage-Test/
> 
> Cheers,
> -- Pavel



Re: [Pharo-dev] TextMorph: No Emphasis?

2014-07-23 Thread Nicolai Hess
Where did you test this?

  (TextMorph new contents: (Text string: 'hi there' attribute: (TextEmphasis
underlined))) openInHand.

Works for me.

(Pharo 40120 windows 7)



2014-07-23 6:39 GMT+02:00 Tudor Girba :

> Strange indeed.
>
> Rubric supports this well:
> (RubEditingArea new updateTextWith: (Text string: 'hi there' attribute:
> TextEmphasis underlined)) openInWindow.
>
> Cheers,
> Doru
>
> [image: Inline image 1]
>
>
> On Wed, Jul 23, 2014 at 6:23 AM, Sean P. DeNigris 
> wrote:
>
>> I was surprised that the following does not show an underline:
>>   (TextMorph new contents: (Text string: 'hi there' attribute:
>> (TextEmphasis
>> underlined))) openInHand.
>> ... especially since the first line in TM's class comment is "TextMorphs
>> support display of text with emphasis"
>>
>> Any ideas?
>>
>> p.s. the emphasis is there, it's just not being displayed. When I copy the
>> text to the clipboard and paste in the workspace via "Clipboard
>> clipboardText: (Text string: 'hi there' attribute: (TextEmphasis
>> underlined))", I see the underline for a split second before the syntax
>> highlighting happens.
>>
>>
>>
>> -
>> Cheers,
>> Sean
>> --
>> View this message in context:
>> http://forum.world.st/TextMorph-No-Emphasis-tp4769458.html
>> Sent from the Pharo Smalltalk Developers mailing list archive at
>> Nabble.com.
>>
>>
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
>


Re: [Pharo-dev] First attempt at submitting a simple contribution

2014-07-23 Thread Tim Mackinnon
Thanks for the feedback, I will look at making those corrections/suggestions
and resubmit.

Tim



--
View this message in context: 
http://forum.world.st/First-attempt-at-submitting-a-simple-contribution-tp4769405p4769659.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.



Re: [Pharo-dev] Package Dependencies Analysis : new features

2014-07-23 Thread Baptiste Quide
nice! This is his main goal ;) 


- Mail original -


De: "stepharo"  
À: "Pharo Development List"  
Envoyé: Mercredi 23 Juillet 2014 16:59:23 
Objet: Re: [Pharo-dev] Package Dependencies Analysis : new features 

I tried with Morphic-widgets and this is really cool because it is really 
helping me to spot problems!!! 

Stef 

On 23/7/14 14:49, Baptiste Quide wrote: 



Hello Pharos Users, 

Since the first release of Package Dependencies Analysis, here is a summary of 
improvements : 

- tool is available in World Menu (Tools > Package Dependencies Browser) : 
choose your packages and browse dependencies. 
- add/remove packages into the analysis. 
- you can refresh the current analysis manually (for instance if you change a 
piece of code to remove/add dependency) 
- filter the packages displaying by name 
- button "find cycles" allows to find all cycles in the system where the 
selected packages in the tree are (it could take a while the first time you 
click) 
- contextual menu (right click) to browse scoped dependencies or find cycles 
among the selected packages in the tree 

Then, in the window displaying cycles among packages : 

- only dependencies among packages in the cycle are displaying (no outgoing 
dependencies) 
- packages appear by order (if you see aCycle : A, B, C, the cycle is A -> B -> 
C -> A) 

See more details : http://www.baptistequide.fr/packagedependencies.php 

Regards, 

Baptiste 










Re: [Pharo-dev] Package Dependencies Analysis : new features

2014-07-23 Thread stepharo
I tried with Morphic-widgets and this is really cool because it is 
really helping me to spot problems!!!


Stef

On 23/7/14 14:49, Baptiste Quide wrote:

Hello Pharos Users,

Since the first release of Package Dependencies Analysis, here is a 
summary of improvements :


- tool is available in World Menu (Tools > Package Dependencies 
Browser) : choose your packages and browse dependencies.

- add/remove packages into the analysis.
- you can refresh the current analysis manually (for instance if you 
change a piece of code to remove/add dependency)

- filter the packages displaying by name
- button "find cycles" allows to find all cycles in the system where 
the selected packages in the tree are  (it could take a while the 
first time you click)
- contextual menu (right click) to browse scoped dependencies or find 
cycles among the selected packages in the tree


Then, in the window displaying cycles among packages :

- only dependencies among packages in the cycle are displaying (no 
outgoing dependencies)
- packages appear by order (if you see aCycle : A, B, C, the cycle is 
A -> B -> C -> A)


See more details : http://www.baptistequide.fr/packagedependencies.php

Regards,

Baptiste




Re: [Pharo-dev] Package Dependencies Analysis : new features

2014-07-23 Thread stepharo

To test:

Gofer it
smalltalkhubUser: 'BaptisteQuide' project: 
'PackageDependenciesAnalysis';

configuration;
loadStable

Stef

On 23/7/14 14:49, Baptiste Quide wrote:

Hello Pharos Users,

Since the first release of Package Dependencies Analysis, here is a 
summary of improvements :


- tool is available in World Menu (Tools > Package Dependencies 
Browser) : choose your packages and browse dependencies.

- add/remove packages into the analysis.
- you can refresh the current analysis manually (for instance if you 
change a piece of code to remove/add dependency)

- filter the packages displaying by name
- button "find cycles" allows to find all cycles in the system where 
the selected packages in the tree are  (it could take a while the 
first time you click)
- contextual menu (right click) to browse scoped dependencies or find 
cycles among the selected packages in the tree


Then, in the window displaying cycles among packages :

- only dependencies among packages in the cycle are displaying (no 
outgoing dependencies)
- packages appear by order (if you see aCycle : A, B, C, the cycle is 
A -> B -> C -> A)


See more details : http://www.baptistequide.fr/packagedependencies.php

Regards,

Baptiste




Re: [Pharo-dev] Merging Transcript and Tool-Transcript

2014-07-23 Thread stepharo

Ok
I think that I should allocate some time to SystemLogger because it is a 
good replacement to transcript.



On 23/7/14 15:18, Pavel Krivanek wrote:

Hi Stef,

ThreadSafeTranscript is not the UI class. It is present in the minimal 
image and it's connected to the STDOUT by default. So it makes sense 
to split Transcript as a general output stream and a Morphic tool 
showing its content.


Cheers,
-- Pavel


2014-07-23 15:08 GMT+02:00 stepharo >:


Hi pavel

can you explain to me why this would bring a dependency that is
not already included by Transcript?
Transcript depends on ThreadSafeTranscriptPluggableTextMorph



https://pharo.fogbugz.com/default.asp?13627#105924

Stef






Re: [Pharo-dev] Project Watch on SThub

2014-07-23 Thread Sven Van Caekenberghe

On 23 Jul 2014, at 16:22, Damien Cassou  wrote:

> - a code browser (like we have for years on SqueakSource)

+111



[Pharo-dev] [pharo-project/pharo-core]

2014-07-23 Thread GitHub
  Branch: refs/tags/40120
  Home:   https://github.com/pharo-project/pharo-core


[Pharo-dev] [pharo-project/pharo-core] e8a55e: 40120

2014-07-23 Thread GitHub
  Branch: refs/heads/4.0
  Home:   https://github.com/pharo-project/pharo-core
  Commit: e8a55e22472550f460fa9bd6d638da5bdae9e45f
  
https://github.com/pharo-project/pharo-core/commit/e8a55e22472550f460fa9bd6d638da5bdae9e45f
  Author: Jenkins Build Server 
  Date:   2014-07-23 (Wed, 23 Jul 2014)

  Changed paths:
M 
OpalCompiler-Core.package/IRBuilder.class/instance/initialize/addLiteral_.st
M OpalCompiler-Core.package/IRMethod.class/instance/optimizing/optimize.st
M OpalCompiler-Core.package/OCASTTranslator.class/instance/inline 
messages/emitAnd_.st
M OpalCompiler-Core.package/OCASTTranslator.class/instance/inline 
messages/emitOr_.st
M OpalCompiler-Core.package/OCASTTranslatorForEffect.class/instance/inline 
messages/emitAnd_.st
M OpalCompiler-Core.package/OCASTTranslatorForEffect.class/instance/inline 
messages/emitOr_.st
M 
OpalCompiler-Core.package/OCASTTranslatorForEffect.class/instance/visitor-double
 dispatching/visitLiteralArrayNode_.st
M 
OpalCompiler-Core.package/OCASTTranslatorForEffect.class/instance/visitor-double
 dispatching/visitLiteralNode_.st
M 
OpalCompiler-Core.package/OCASTTranslatorForEffect.class/instance/visitor-double
 dispatching/visitVariableNode_.st
A 
OpalCompiler-Core.package/OCInstanceScope.class/instance/initializing/vars_.st
A OpalCompiler-Core.package/OCInstanceVariable.class/README.md
A OpalCompiler-Core.package/OCInstanceVariable.class/definition.st
A 
OpalCompiler-Core.package/OCInstanceVariable.class/instance/accessing/index.st
A 
OpalCompiler-Core.package/OCInstanceVariable.class/instance/accessing/index_.st
A 
OpalCompiler-Core.package/OCInstanceVariable.class/instance/accessing/name.st
A 
OpalCompiler-Core.package/OCInstanceVariable.class/instance/accessing/name_.st
A 
OpalCompiler-Core.package/OCInstanceVariable.class/instance/emitting/emitStore_.st
A 
OpalCompiler-Core.package/OCInstanceVariable.class/instance/emitting/emitValue_.st
A 
OpalCompiler-Core.package/OCInstanceVariable.class/instance/testing/isInstance.st
M OpalCompiler-Core.package/SyntaxErrorNotification.class/README.md
M OpalCompiler-Core.package/SyntaxErrorNotification.class/definition.st
M 
OpalCompiler-Core.package/SyntaxErrorNotification.class/instance/accessing/errorMessage.st
A 
OpalCompiler-Core.package/SyntaxErrorNotification.class/instance/accessing/messageText.st
M 
OpalCompiler-Core.package/SyntaxErrorNotification.class/instance/accessing/setClass_category_code_doitFlag_errorMessage_location_.st
A OpalCompiler-Tests.package/OCASTTranslatorTest.class/instance/testing - 
blocks - optimized/testExampleAndOr.st
A OpalCompiler-Tests.package/OCASTTranslatorTest.class/instance/testing - 
blocks - optimized/testExampleAndOr2.st
A OpalCompiler-Tests.package/OCASTTranslatorTest.class/instance/testing - 
blocks - optimized/testExampleAndOr3.st
A OpalCompiler-Tests.package/OCASTTranslatorTest.class/instance/testing - 
blocks - optimized/testExampleAndOr4.st
A OpalCompiler-Tests.package/OCASTTranslatorTest.class/instance/testing - 
blocks - optimized/testExampleAndOr5.st
A OpalCompiler-Tests.package/OCASTTranslatorTest.class/instance/testing - 
blocks - optimized/testExampleAndOr6.st
A OpalCompiler-Tests.package/OCASTTranslatorTest.class/instance/testing - 
misc/testExampleEffectValues.st
A 
OpalCompiler-Tests.package/OCOpalExamples.class/instance/examples-blocks-optimized/exampleAndOr.st
A 
OpalCompiler-Tests.package/OCOpalExamples.class/instance/examples-blocks-optimized/exampleAndOr2.st
A 
OpalCompiler-Tests.package/OCOpalExamples.class/instance/examples-blocks-optimized/exampleAndOr3.st
A 
OpalCompiler-Tests.package/OCOpalExamples.class/instance/examples-blocks-optimized/exampleAndOr4.st
A 
OpalCompiler-Tests.package/OCOpalExamples.class/instance/examples-blocks-optimized/exampleAndOr5.st
A 
OpalCompiler-Tests.package/OCOpalExamples.class/instance/examples-blocks-optimized/exampleAndOr6.st
A 
OpalCompiler-Tests.package/OCOpalExamples.class/instance/examples-blocks/exampleEffectValues.st
M 
OpalCompiler-Tests.package/OCSourceCode2BytecodeTest.class/instance/tests/testPushLiteralVariableBytecode.st
M 
OpalCompiler-Tests.package/OCSourceCode2BytecodeTest.class/instance/tests/testStoreAndPopLiteralVariableBytecode.st
M 
OpalCompiler-Tests.package/OCSourceCode2BytecodeTest.class/instance/tests/testStoreIntoLiteralVariableBytecode.st
A OpalDecompiler.package/OCDecompiler.class/README.md
A 
OpalDecompiler.package/OCDecompiler.class/class/initialization/initialize.st
A OpalDecompiler.package/OCDecompiler.class/class/public/decompile_.st
A OpalDecompiler.package/OCDecompiler.class/definition.st
A 
OpalDecompiler.package/OCDecompiler.class/instance/control/blockForCaseTo_.st
A OpalDecompiler.package/OCDecompiler.class/instance/control/blockTo_.st
A 
OpalDecompiler.package/OCDecompiler.class/instance/control/blockT

Re: [Pharo-dev] Project Watch on SThub

2014-07-23 Thread Damien Cassou
On Wed, Jul 23, 2014 at 4:21 PM, Torsten Bergmann  wrote:
>
> Things I would really like to see:


- a code browser (like we have for years on SqueakSource)

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm."
Winston Churchill



Re: [Pharo-dev] Project Watch on SThub

2014-07-23 Thread Torsten Bergmann
I already thought that (as in most cases) it is mainly a 
time issue.

To Mike:

The project and an image is on CI  
https://ci.inria.fr/pharo-contribution/job/SmalltalkHub/
including the infos to run it locally. You have to install MongoDB

Basically server side is using Seaside with Amber on the client.

Code is hosted on STHub itself: 
http://smalltalkhub.com/#!/~NicolasPetton/SmalltalkHub

There is also an issue tracker: 
https://code.google.com/p/smalltalk-hub/issues/list

Things I would really like to see:
 - the project watch working again
 - maybe using Pillar(Hub) beside Markdown would be great
 - a simple field to enter and display the CI location in the project settings
 - an better query API to retrieve infos (see 
http://forum.world.st/Query-STHub-from-outside-td4728629.html
   and http://smalltalkhub.com/#!/~SWT/SmalltalkHubClient)

Maybe your pharocloud.com company want to also make an offer to host a 
custom/private STHub 
instances ...  

Bye
T.

> Gesendet: Mittwoch, 23. Juli 2014 um 15:11 Uhr
> Von: mikefilonov 
> An: pharo-dev@lists.pharo.org
> Betreff: Re: [Pharo-dev] Project Watch on SThub
>
> Hi,
> 
> I definitely want to help. How can I join in?
> 
> 
> 
> --
> View this message in context: 
> http://forum.world.st/Project-Watch-on-SThub-tp4769546p4769598.html
> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
> 
> 



[Pharo-dev] [pharo-project/pharo-core]

2014-07-23 Thread GitHub
  Branch: refs/tags/40119
  Home:   https://github.com/pharo-project/pharo-core


[Pharo-dev] [pharo-project/pharo-core] bf40b5: 40119

2014-07-23 Thread GitHub
  Branch: refs/heads/4.0
  Home:   https://github.com/pharo-project/pharo-core
  Commit: bf40b5af944e4bc9cb632a37d120a9eecb7efba9
  
https://github.com/pharo-project/pharo-core/commit/bf40b5af944e4bc9cb632a37d120a9eecb7efba9
  Author: Jenkins Build Server 
  Date:   2014-07-23 (Wed, 23 Jul 2014)

  Changed paths:
M Morphic-Core.package/Morph.class/instance/menus/addMiscExtrasTo_.st
A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
scripts/script119.st
A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
updates/update40119.st
M 
ScriptLoader40.package/ScriptLoader.class/instance/public/commentForCurrentUpdate.st
R System-Tools.package/ToolRegistry.class/README.md
R System-Tools.package/ToolRegistry.class/definition.st
R 
System-Tools.package/ToolRegistry.class/instance/convenience-inspecting/inspectorClass.st
R System-Tools.package/ToolRegistry.class/instance/handling 
DNU/doesNotUnderstand_.st
R 
System-Tools.package/ToolRegistry.class/instance/initialization/initialize.st
R 
System-Tools.package/ToolRegistry.class/instance/initialize-release/initDefaultToolSet.st
R System-Tools.package/ToolRegistry.class/instance/menu/menuItems.st
R System-Tools.package/ToolRegistry.class/instance/menu/openClassBrowser.st
R System-Tools.package/ToolRegistry.class/instance/menu/openFileList.st
R 
System-Tools.package/ToolRegistry.class/instance/menu/openMonticelloBrowser.st
R 
System-Tools.package/ToolRegistry.class/instance/menu/openProcessBrowser.st
R 
System-Tools.package/ToolRegistry.class/instance/menu/openRecentChangesLog.st
R System-Tools.package/ToolRegistry.class/instance/menu/openTestRunner.st
R System-Tools.package/ToolRegistry.class/instance/menu/openTranscript.st
R System-Tools.package/ToolRegistry.class/instance/menu/openWorkspace.st
R 
System-Tools.package/ToolRegistry.class/instance/misc/browseDirectToolReferences.st
R 
System-Tools.package/ToolRegistry.class/instance/misc/codeCompletionAround_textMorph_keyStroke_.st
R System-Tools.package/ToolRegistry.class/instance/misc/informNoDebugger.st
R System-Tools.package/ToolRegistry.class/instance/misc/using_do_.st
R 
System-Tools.package/ToolRegistry.class/instance/registration/register_as_.st
R System-Tools.package/ToolRegistry.class/instance/registration/remove_.st
R System-Tools.package/ToolRegistry.class/instance/testing/hasToolNamed_.st
R System-Tools.package/ToolRegistry.class/instance/tools/inspector.st
R System-Tools.package/ToolRegistry.class/instance/tools/transcript.st
R System-Tools.package/ToolShortcuts.class/README.md
R System-Tools.package/ToolShortcuts.class/class/initializing/initialize.st
R System-Tools.package/ToolShortcuts.class/class/testing/isGlobalCategory.st
R System-Tools.package/ToolShortcuts.class/definition.st
R 
System-Tools.package/ToolShortcuts.class/instance/keymaps/openMonticelloPackageBrowser.st
R System-Tools.package/ToolShortcuts.class/instance/keymaps/openSettings.st
R 
System-Tools.package/ToolShortcuts.class/instance/keymaps/openSystemBrowser.st
R 
System-Tools.package/ToolShortcuts.class/instance/keymaps/openTranscript.st
R 
System-Tools.package/ToolShortcuts.class/instance/keymaps/openUnitTestRunner.st
R System-Tools.package/ToolShortcuts.class/instance/keymaps/openWorkspace.st
R System-Tools.package/ToolShortcuts.class/instance/keymaps/saveImage.st
R System-Tools.package/extension/SmalltalkImage/instance/resetTools.st
R System-Tools.package/extension/SmalltalkImage/instance/tools.st
A Tool-Base.package/ToolRegistry.class/README.md
A Tool-Base.package/ToolRegistry.class/definition.st
A 
Tool-Base.package/ToolRegistry.class/instance/convenience-inspecting/inspectorClass.st
A Tool-Base.package/ToolRegistry.class/instance/handling 
DNU/doesNotUnderstand_.st
A Tool-Base.package/ToolRegistry.class/instance/initialization/initialize.st
A 
Tool-Base.package/ToolRegistry.class/instance/initialize-release/initDefaultToolSet.st
A Tool-Base.package/ToolRegistry.class/instance/menu/menuItems.st
A Tool-Base.package/ToolRegistry.class/instance/menu/openClassBrowser.st
A Tool-Base.package/ToolRegistry.class/instance/menu/openFileList.st
A 
Tool-Base.package/ToolRegistry.class/instance/menu/openMonticelloBrowser.st
A Tool-Base.package/ToolRegistry.class/instance/menu/openProcessBrowser.st
A Tool-Base.package/ToolRegistry.class/instance/menu/openRecentChangesLog.st
A Tool-Base.package/ToolRegistry.class/instance/menu/openTestRunner.st
A Tool-Base.package/ToolRegistry.class/instance/menu/openTranscript.st
A Tool-Base.package/ToolRegistry.class/instance/menu/openWorkspace.st
A 
Tool-Base.package/ToolRegistry.class/instance/misc/browseDirectToolReferences.st
A 
Tool-Base.package/ToolRegistry.class/instance/misc/codeCompletionAround_textMorph_keyStroke_.st
A Tool-Base.package/ToolRegis

Re: [Pharo-dev] Merging Transcript and Tool-Transcript

2014-07-23 Thread Ben Coman

stepharo wrote:

Hi pavel

can you explain to me why this would bring a dependency that is not 
already included by Transcript?

Transcript depends on ThreadSafeTranscriptPluggableTextMorph



https://pharo.fogbugz.com/default.asp?13627#105924

Stef


btw, note that ThreadSafeTranscriptPluggableTextMorph was a "least 
impact / quick" fix to a bug encountered in the latter stages of Pharo 3 
Beta. Its not necessarily the way to go for Pharo 4. I guess it would 
get review as part of any move from PluggableTextMorph to Rubric or TxText.

cheers -ben



Re: [Pharo-dev] Merging Transcript and Tool-Transcript

2014-07-23 Thread Pavel Krivanek
Hi Stef,

ThreadSafeTranscript is not the UI class. It is present in the minimal
image and it's connected to the STDOUT by default. So it makes sense to
split Transcript as a general output stream and a Morphic tool showing its
content.

Cheers,
-- Pavel


2014-07-23 15:08 GMT+02:00 stepharo :

> Hi pavel
>
> can you explain to me why this would bring a dependency that is not
> already included by Transcript?
> Transcript depends on ThreadSafeTranscriptPluggableTextMorph
>
>
>
> https://pharo.fogbugz.com/default.asp?13627#105924
>
> Stef
>
>


Re: [Pharo-dev] Project Watch on SThub

2014-07-23 Thread mikefilonov
Hi,

I definitely want to help. How can I join in?



--
View this message in context: 
http://forum.world.st/Project-Watch-on-SThub-tp4769546p4769598.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.



[Pharo-dev] Merging Transcript and Tool-Transcript

2014-07-23 Thread stepharo

Hi pavel

can you explain to me why this would bring a dependency that is not 
already included by Transcript?

Transcript depends on ThreadSafeTranscriptPluggableTextMorph



https://pharo.fogbugz.com/default.asp?13627#105924

Stef



Re: [Pharo-dev] STON questions

2014-07-23 Thread stepharo

Now christophe went on vacation.

On 23/7/14 14:24, Sven Van Caekenberghe wrote:

On 23 Jul 2014, at 14:13, stepharo  wrote:


Now we should probably not haeve an explicit reference to the dependency class

In STON it is possible to use an 'external name' for a class, see #stonName and 
#lookupClass: - that way there is no explicit dependency on a concrete class.







[Pharo-dev] Package Dependencies Analysis : new features

2014-07-23 Thread Baptiste Quide
Hello Pharos Users, 

Since the first release of Package Dependencies Analysis, here is a summary of 
improvements : 

- tool is available in World Menu (Tools > Package Dependencies Browser) : 
choose your packages and browse dependencies. 
- add/remove packages into the analysis. 
- you can refresh the current analysis manually (for instance if you change a 
piece of code to remove/add dependency) 
- filter the packages displaying by name 
- button "find cycles" allows to find all cycles in the system where the 
selected packages in the tree are (it could take a while the first time you 
click) 
- contextual menu (right click) to browse scoped dependencies or find cycles 
among the selected packages in the tree 

Then, in the window displaying cycles among packages : 

- only dependencies among packages in the cycle are displaying (no outgoing 
dependencies) 
- packages appear by order (if you see aCycle : A, B, C, the cycle is A -> B -> 
C -> A) 

See more details : http://www.baptistequide.fr/packagedependencies.php 

Regards, 

Baptiste 


[Pharo-dev] [pharo-project/pharo-core] 107acb: 40118

2014-07-23 Thread GitHub
  Branch: refs/heads/4.0
  Home:   https://github.com/pharo-project/pharo-core
  Commit: 107acb5de9d085c8d9091c47dd352d37425eefd6
  
https://github.com/pharo-project/pharo-core/commit/107acb5de9d085c8d9091c47dd352d37425eefd6
  Author: Jenkins Build Server 
  Date:   2014-07-23 (Wed, 23 Jul 2014)

  Changed paths:
M Collections-Strings.package/Symbol.class/class/instance 
creation/findInterned_.st
M Graphics-Fonts.package/StandardFonts.class/class/font 
accessing/printStandardSystemFonts.st
M 
Morphic-Examples.package/WidgetExamples.class/instance/examples/exampleWindowWithToolbars.st
M 
Network-Mail.package/MailMessage.class/instance/printing%2Fformatting/viewBody.st
A Pharo-Help.package/PharoEnvironmentHelp.class/README.md
A 
Pharo-Help.package/PharoEnvironmentHelp.class/class/help-text/wikiStyleHelp.st
A Pharo-Help.package/PharoEnvironmentHelp.class/definition.st
M Polymorph-Widgets.package/extension/SystemWindow/instance/showAbout.st
A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
scripts/script118.st
A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
updates/update40118.st
M 
ScriptLoader40.package/ScriptLoader.class/instance/public/commentForCurrentUpdate.st
R 
ScriptLoader40.package/ScriptLoader.class/instance/utils/openWindow_label_.st
M 
Spec-Inspector.package/EyeInspector.class/instance/accessing/selectedElement.st
M Text-Edition.package/TextEditor.class/instance/menu 
messages/compareToClipboard.st
M 
Tool-Explorer.package/ObjectExplorer.class/instance/menus/codePaneMenu_shifted_.st
M Tool-Spotlight.package/Spotlight.class/definition.st
A Tool-Spotlight.package/Spotlight.class/instance/accessing/contents.st
A Tool-Spotlight.package/Spotlight.class/instance/accessing/contents_.st
R Tool-Spotlight.package/Spotlight.class/instance/accessing/model.st
M 
Tool-Spotlight.package/Spotlight.class/instance/initialize/createSearchMorph.st
M Tool-Spotlight.package/Spotlight.class/instance/opening/accepted.st
M Tool-Spotlight.package/Spotlight.class/instance/private/resolveSymbol_.st

  Log Message:
  ---
  40118
13654 Pressing Enter in EyeInspector gives MNU: TextModel>>asText
https://pharo.fogbugz.com/f/cases/13654

13653 Add Additional Basic Pharo help to the System Help browser
https://pharo.fogbugz.com/f/cases/13653

13660 reduce references to StringHolder
https://pharo.fogbugz.com/f/cases/13660

13655 System-Localization and Gettext have classes with identical names
https://pharo.fogbugz.com/f/cases/13655

http://files.pharo.org/image/40/40118.zip




[Pharo-dev] [pharo-project/pharo-core]

2014-07-23 Thread GitHub
  Branch: refs/tags/40118
  Home:   https://github.com/pharo-project/pharo-core


Re: [Pharo-dev] STON questions

2014-07-23 Thread Sven Van Caekenberghe

On 23 Jul 2014, at 14:13, stepharo  wrote:

> Now we should probably not haeve an explicit reference to the dependency class

In STON it is possible to use an 'external name' for a class, see #stonName and 
#lookupClass: - that way there is no explicit dependency on a concrete class.


Re: [Pharo-dev] STON questions

2014-07-23 Thread Sven Van Caekenberghe
Some explicit examples would probably help.

On 23 Jul 2014, at 14:13, stepharo  wrote:

> I do not have the exact points that christophe wants. Now he wants to store 
> package dependencies into package manifest.
> And I told him to use STON. Now we should probably not haeve an explicit 
> reference to the dependency class
> 
> Stef
> 
>> Hi Christophe,
>> 
>> Sorry for the delay, I was on holiday.
>> 
>> On 15 Jul 2014, at 14:46, Christophe Demarey  
>> wrote:
>> 
>>> Hi,
>>> 
>>> I read the STON paper and the STON chapter in EnterprisePharo but I did not 
>>> find answers to some questions:
>>> • how do you tell STON to not serialize some variables of an object?
>> To achieve that you have to write your own encoding by overwriting #stonOn: 
>> and #fromSton: (see implementors).
>> 
>>> • is there a way to avoid the class tag? What I mean is that I would 
>>> like a synthetic STON String. If a STON entry has a class tag, STON knows 
>>> which class to instantiate. This class may also know which classes to 
>>> instantiate for its i-var. In this case, the class tag may be omitted. 
>>> Maybe I should redefine fromSton;, but in this case,  is it possible to 
>>> avoid a manual parsing of the string?
>> No, that is not possible. I fail to see how this would be useful or needed, 
>> but maybe I just don't understand your question.
>> 
>>> • is there a way to do an alias for an i-var (just like for the class 
>>> name)?
>> To achieve that you have to write your own encoding by overwriting #stonOn: 
>> and #fromSton: (see implementors).
>> 
>>> • is there a way to skip the serialization of an i-var if its value is 
>>> nil (or an empty collection)?
>> Overwrite #stonShouldWriteNilInstVars for your object to return true. For 
>> empty collections there is no provision.
>> 
>>> Regards,
>>> Christophe.
>> Sven
>> 
>> 
>> 
>> 
> 
> 




Re: [Pharo-dev] STON questions

2014-07-23 Thread stepharo
I do not have the exact points that christophe wants. Now he wants to 
store package dependencies into package manifest.
And I told him to use STON. Now we should probably not haeve an explicit 
reference to the dependency class


Stef


Hi Christophe,

Sorry for the delay, I was on holiday.

On 15 Jul 2014, at 14:46, Christophe Demarey  
wrote:


Hi,

I read the STON paper and the STON chapter in EnterprisePharo but I did not 
find answers to some questions:
• how do you tell STON to not serialize some variables of an object?

To achieve that you have to write your own encoding by overwriting #stonOn: and 
#fromSton: (see implementors).


• is there a way to avoid the class tag? What I mean is that I would 
like a synthetic STON String. If a STON entry has a class tag, STON knows which 
class to instantiate. This class may also know which classes to instantiate for 
its i-var. In this case, the class tag may be omitted. Maybe I should redefine 
fromSton;, but in this case,  is it possible to avoid a manual parsing of the 
string?

No, that is not possible. I fail to see how this would be useful or needed, but 
maybe I just don't understand your question.


• is there a way to do an alias for an i-var (just like for the class 
name)?

To achieve that you have to write your own encoding by overwriting #stonOn: and 
#fromSton: (see implementors).


• is there a way to skip the serialization of an i-var if its value is 
nil (or an empty collection)?

Overwrite #stonShouldWriteNilInstVars for your object to return true. For empty 
collections there is no provision.


Regards,
Christophe.

Sven









Re: [Pharo-dev] STON questions

2014-07-23 Thread Sven Van Caekenberghe
Hi Christophe,

Sorry for the delay, I was on holiday.

On 15 Jul 2014, at 14:46, Christophe Demarey  
wrote:

> Hi,
> 
> I read the STON paper and the STON chapter in EnterprisePharo but I did not 
> find answers to some questions:
>   • how do you tell STON to not serialize some variables of an object?

To achieve that you have to write your own encoding by overwriting #stonOn: and 
#fromSton: (see implementors).

>   • is there a way to avoid the class tag? What I mean is that I would 
> like a synthetic STON String. If a STON entry has a class tag, STON knows 
> which class to instantiate. This class may also know which classes to 
> instantiate for its i-var. In this case, the class tag may be omitted. Maybe 
> I should redefine fromSton;, but in this case,  is it possible to avoid a 
> manual parsing of the string?

No, that is not possible. I fail to see how this would be useful or needed, but 
maybe I just don't understand your question.

>   • is there a way to do an alias for an i-var (just like for the class 
> name)?

To achieve that you have to write your own encoding by overwriting #stonOn: and 
#fromSton: (see implementors).

>   • is there a way to skip the serialization of an i-var if its value is 
> nil (or an empty collection)?

Overwrite #stonShouldWriteNilInstVars for your object to return true. For empty 
collections there is no provision.

> Regards,
> Christophe.

Sven




Re: [Pharo-dev] Project Watch on SThub

2014-07-23 Thread stepharo
THub allows one to "watch" a project, meaning one can get infos on the 
commits and history of watched projects under in his own home section in 
"Recent watched events". Unfortunately it does not update, always 
displays events from 2013 and either it is my profile or a general bug 
in STHub... Any comments?


Do not expect much work around STHub since nicolas moved to another job 
and we do not have the resources to do that

locally. if somebody wants to help it would be a great help.

Stef




Re: [Pharo-dev] transformmorph and submorph bounds

2014-07-23 Thread Thierry Goubier
2014-07-23 12:09 GMT+02:00 Tudor Girba :

> Hi,
>
> Ahh. I found it. The proper selector should not be submorphBounds but
> positionInWorld. This one works properly.
>

boundsInWorld :)

Thierry


[Pharo-dev] Coverage testing options

2014-07-23 Thread Pavel Krivanek
Hi,

what are the current working options for the tests coverage reporting? For
testing of the minimal image I tried to use the standard code simulator but
as you may expect the results are not perfect (it cannot hanlde tests that
use should:rise, it's very slow etc.)

https://ci.inria.fr/pharo/view/4.0-Bootstrap/job/Pharo-4.0-Bootstrap-Step-2.2-Simulated-Coverage-Test/

Cheers,
-- Pavel


[Pharo-dev] Project Watch on SThub

2014-07-23 Thread Torsten Bergmann
STHub allows one to "watch" a project, meaning
one can get infos on the commits and history of watched 
projects under in his own home section in "Recent watched events".

Unfortunately it does not update, always displays events from
2013 and either it is my profile or a general bug in STHub...

Any comments?
 









[Pharo-dev] [ANN] ODBC package on STHub

2014-07-23 Thread Torsten Bergmann
The ODBC package is now migrated from SqueakSource to SmalltalkHub 
and available under
  
   http://smalltalkhub.com/#!/~PharoExtras/ODBC

I also cleaned up a little bit and made some stuff working
on Pharo 3.0 again. You can now als easily load it from the config 
browser.

Repo is open for contributions. Have fun.

Thanks
T.




Re: [Pharo-dev] transformmorph and submorph bounds

2014-07-23 Thread Tudor Girba
Hi,


On Wed, Jul 23, 2014 at 11:45 AM, Thierry Goubier  wrote:

>
>
>
> 2014-07-23 11:10 GMT+02:00 Tudor Girba :
>
>> Hi,
>>
>>
>>
>>
>>
>>> This seems correct to me: a transformMorph is the one which shift its
>>> contents (and reset the origin to its top left corner ?).
>>>
>>
>> Not really. The contract of submorphBounds should be that it returns an
>> absolute coordinate, as far as I understand.
>>
>
> In owner coordinates it says. (TransformMorph)
>
> However, it effectively returns a 0@0 origin.
>
>
>>
>>
>>> Why do you use a TransformMorph there?
>>>
>>
>> It is used for example in ScrollPane. This means that if you embed a
>> TextMorph inside a ScrollPane, you will have the same problem with
>> completion:
>>
>> scrollPane := ScrollPane new.
>> pasteUpMorph := PasteUpMorph new.
>> scrollPane scroller addMorph: pasteUpMorph.
>> scrollPane openInWindow top: 100; left: 100.
>>
>> pasteUpMorph submorphBounds "(0@0) corner: (50@40)"
>>
>
> Yes.
>
> What do you want to do about it? Rewrite a scroll pane in a different way?
> Or make sure that everything which creates over-morphs ask for global
> coordinates?
>

Ahh. I found it. The proper selector should not be submorphBounds but
positionInWorld. This one works properly.



> I guess this has also something to do with the glamour bug inside tabs, no?
>


Not inside tabs, but inside the a Finder or a Pager. Now, completion work
properly!

Cheers,
Doru


> Thierry
>
>

-- 
www.tudorgirba.com

"Every thing has its own flow"


Re: [Pharo-dev] SmartBreakpoints alpha release

2014-07-23 Thread Tudor Girba
Just a point. We should definitely not throw away TxText :).

My message was that we should stop investing in the TextMorph. I suggested
Rubric because it is available now and can be integrated with visible
improvements over what exists.

But, TxText should be the future. Perhaps we can already commit to it for
Pharo 4.0 and then we make it a goal for the whole community to get it
finished. I would be supportive for such a decision.

Doru


On Wed, Jul 23, 2014 at 11:46 AM, Tudor Girba  wrote:

> Hi,
>
> Not yet :(. It's the first thing after releasing the current
> implementation of GT and Moose.
>
> Doru
>
>
> On Wed, Jul 23, 2014 at 11:22 AM, stepharo  wrote:
>
>>
>> On 22/7/14 14:43, Tudor Girba wrote:
>>
>> First of all: Excellent job!
>>
>>  About the editor: I would indeed suggest adopting Rubric as a solution
>> for now (until the new Text widget comes around). We use it extensively in
>> GT and I can attest that it is better than PluggableTextMorph.
>>
>>
>> doru did you loaded TxText?
>> and TxViewContainer example2
>>
>>
>>  Doru
>>
>>
>> On Tue, Jul 22, 2014 at 2:05 PM, Marcus Denker 
>> wrote:
>>
>>>
>>>  On 22 Jul 2014, at 13:57, stepharo  wrote:
>>>
>>>
>>> On 22/7/14 10:41, Clara Allende wrote:
>>>
>>>  Hi guys!
>>> Finally the metaLink-based breakpoints are "ready". I have made some
>>> explanations on my blog
>>> ,
>>> but basically now you have the option "break here" in SmartSuggestions menu.
>>> So it's still experimental, and even though I have some tests, it would
>>> be nice if you can test it, because I can't cover all possible use cases :)
>>> And any feedback is most appreciated!
>>>
>>>  Specially, since eventually we will have several kinds of breakpoints,
>>> I would like to ask in which way would you like to choose them (a pop menu?
>>> a sublist?)
>>>
>>>  Thanks in advance!
>>>
>>>  PS: The script for downloading the code is in the blog post :P
>>> PS2: After talking with Anne and Baptiste, things that are not there
>>> *yet* but I want to have:
>>> * a highlight on the method/messageSend where the breakpoint is inserted
>>> * expose persistent breakpoints (it is there but the default is to halt
>>> once)
>>> * line breakpoints (not sure when, for now the breakpoints are AST based)
>>> * integration with TextEditor, once it is done ;)
>>>
>>>
>>> Can you grab igor and sit with him to get this point?
>>>
>>>   Another idea would be to use the editor in Moose (Rubrik?).
>>> Better a solution now than to wait forever for perfection…
>>>
>>>  Marcus
>>>
>>>
>>
>>
>>  --
>> www.tudorgirba.com
>>
>>  "Every thing has its own flow"
>>
>>
>>
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
>



-- 
www.tudorgirba.com

"Every thing has its own flow"


Re: [Pharo-dev] SmartBreakpoints alpha release

2014-07-23 Thread Tudor Girba
Hi,

Not yet :(. It's the first thing after releasing the current implementation
of GT and Moose.

Doru


On Wed, Jul 23, 2014 at 11:22 AM, stepharo  wrote:

>
> On 22/7/14 14:43, Tudor Girba wrote:
>
> First of all: Excellent job!
>
>  About the editor: I would indeed suggest adopting Rubric as a solution
> for now (until the new Text widget comes around). We use it extensively in
> GT and I can attest that it is better than PluggableTextMorph.
>
>
> doru did you loaded TxText?
> and TxViewContainer example2
>
>
>  Doru
>
>
> On Tue, Jul 22, 2014 at 2:05 PM, Marcus Denker 
> wrote:
>
>>
>>  On 22 Jul 2014, at 13:57, stepharo  wrote:
>>
>>
>> On 22/7/14 10:41, Clara Allende wrote:
>>
>>  Hi guys!
>> Finally the metaLink-based breakpoints are "ready". I have made some
>> explanations on my blog
>> ,
>> but basically now you have the option "break here" in SmartSuggestions menu.
>> So it's still experimental, and even though I have some tests, it would
>> be nice if you can test it, because I can't cover all possible use cases :)
>> And any feedback is most appreciated!
>>
>>  Specially, since eventually we will have several kinds of breakpoints,
>> I would like to ask in which way would you like to choose them (a pop menu?
>> a sublist?)
>>
>>  Thanks in advance!
>>
>>  PS: The script for downloading the code is in the blog post :P
>> PS2: After talking with Anne and Baptiste, things that are not there
>> *yet* but I want to have:
>> * a highlight on the method/messageSend where the breakpoint is inserted
>> * expose persistent breakpoints (it is there but the default is to halt
>> once)
>> * line breakpoints (not sure when, for now the breakpoints are AST based)
>> * integration with TextEditor, once it is done ;)
>>
>>
>> Can you grab igor and sit with him to get this point?
>>
>>   Another idea would be to use the editor in Moose (Rubrik?).
>> Better a solution now than to wait forever for perfection…
>>
>>  Marcus
>>
>>
>
>
>  --
> www.tudorgirba.com
>
>  "Every thing has its own flow"
>
>
>


-- 
www.tudorgirba.com

"Every thing has its own flow"


Re: [Pharo-dev] transformmorph and submorph bounds

2014-07-23 Thread Thierry Goubier
2014-07-23 11:10 GMT+02:00 Tudor Girba :

> Hi,
>
>
>
>
>
>> This seems correct to me: a transformMorph is the one which shift its
>> contents (and reset the origin to its top left corner ?).
>>
>
> Not really. The contract of submorphBounds should be that it returns an
> absolute coordinate, as far as I understand.
>

In owner coordinates it says. (TransformMorph)

However, it effectively returns a 0@0 origin.


>
>
>> Why do you use a TransformMorph there?
>>
>
> It is used for example in ScrollPane. This means that if you embed a
> TextMorph inside a ScrollPane, you will have the same problem with
> completion:
>
> scrollPane := ScrollPane new.
> pasteUpMorph := PasteUpMorph new.
> scrollPane scroller addMorph: pasteUpMorph.
> scrollPane openInWindow top: 100; left: 100.
>
> pasteUpMorph submorphBounds "(0@0) corner: (50@40)"
>

Yes.

What do you want to do about it? Rewrite a scroll pane in a different way?
Or make sure that everything which creates over-morphs ask for global
coordinates?

I guess this has also something to do with the glamour bug inside tabs, no?

Thierry


Re: [Pharo-dev] SmartBreakpoints alpha release

2014-07-23 Thread stepharo


On 22/7/14 14:43, Tudor Girba wrote:

First of all: Excellent job!

About the editor: I would indeed suggest adopting Rubric as a solution 
for now (until the new Text widget comes around). We use it 
extensively in GT and I can attest that it is better than 
PluggableTextMorph.


doru did you loaded TxText?
and TxViewContainer example2


Doru


On Tue, Jul 22, 2014 at 2:05 PM, Marcus Denker > wrote:



On 22 Jul 2014, at 13:57, stepharo mailto:steph...@free.fr>> wrote:



On 22/7/14 10:41, Clara Allende wrote:

Hi guys!
Finally the metaLink-based breakpoints are "ready". I have made
some explanations on my blog

,
but basically now you have the option "break here" in
SmartSuggestions menu.
So it's still experimental, and even though I have some tests,
it would be nice if you can test it, because I can't cover all
possible use cases :)
And any feedback is most appreciated!

Specially, since eventually we will have several kinds of
breakpoints, I would like to ask in which way would you like to
choose them (a pop menu? a sublist?)

Thanks in advance!

PS: The script for downloading the code is in the blog post :P
PS2: After talking with Anne and Baptiste, things that are not
there *yet* but I want to have:
* a highlight on the method/messageSend where the breakpoint is
inserted
* expose persistent breakpoints (it is there but the default is
to halt once)
* line breakpoints (not sure when, for now the breakpoints are
AST based)
* integration with TextEditor, once it is done ;)


Can you grab igor and sit with him to get this point?

Another idea would be to use the editor in Moose (Rubrik?).
Better a solution now than to wait forever for perfection…

Marcus




--
www.tudorgirba.com 

"Every thing has its own flow"




Re: [Pharo-dev] SmartBreakpoints alpha release

2014-07-23 Thread stepharo



Can you grab igor and sit with him to get this point?

Another idea would be to use the editor in Moose (Rubrik?).
Better a solution now than to wait forever for perfection…


We can also abandon TxText but after we should not cry that it does not 
scale (be prepared
to fork a lot of processes in the background). But I think that it would 
be stupid so we should push igor to deliver.

And if I'm alone pushing then this is not fun.

Have a look at TxViewContainer example2

Stef



Marcus





Re: [Pharo-dev] First attempt at submitting a simple contribution

2014-07-23 Thread stepharo

Thanks tim.

Usually the monkey will tag your entry to ready to integrate and we 
harvest them.
After this is also nice to write a comment saying that your change is ok 
in the latest image and we will integrate.
We would like to change the integration process but we are not yet 
there. Git is needed first.
We are getting more integrator: clement (on the compiler domain), 
nicolai and this is good. Sven is integrating changes related to the network

Stef

On 22/7/14 17:48, Tim Mackinnon wrote:

Hi guys - I’ve tried to submit a very simple contribution for Pharo. I followed 
the steps in the video about submitting on Fogbugz - although I wonder if I 
missed a step by not asking for commit rights to the Pharo40Inbox? As I already 
had a smalltalk hub account  - it asked for that name and password and it 
didn’t complain when I entered them and pressed accept in Pharo.

The issue is: 13653

Its a very simple contribution, just a class with some wiki help and the wiki 
method pragma to get it to appear in the System help.

As I didn’t know if there was already a class that might better hold this text, 
I created a new one - but happy to move it onto something else if there is 
somewhere obvious (or maybe its cleaner that it lives in its own place?).

Tim






Re: [Pharo-dev] future of Nautilus (the non package tree version)

2014-07-23 Thread stepharo

Yes but I think that it is necessary.
What esteban introduced was nice: a design with less conditional.

Stef


On 22 Jul 2014, at 14:26, Nicolai Hess mailto:nicolaih...@web.de>> wrote:


From time to time it happens that we introduce bugs in the "old"
Nautilus
browser if we do changes for the default browser
(PackageTreeNautilus)
For example:
13640 
no menu on package pane in Nautilus (the non package tree nautilus)

Is a working "old" Nautilus on high priority? Or should we consider
PackageTreeNautilus as a replacement for Nautilus?


yes.
I made the PackageTreeNautilus as a replacement, but an extension
because I was using Nautilus to develop Nautilus.
Now we should merge it.


This might be a big effort, but this also gives us the opportunity to 
clean up.




Esteban



nicolai









[Pharo-dev] [pharo-project/pharo-core] 0c052f: 40117

2014-07-23 Thread GitHub
  Branch: refs/heads/4.0
  Home:   https://github.com/pharo-project/pharo-core
  Commit: 0c052fbe84db7ec2db77bdac9ea4d8448638c2c4
  
https://github.com/pharo-project/pharo-core/commit/0c052fbe84db7ec2db77bdac9ea4d8448638c2c4
  Author: Jenkins Build Server 
  Date:   2014-07-23 (Wed, 23 Jul 2014)

  Changed paths:
R Kernel.package/CompiledMethod.class/instance/accessing/searchForClass.st
R 
Kernel.package/CompiledMethod.class/instance/accessing/searchForSelector.st
R KernelTests.package/CompiledMethodTest.class/instance/tests - 
accessing/testSearchForClass.st
R KernelTests.package/CompiledMethodTest.class/instance/tests - 
accessing/testSearchForSelector.st
M 
Refactoring-Critics.package/RBConsistencyCheckRule.class/instance/accessing/name.st
M 
Refactoring-Critics.package/RBConsistencyCheckRule.class/instance/initialization/initialize.st
A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
scripts/script117.st
A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
updates/update40117.st
M 
ScriptLoader40.package/ScriptLoader.class/instance/public/commentForCurrentUpdate.st

  Log Message:
  ---
  40117


13656 remove CompiledMethod searchForClass and searchForSelector
https://pharo.fogbugz.com/f/cases/13656


13657 Remove at: check from RBConsistencyCheckRule
https://pharo.fogbugz.com/f/cases/13657

http://files.pharo.org/image/40/40117.zip




Re: [Pharo-dev] Doubt in Pharo

2014-07-23 Thread stepharo

Hi Dokania

I hope that you do not doubt that Pharo is a cool system :)

Hello,

I am creating an Object Relational Mapper in pharo using sqlite.

While creating database I am using a dictionary for columns of Database. This 
gives me Keys as column name and values as Data type of those.

So suppose Employee is the the table name, with ID->Integer, Name->Text, 
Salary->Float.

emp:= Employee new.
Now emp is a row of table, so for each row user has to create instance of 
Employee and then feed values to it. Later on he can pass message insert query 
to emp.

So I was creating this dictionary for column at the instance side 
initialization of Employee.

My instructor suggested to do that in class side initialization,

My Doubts are:

1. Why should we do class side initialization instead of instance side 
initialization.


Because class side initialization is executing once when the class is 
loaded in memory.
And I imagine that you do not want to change and execute the mapping 
declaration for every single

instance you will create. isn't?

So

Object subclass: #Employee
instanceVariableNames: ''
classVariableNames: 'Mappings'
category: 'Foo-Model'


Employee class>>initialize

Mappings := { #ID->Integer . #Name->Text. #Salary->Float } 
asDictionary


makes a lot of sense.

or

Object subclass: #Employee
instanceVariableNames: ''
classVariableNames: ''
category: 'Foo-Model'

Employee class
instanceVariableNames: 'mappings'

Employee class>>initialize

mappings := { #ID->Integer . #Name->Text. #Salary->Float } 
asDictionary


Read pharo by example to understand the difference between class 
variable (Shared Variable) and class instance variables


2. Could you please refer me to the link which explains how to do class side 
initialization. Because when I do Employee new, I see only instance side 
initialization is being called.


Employee initialize

you send a message to the CLASS itself to get **ITS** initialize method 
execute. Normally when you load the class its initialize method is 
automatically executed.


When you do Employee new
=> Employee basicNew initialize
=> anEmployee initialize
=> anInitializedEmployee




Thanks,
Harshit








Re: [Pharo-dev] transformmorph and submorph bounds

2014-07-23 Thread Tudor Girba
Hi,



On Wed, Jul 23, 2014 at 9:52 AM, Thierry Goubier 
wrote:

>
>
>
> 2014-07-23 8:00 GMT+02:00 Tudor Girba :
>
> Hi,
>>
>> In GTInspector we use a TransformMorph inside the pager morph. It works
>> fine, but spawning completion from a text morph that is placed inside this
>> transform morph, the completion morphs appears in the wrong place.
>>
>> The issue comes from submorphBounds apparently not being right (this is
>> what the completion morph relies on).
>>
>> Here is a simpler example, to exemplify what I am talking about:
>>
>> circle := CircleMorph new.
>> morph := TransformMorph new.
>> morph addMorph: circle.
>> morph top: 100.
>> morph left: 100.
>> morph submorphBounds. "==> (100@100) corner: (140@140)"
>> circle submorphBounds. "==> (0@0) corner: (40@40)"
>>
>
> This seems correct to me: a transformMorph is the one which shift its
> contents (and reset the origin to its top left corner ?).
>

Not really. The contract of submorphBounds should be that it returns an
absolute coordinate, as far as I understand.


> Why do you use a TransformMorph there?
>

It is used for example in ScrollPane. This means that if you embed a
TextMorph inside a ScrollPane, you will have the same problem with
completion:

scrollPane := ScrollPane new.
pasteUpMorph := PasteUpMorph new.
scrollPane scroller addMorph: pasteUpMorph.
scrollPane openInWindow top: 100; left: 100.

pasteUpMorph submorphBounds "(0@0) corner: (50@40)"

Cheers,
Doru



> Thierry
>
>
>> Ideally, "circle submorphBounds" should start at 100@100. Is this a bug,
>> or am I doing something wrong?
>>
>> Cheers,
>> Doru
>>
>> --
>> www.tudorgirba.com
>>
>> "Every thing has its own flow"
>>
>
>


-- 
www.tudorgirba.com

"Every thing has its own flow"


[Pharo-dev] [pharo-project/pharo-core]

2014-07-23 Thread GitHub
  Branch: refs/tags/40117
  Home:   https://github.com/pharo-project/pharo-core


Re: [Pharo-dev] we need you on http://pharo.org/about

2014-07-23 Thread Ben Coman




Serge Stinckwich wrote:

  Yes, if you can add me also ;-)
Maybe not a great contributors on Pharo-core, but I contribute some
tests, bug reports.
  


Thats all an important part of an open source project. Many hands


  
Regards,

On Tue, Jul 22, 2014 at 10:16 AM, stepharo  wrote:
  
  
hi

Are you on http://pharo.org/about? if not please do it because this is so
great to
see all the pharo contributors.

Stef



  
  


  







[Pharo-dev] [pharo-project/pharo-core] 7c2532: 40116

2014-07-23 Thread GitHub
  Branch: refs/heads/4.0
  Home:   https://github.com/pharo-project/pharo-core
  Commit: 7c25328f3570b7ecd38a06d528845ab02f87edd8
  
https://github.com/pharo-project/pharo-core/commit/7c25328f3570b7ecd38a06d528845ab02f87edd8
  Author: Jenkins Build Server 
  Date:   2014-07-23 (Wed, 23 Jul 2014)

  Changed paths:
A 
Graphics-Fonts.package/extension/BitBlt/instance/basicDisplayString_from_to_at_strikeFont_kern_.st
A 
Graphics-Fonts.package/extension/BitBlt/instance/displayString_from_to_at_strikeFont_kern_.st
R 
Graphics-Primitives.package/BitBlt.class/instance/copying/basicDisplayString_from_to_at_strikeFont_kern_.st
R 
Graphics-Primitives.package/BitBlt.class/instance/copying/displayString_from_to_at_strikeFont_kern_.st
A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
scripts/script116.st
A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
updates/update40116.st
M 
ScriptLoader40.package/ScriptLoader.class/instance/public/commentForCurrentUpdate.st
R System-CommandLine.package/VTermInputDriver.class/README.md
R System-CommandLine.package/VTermInputDriver.class/class/instance 
creation/on_.st
R System-CommandLine.package/VTermInputDriver.class/class/instance 
creation/stdIn.st
R System-CommandLine.package/VTermInputDriver.class/definition.st
R 
System-CommandLine.package/VTermInputDriver.class/instance/accessing/handler_.st
R 
System-CommandLine.package/VTermInputDriver.class/instance/accessing/inStream_.st
R 
System-CommandLine.package/VTermInputDriver.class/instance/initialization/initialize.st
R 
System-CommandLine.package/VTermInputDriver.class/instance/initialize-release/initializeCSI_.st
R 
System-CommandLine.package/VTermInputDriver.class/instance/initialize-release/initializeNormal_.st
R 
System-CommandLine.package/VTermInputDriver.class/instance/initialize-release/initializeSS3_.st
R 
System-CommandLine.package/VTermInputDriver.class/instance/private/fail_in_.st
R 
System-CommandLine.package/VTermInputDriver.class/instance/reading/continueReadCSINumber_.st
R System-CommandLine.package/VTermInputDriver.class/instance/reading/read.st
R 
System-CommandLine.package/VTermInputDriver.class/instance/reading/readC1.st
R 
System-CommandLine.package/VTermInputDriver.class/instance/reading/readCSI.st
R 
System-CommandLine.package/VTermInputDriver.class/instance/reading/readSS3.st
R 
System-CommandLine.package/VTermInputDriver.class/instance/testing/closed.st
A Tool-Transcript.package/extension/ThreadSafeTranscript/class/examples.st
A 
Tool-Transcript.package/extension/ThreadSafeTranscript/class/examplesConcurrent.st
A 
Tool-Transcript.package/extension/ThreadSafeTranscript/class/examplesForegroundUpdate.st
A 
Tool-Transcript.package/extension/ThreadSafeTranscript/class/menuCommandOn_.st
A 
Tool-Transcript.package/extension/ThreadSafeTranscript/instance/codePaneMenu_shifted_.st
M Traits.package/TClass.class/instance/subclass creation - 
slots/subclass_layout_slots_classVariables_poolDictionaries_category_.st
M Traits.package/TClass.class/instance/subclass creation - 
slots/subclass_slots_classVariables_poolDictionaries_category_.st
M Traits.package/TClass.class/instance/subclass creation - 
slots/subclass_uses_layout_slots_classVariables_poolDictionaries_category_.st
M Traits.package/TClass.class/instance/subclass creation - 
slots/subclass_uses_slots_classVariables_poolDictionaries_category_.st
R Transcript.package/ThreadSafeTranscript.class/class/examples/examples.st
R 
Transcript.package/ThreadSafeTranscript.class/class/examples/examplesConcurrent.st
R 
Transcript.package/ThreadSafeTranscript.class/class/examples/examplesForegroundUpdate.st
R Transcript.package/ThreadSafeTranscript.class/class/world 
menu/menuCommandOn_.st
R 
Transcript.package/ThreadSafeTranscript.class/instance/menu/codePaneMenu_shifted_.st

  Log Message:
  ---
  40116
13648 remove VTermInputDriver
https://pharo.fogbugz.com/f/cases/13648

13651 move font related methods in BitBlt to Graphics-Fonts package
https://pharo.fogbugz.com/f/cases/13651

13649 move ThreadSafeTranscript >> #codePaneMenu:shifted: to Tool-Transcript 
package
https://pharo.fogbugz.com/f/cases/13649

13647 unimplemented #poolDictionaries called by Class, TClass and Trait
https://pharo.fogbugz.com/f/cases/13647

13652 move class side ThreadSafeTranscript examples, menuCommandOn: and open to 
Tool-Transcript package
https://pharo.fogbugz.com/f/cases/13652

http://files.pharo.org/image/40/40116.zip




[Pharo-dev] [pharo-project/pharo-core]

2014-07-23 Thread GitHub
  Branch: refs/tags/40116
  Home:   https://github.com/pharo-project/pharo-core


Re: [Pharo-dev] Suspending a Process

2014-07-23 Thread Nicolai Hess
Hi ben, thank you for looking at this.

2014-07-22 20:17 GMT+02:00 :

>  I thought this might be interesting to learn, so I've gave it a go.  I
> had some success at the end, but I'll give a progressive report.
>
> First I thought I'd try moving the update of StringMorph outside the
> worker-process using a Morph's #step method as follows...
>
> Morph subclass: #BackgroundWorkDisplayMorph
> instanceVariableNames: 'interProcessString stringMorph'
> classVariableNames: ''
> category: 'BenPlay'
> "-"
>
> BackgroundWorkDisplayMorph>>initializeMorph
> self color: Color red.
> stringMorph := StringMorph new.
> self addMorphBack: stringMorph.
> self extent:(300@50).
> "-"
>
> BackgroundWorkDisplayMorph>>newWorkerProcess
> ^[
> | work |
> work := 0.
> [ 20 milliSeconds asDelay wait.
> work := work + 1.
> interProcessString := work asString.
> ] repeat.
> ] newProcess.
> "-"
>
> BackgroundWorkDisplayMorph>>step
> stringMorph contents: interProcessString.
> "-"
>
> BackgroundWorkDisplayMorph>>stepTime
> ^50
> "-"
>
> BackgroundWorkDisplayMorph>>initialize
> | workerProcess running |
> super initialize.
> self initializeMorph.
>
> workerProcess := self newWorkerProcess.
> running := false.
>
> self on: #mouseUp send: #value to:
> [  (running := running not)
> ifTrue: [  workerProcess resume. self color: Color green.  ]
> ifFalse: [ workerProcess suspend. self color: Color red. ]
> ]
> "-"
>
>
>
> But evaluating "BackgroundWorkDisplayMorph new openInWorld"  found this
> exhibited the same problematic behavior you reported... Clicking on the
> morph worked a few times and then froze the UI until Cmd-. pressed a few
> times.
>

> However I found the following never locked the GUI.
>
> BackgroundWorkDisplayMorph>>initialize
> "BackgroundWorkDisplayMorph new openInWorld"
> | workerProcess running |
> super initialize.
> self initializeMorph.
>
> workerProcess := self newWorkerProcess.
> running := false.
>
> [ [  (running := running not)
> ifTrue: [  workerProcess resume. self color: Color green  ]
> ifFalse: [ workerProcess suspend. self color: Color red ].
> 10 milliSeconds asDelay wait.
> ] repeat ] fork.
> "-"
>
>
This locks the UI as well. Not every timet hough. I did this 5 times, every
time in a freshly loaded image and it happens two times.



>  So the problem seemed to not be with #suspend/#resume or with the shared
> variable /interProcessString/.  Indeed, since in the worker thread
> /interProcessString/ is atomically assigned a copy via #asString, and the
> String never updated, I think there is no need to surround use of it with a
> critical section.
>
> The solution then was to move the "#resume/#suspend" away from the "#on:
> #mouseUp send: #value to:" as follows...
>
> BackgroundWorkDisplayMorph>>initialize
> "BackgroundWorkDisplayMorph new openInWorld"
> | workerProcess running lastRunning |
> super initialize.
> self initializeMorph.
>
> workerProcess := self newWorkerProcess.
> lastRunning := running := false.
>
> [ [lastRunning = running ifFalse:
> [running
> ifTrue: [  workerProcess resume  ]
> ifFalse: [ workerProcess suspend ].
> lastRunning := running.
> ].
> 10 milliSeconds asDelay wait.
> ] repeat ] fork.
>
> self on: #mouseUp send: #value to:
> [  (running := running not)
> ifTrue: [  self color: Color green.  ]
> ifFalse: [ self color: Color red. ]
> ]
> "-"
>

And this too :(



>
> And finally remove the busy loop.
>
> BackgroundWorkDisplayMorph>>initialize
> "BackgroundWorkDisplayMorph new openInWorld"
> | workerProcess running lastRunning semaphore |
> super initialize.
> self initializeMorph.
>
> workerProcess := self newWorkerProcess.
> lastRunning := running := false.
> semaphore := Semaphore new.
>
> [ [semaphore wait.
> running
> ifTrue: [  workerProcess resume  ]
> ifFalse: [ workerProcess suspend ].
> ] repeat ] fork.
>
> self on: #mouseUp send: #value to:
> [  (running := running not)
> ifTrue: [  self color: Color green.  ]
> ifFalse: [ self color: Color red. ].
> semaphore signal.
> ]
> "-"
>
>

And this locks the UI too. (Loaded the code 20 times, every time after a
fresh image start up. Two times I got a locked
ui after the first two clicks).
And I don't understand this code :)



> Now I can't say how close that is to how it "should" be done.  Its the
> first time I used sempahores and just what I discovered hacking around.
> But hey! it works :)
>
> cheers -ben
>
>
>
> Nicolai He

Re: [Pharo-dev] transformmorph and submorph bounds

2014-07-23 Thread Thierry Goubier
2014-07-23 8:00 GMT+02:00 Tudor Girba :

> Hi,
>
> In GTInspector we use a TransformMorph inside the pager morph. It works
> fine, but spawning completion from a text morph that is placed inside this
> transform morph, the completion morphs appears in the wrong place.
>
> The issue comes from submorphBounds apparently not being right (this is
> what the completion morph relies on).
>
> Here is a simpler example, to exemplify what I am talking about:
>
> circle := CircleMorph new.
> morph := TransformMorph new.
> morph addMorph: circle.
> morph top: 100.
> morph left: 100.
> morph submorphBounds. "==> (100@100) corner: (140@140)"
> circle submorphBounds. "==> (0@0) corner: (40@40)"
>

This seems correct to me: a transformMorph is the one which shift its
contents (and reset the origin to its top left corner ?).

Why do you use a TransformMorph there?

Thierry


> Ideally, "circle submorphBounds" should start at 100@100. Is this a bug,
> or am I doing something wrong?
>
> Cheers,
> Doru
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
>


Re: [Pharo-dev] Doubt in Pharo

2014-07-23 Thread Peter Uhnák
Hi,

I'm sure someone can give a much better and more in-depth explanation but
here goes:

1. Class side initialization is generally used to create fully functional
objects. If you use just instance-side you might forget to set some
important value (let's say ID) which would leave the object in invalid
state. Another reason would be that it shows what does one really need to
create a valid instance. If you have Empoyee class>>id: anId name: aName
you will now know that salary is actually not needed and the object is able
to cope with that. (And you can set it later). Yet another reason would be
setting some additional/default values (however this can be done also
internally on the instance-side).

2. Some elementary examples might be Rectangle or Point in Kernel >
BasicObjects package. Generally you wouldn't send Employee message new
directly, because that is class-side's job now, but rather you send the
actual values: Employee id: 123 name: 'John Doe'. "answers with an Employee
instance"

Peter


On Wed, Jul 23, 2014 at 8:33 AM, Dokania, Harshit 
wrote:

> Hello,
>
> I am creating an Object Relational Mapper in pharo using sqlite.
>
> While creating database I am using a dictionary for columns of Database.
> This gives me Keys as column name and values as Data type of those.
>
> So suppose Employee is the the table name, with ID->Integer, Name->Text,
> Salary->Float.
>
> emp:= Employee new.
> Now emp is a row of table, so for each row user has to create instance of
> Employee and then feed values to it. Later on he can pass message insert
> query to emp.
>
> So I was creating this dictionary for column at the instance side
> initialization of Employee.
>
> My instructor suggested to do that in class side initialization,
>
> My Doubts are:
>
> 1. Why should we do class side initialization instead of instance side
> initialization.
>
> 2. Could you please refer me to the link which explains how to do class
> side initialization. Because when I do Employee new, I see only instance
> side initialization is being called.
>
> Thanks,
> Harshit
>
>
>


Re: [Pharo-dev] WhatsUp from: 2014-07-21 until: 2014-07-31

2014-07-23 Thread Serge Stinckwich
On Tue, Jul 22, 2014 at 8:17 PM, Alexandre Bergel
 wrote:
> Last week: Been working on the new edition of Deep into Pharo. Not much is
> left to do.
> Next week: Starting the book "Agile Visualization”. The website will soon be
> online :-)

Sound great ! Are you looking for application chapters?
We can contribute something with one of my PhD student.

Thank you for your work.
Regards,
-- 
Serge Stinckwich
UCBN & UMI UMMISCO 209 (IRD/UPMC)
Every DSL ends up being Smalltalk
http://www.doesnotunderstand.org/