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

2017-01-15 Thread GitHub
  Branch: refs/tags/60344
  Home:   https://github.com/pharo-project/pharo-core


[Pharo-dev] [pharo-project/pharo-core] 13e2fd: 60344

2017-01-15 Thread GitHub
  Branch: refs/heads/6.0
  Home:   https://github.com/pharo-project/pharo-core
  Commit: 13e2fd59f28ab614ced1ae5f097b75158d8482ca
  
https://github.com/pharo-project/pharo-core/commit/13e2fd59f28ab614ced1ae5f097b75158d8482ca
  Author: Jenkins Build Server 
  Date:   2017-01-15 (Sun, 15 Jan 2017)

  Changed paths:
A 
Announcements-Core.package/WeakAnnouncementSubscription.class/instance/printing/printOn_.st
M Kernel.package/WeakMessageSend.class/instance/printing/printOn_.st
M 
Manifest-Core.package/TheManifestBuilder.class/instance/accessing/manifestOf_.st
A 
Morphic-Widgets-Tabs.package/TabManagerMorph.class/instance/accessing/emptyTabColor_.st
M 
Morphic-Widgets-Tabs.package/TabManagerMorph.class/instance/private/setTabContentFrom_.st
M 
Morphic-Widgets-Tabs.package/TabMorph.class/instance/protocol/softRetrieveMorph.st
M Rubric.package/RubEditingMode.class/instance/accessing/interactive.st
R 
Rubric.package/RubSmalltalkScriptingMode.class/instance/accessing/interactive.st
R ScriptLoader60.package/ScriptLoader.class/instance/pharo - 
scripts/script60343.st
A ScriptLoader60.package/ScriptLoader.class/instance/pharo - 
scripts/script60344.st
R ScriptLoader60.package/ScriptLoader.class/instance/pharo - 
updates/update60343.st
A ScriptLoader60.package/ScriptLoader.class/instance/pharo - 
updates/update60344.st
M 
ScriptLoader60.package/ScriptLoader.class/instance/public/commentForCurrentUpdate.st

  Log Message:
  ---
  60344
19509 controling class assignment
https://pharo.fogbugz.com/f/cases/19509

19515 complileSilently:classified: method does not set properly the package
https://pharo.fogbugz.com/f/cases/19515

19217 Add printOn: method on WeakAnnouncementSubscription to improve readibility
https://pharo.fogbugz.com/f/cases/19217

19540 TabMorph should refresh content in background by defer message 
https://pharo.fogbugz.com/f/cases/19540

http://files.pharo.org/image/60/60344.zip




Re: [Pharo-dev] error "please insert disk" (windows vm)

2017-01-15 Thread p...@highoctane.be
On Sat, Jan 14, 2017 at 7:58 PM, Peter Uhnak  wrote:

> I feel like we are moving away from the original thread. I mentioned my
> FileDialog because I found it odd that VM didn't break it.
>
> As I am not interested in using STHub, I am also not interested in
> integrating it into Pharo itself (relase of P6.5/7 might change that at
> some point), but if you want to deal with that then feel free.
>
> On Sat, Jan 14, 2017 at 06:41:52PM +0100, philippe.b...@highoctane.be
> wrote:
> > Sure but the old one can do image and text previews. Is the new one doing
> > that?
>
> That would be image XOR text, and neither being used anywhere in Pharo.
>

These are services that are useful for users, maybe not in the base image.
Or I think that there is a missing example in the WidgetExamples class.

Something like:

exampleFilePreviewDialogs

self exampleBuilder
chooseFileName: 'Pick a file name' extensions: nil path: nil preview:
#image;
chooseFileName: 'Pick a file name' extensions: nil path:
nil preview: #text

Current examples just pass nil to the preview parameter, where
nil|#image|#text are accepted.

It is pretty handy to preview pictures for web content in image or looking
at some files.

gtPresentations would be of course better to use. My current use case is to
have a quick preview of a picture before saving on top of it, so that I
know what I am trashing.

Phil





> I don't support it yet, but the idea is to embed GTInspector, as it has
> many file previews and a way to drop in more. It should be easy (IMO, Johan
> did the work for integration between Spec and GT long time ago), but no
> timeline.
>
> Peter
>
>


Re: [Pharo-dev] looking for classbuilder API

2017-01-15 Thread Nicolai Hess
maybe :

newClass setFormat: self classLayout format.


2017-01-15 9:40 GMT+01:00 stepharong :

> HI
>
> I need to migrate
>
> pvtNewSubclass
>
> | newClass |
> newClass := Behavior new.
> newClass superclass: self.
> newClass setFormat: (ClassBuilder new computeFormat: #normal
> instSize: 0 forSuper: self ccIndex: 0).
> ^newClass
>
> and I'm looking at how to express (ClassBuilder new computeFormat: #normal
> instSize: 0 forSuper: self ccIndex: 0).  in Pharo 60.
>
> Stef
>
>


Re: [Pharo-dev] ***Important*** Snapcraft pharo package for Pharo 50

2017-01-15 Thread stepharong

Thanks
Yes we should have simpler/better packages for linux.





On 7 January 2017 at 04:31, Dale Henrichs
 wrote:

Stef,

RE: why they "cannot install Pharo" --- I'd guess it is because Pharo
requires 32 bit libraries and those are not available in the current  
Linux

releases by default ... to install the 32 bit libraries requires sudo
privileges and students aren't going to be able to do it themselves and  
the
sysadmins aren't going to want to have to add 32 bit libraries to a  
bunch of

linux machines just for pharo ... just a guess .

Dale


On 01/06/2017 05:38 AM, Stephane Ducasse wrote:

Hi pharoers

I want to share with you my experience with trying to use Pharo at the
University here on Linux.
I think that they are on Ubuntu and ... the sys admin told me that they
cannot install Pharo :(
Since I'm not expert in Linux install I cannot help ;(

So we will probably use windows.
Now they told me that what would be nice is to get a snap for Pharo
based on snapcraft.io.

Does any of you have a snap description or willing to help so that we  
can

get
a snap for Pharo50? then for Pharo60?


Disclaimer: I haven't ever developed a snap package, so this is just
my understanding, no experience!

Damien has already mentioned Docker, which may be a good solution -
I'm not familiar enough to comment on the differences other than I
expect that a snap package would be lower overhead.

Snap packaging is being developed by Canonical, the maintainers of
Ubuntu.  The touted advantages over existing packaging formats such as
ppa's include:

- Applications are sandboxed, increasing security (the are known
limitations with X11, but this is the goal)
- All dependencies can be included in the package - this gets back to
what Dale was saying about the 32 bit libraries, they could be
included in, and limited to, the snap package.  Having said that, I
don't know if snap packages support 32bit applications.
- They're cross platform.  The snap runtime has been ported to many of
the major linux distributions, e.g. fedora, arch, gentoo, etc.
- They're supposed to be fairly easy to develop (compared to ppa's).

If Pharo can be made to work as a snap package it would probably be a
good replacement for the ppa (eventually, older OSs won't support
them).

Cheers,
Alistair




--
Using Opera's mail client: http://www.opera.com/mail/



[Pharo-dev] looking for classbuilder API

2017-01-15 Thread stepharong

HI

I need to migrate

pvtNewSubclass

| newClass |
newClass := Behavior new.
newClass superclass: self.
	newClass setFormat: (ClassBuilder new computeFormat: #normal instSize: 0  
forSuper: self ccIndex: 0).

^newClass

and I'm looking at how to express (ClassBuilder new computeFormat: #normal  
instSize: 0 forSuper: self ccIndex: 0).  in Pharo 60.


Stef