Re: [Pharo-users] GTDocument how to

2018-10-03 Thread Hilaire
Ok got it. What I need is a bit different to what is GTDocumenter.

Thanks for the help.

Hilaire


Le 02/10/2018 à 19:56, Juraj Kubelka via Pharo-users a écrit :
> You are right, we cannot have real Morph widget inside of Bloc element.

-- 
Dr. Geo
http://drgeo.eu





Re: [Pharo-users] GTDocument how to

2018-10-02 Thread Juraj Kubelka via Pharo-users
--- Begin Message ---
Hi Hilaire,

You are right, we cannot have real Morph widget inside of Bloc element.

Cheers,
Juraj

> On Oct 2, 2018, at 14:38, Hilaire  wrote:
> 
> Thanks for the tips. It works, the view is not interactive though
> 
> Hilaire
> 
> 
> Le 30/09/2018 à 16:18, Juraj Kubelka via Pharo-users a écrit :
>> You can create extension similar to one you have
>> here: DrGeoCanvas>>#gtInspectorCanvasIn:
>> 
>> DrGeoCanvas>>#gtCanvasIn: aView
>> 
>> ^ self view 
>> ifNil: [ aView empty ] 
>> ifNotNil: [ :aMorph | aMorph gtMorphFor: aView ]
>> 
>> 
>> Then you can obtain Documenter views like this:
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> 
> 
> 


--- End Message ---


Re: [Pharo-users] GTDocument how to

2018-10-02 Thread Hilaire
Thanks for the tips. It works, the view is not interactive though

Hilaire


Le 30/09/2018 à 16:18, Juraj Kubelka via Pharo-users a écrit :
> You can create extension similar to one you have
> here: DrGeoCanvas>>#gtInspectorCanvasIn:
>
> DrGeoCanvas>>#gtCanvasIn: aView
> 
> ^ self view 
> ifNil: [ aView empty ] 
> ifNotNil: [ :aMorph | aMorph gtMorphFor: aView ]
>
>
> Then you can obtain Documenter views like this:

-- 
Dr. Geo
http://drgeo.eu





Re: [Pharo-users] GTDocument how to

2018-09-30 Thread Hilaire
For DSL geometric sketch, I use the DrGeoCanvas class. When instantiated
with the #minimal message, it holds a view with only the sketch and no
widget. Therefore It is an interactive geometric sketch in a Morph, it
can be obtained with the #view message.

Inspected methods with the  pragma indicate a BLelement is
expected as a view.

Therefore, how can I embed DrGeoCanvas interactive moprh in Documenter?

For example, how to deal with an example as bellow?

| canvas |

canvas := DrGeoCanvas minimal.

canvas line: 0@0 to: 5@5.

minimal view "get the view if necessary"

Hilaire


Le 29/09/2018 à 15:49, Juraj Kubelka via Pharo-users a écrit :
>
> Well, there are basically two ways to start using Documenter. In both
> cases it happens in the GT Inspector.
>
> First, you can inspect a class and write a Documenter document as a
> class comment (Comment inspector tab).
> Second, you can create a a-file.pillar local file and inspect it
> (‘a-file.pillar’ asFileReference).
>
> Let me know if it helps.
>
>>

-- 
Dr. Geo
http://drgeo.eu





Re: [Pharo-users] GTDocument how to

2018-09-29 Thread Juraj Kubelka via Pharo-users
--- Begin Message ---
Ok. As far as I know, Iceberg does not update local repositories in this use 
case. Which is fine for developers, less convenient for users. 

Juraj

--
Juraj Kubelka

El 29-09-2018, a la(s) 16:42, Hilaire  escribió:

> Likely. As GIT is integrated to Pharo, when installing the package I was
> expecting the local repo to be synchronized from remote master. I will
> delete local repos and try it again, it will take time.
> 
> Hilaire
> 
> 
>> Le 29/09/2018 à 20:43, Juraj Kubelka via Pharo-users a écrit :
>> I do not know how it is possible, but your header mentions Pharo 6.1, but 
>> according to the UI you have Pharo 7. And the missing class is part of Pharo 
>> 6 only and is not required in Pharo 7. 
>> 
>> One reason might be that you keep locally old (2 months) GToolkit code. Can 
>> you check this?
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> 
> 
> 

--- End Message ---


Re: [Pharo-users] GTDocument how to

2018-09-29 Thread Hilaire
Likely. As GIT is integrated to Pharo, when installing the package I was
expecting the local repo to be synchronized from remote master. I will
delete local repos and try it again, it will take time.

Hilaire


Le 29/09/2018 à 20:43, Juraj Kubelka via Pharo-users a écrit :
> I do not know how it is possible, but your header mentions Pharo 6.1, but 
> according to the UI you have Pharo 7. And the missing class is part of Pharo 
> 6 only and is not required in Pharo 7. 
>
> One reason might be that you keep locally old (2 months) GToolkit code. Can 
> you check this?

-- 
Dr. Geo
http://drgeo.eu





Re: [Pharo-users] GTDocument how to

2018-09-29 Thread Juraj Kubelka via Pharo-users
--- Begin Message ---
To be more concrete: you might have locally an old Bloc repository. 

Juraj

--
Juraj Kubelka

El 29-09-2018, a la(s) 15:43, Juraj Kubelka via Pharo-users 
 escribió:

> 

--- End Message ---


Re: [Pharo-users] GTDocument how to

2018-09-29 Thread Juraj Kubelka via Pharo-users
--- Begin Message ---
I do not know how it is possible, but your header mentions Pharo 6.1, but 
according to the UI you have Pharo 7. And the missing class is part of Pharo 6 
only and is not required in Pharo 7. 

One reason might be that you keep locally old (2 months) GToolkit code. Can you 
check this?

Juraj

--
Juraj Kubelka

El 29-09-2018, a la(s) 14:37, Hilaire  escribió:

> Indeed new VM passed that error. I have another issue related to unmet 
> dependencies. See screenshot.
> 
> Not sure it belongs to GToolkit or P7.
> 
> Hilaire
> 
>> Le 29/09/2018 à 19:16, Alistair Grant a écrit :
>> This looks like you have an old VM.  If you get the current stable VM
>> it should be fine.
>> 
>> The current Pharo 6 & 7 VMs are both dated 28 June 2018.
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> 
> 

--- End Message ---


Re: [Pharo-users] GTDocument how to

2018-09-29 Thread Alistair Grant
Hi Hilaire,

This looks like you have an old VM.  If you get the current stable VM
it should be fine.

The current Pharo 6 & 7 VMs are both dated 28 June 2018.

Cheers,
Alistair

On Sat, 29 Sep 2018 at 19:11, Hilaire  wrote:
>
> Nice!
>
> I got issue when installing GToolkit on P7. May be the VM is not up to
> the task (I took the one shipped with P6.1) but there are error message
> with stdio... See screenshot.
>
> Will try with a newer VM.
>
> Hilaire
>
>
> Le 29/09/2018 à 17:12, Juraj Kubelka via Pharo-users a écrit :
> > I was able to install both, DrGeo and GToolkit in Pharo 7.0 image:
>
> --
> Dr. Geo
> http://drgeo.eu
>



Re: [Pharo-users] GTDocument how to

2018-09-28 Thread Tim Mackinnon
Ah yes - the newer Tonel format should help - I haven’t consciously noticed 
when having slow loading if all of the dependencies were Tonel2.

I still wonder if we may have a code loading perf issue overall - not sure if 
it’s ever been measured (might be a great summer project for someone). 
Hopefully a move to Tonel and git might give opportunities to optimise it. 
Certainly when I look at the quantity of JavaScript that gets pulled in - we 
seem quite slow.

Tim

Sent from my iPhone

> On 29 Sep 2018, at 06:51, Tudor Girba  wrote:
> 
> Hi,
> 
> Please load the whole GT. Also, in the meantime we switched to Tonel which 
> should speedup the loading time significantly.
> 
> Cheers,
> Doru
> 
> 
>> On Sep 28, 2018, at 7:53 PM, Tim Mackinnon  wrote:
>> 
>> When I installed GTDocumenter into a clean P61 image it took a really long 
>> time (like 20+ mins), so it may be something you have to wait out.
>> 
>> It does beg the question why it takes so long? Actually all of our code 
>> loading is quite slow compared to other languages that load a lot more code. 
>> Not sure if if it’s ever been optimised ?
>> 
>> Tim
>> 
>> Sent from my iPhone
>> 
 On 28 Sep 2018, at 05:58, Hilaire  wrote:
 
> Le 27/09/2018 à 16:52, Juraj Kubelka via Pharo-users a écrit :
> 
> On Sep 27, 2018, at 10:41, Hilaire
>  > wrote:
> 
> Thanks for the tips. Where should be key in this text?
 
 What do you mean? You can edit the text as you wish.
>>> 
>>> Do not forget, what is obvious for one may not be for another. I could
>>> write a book full of anecdotes with obvious features in DrGeo not so
>>> obvious for a newbie.
>>> 
>>> So you write this text in playground and inspect?
>>> 
 
 By evaluating and inspecting: 
 
 -=-=-=-
 GtDocumenter editorForText: 'This is a Dr. Geo tutorial. Evaluate the
 following script:
 
 [[[
 "A Dr. Geo script that returns DrGeo canvas” 
 ]]]
 
 Extensions are done using  pragmas.
 '
 -=-=-=-
 
 I have a text editor in an inspector where I can edit the Documenter
 content. 
 
 
 Do you have the same?
>>> 
>>> No, never saw that. I installed from:
>>> Metacello new
>>>  baseline: 'GToolkit';
>>>  repository: 'github://feenkcom/gtoolkit/src';
>>>  load.
>>> 
 
> 
> I went installing DrGeo along Documenter in P6.1, but it is stalled when
> installing XML dependecies (a bit old, true).
> 
> Conflict with XML? or Issue with DrGeo on P6.1, may be both.
 
 How can I install DrGeo? I do not see a Monticello script on the
 DrGeo.eu  web page.
>>> 
>>> I am afraid it is a bit tedious at first as it is not github based, but
>>> Launchpad.
>>> Read INSTALL file for full instruction:
>>> https://bazaar.launchpad.net/~drgeo-developers/drgeo/trunk/view/head:/src/INSTALL
>>> 
 
> 
> This is so fragile.
 
 Keep in mind that GToolkit, including Documenter, is in alpha version.
>>> 
>>> I did not have GToolkit in mind when I wrote fragile, more likely the
>>> whole Smalltalk things. As I wrote in my previous email, my issue was
>>> when installing DrGeo on a P6.1 image with GToolkit already installed. I
>>> am not sure about why the process was hanging when installing XML's Dr.
>>> Geo requirement. The image is then frozen
>>> Ok may be I can't install DrGeo on P6.1, I still have error
>>> (screenshot). In the other I failed to installing GToolkit on P7.
>>> 
>>> Hilaire
>>> 
>>> -- 
>>> Dr. Geo
>>> http://drgeo.eu
>>> 
>>> 
>> 
>> 
> 
> --
> www.feenk.com
> 
> "Every thing should have the right to be different."
> 
> 
> 
> 
> 
> 




Re: [Pharo-users] GTDocument how to

2018-09-28 Thread Hilaire
Hi,

I don't remember to be annoyed by the loading time of GToolkit.
Regarding DrGeo it is installed from Tonel file format repository (which
is local too), and it is usually very fast. Oh! But P6.1 may not be up
to the task with Tonel? I don't remember clearly all the reason why I
skipped P6 (the canvas bug but may be something else)

Hilaire


Le 28/09/2018 à 19:53, Tim Mackinnon a écrit :
> When I installed GTDocumenter into a clean P61 image it took a really long 
> time (like 20+ mins), so it may be something you have to wait out.
>
> It does beg the question why it takes so long? Actually all of our code 
> loading is quite slow compared to other languages that load a lot more code. 
> Not sure if if it’s ever been optimised ?
>
> Tim
>
> Sent from my iPhone

-- 
Dr. Geo
http://drgeo.eu





Re: [Pharo-users] GTDocument how to

2018-09-28 Thread Craig
Hi,

I have found that moving the image and changes files onto a RAMdisk makes a 
huge difference to the install time of large packages.

Give it a try.

Craig

-Original Message-
From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of Tim 
Mackinnon
Sent: Friday, 28 September 2018 19:53
To: Any question about pharo is welcome
Subject: Re: [Pharo-users] GTDocument how to

When I installed GTDocumenter into a clean P61 image it took a really long time 
(like 20+ mins), so it may be something you have to wait out.

It does beg the question why it takes so long? Actually all of our code loading 
is quite slow compared to other languages that load a lot more code. Not sure 
if if it’s ever been optimised ?

Tim

Sent from my iPhone

> On 28 Sep 2018, at 05:58, Hilaire  wrote:
> 
>> Le 27/09/2018 à 16:52, Juraj Kubelka via Pharo-users a écrit :
>> 
>>> On Sep 27, 2018, at 10:41, Hilaire
>>> >> <mailto:hila...@drgeo.eu>> wrote:
>>> 
>>> Thanks for the tips. Where should be key in this text?
>> 
>> What do you mean? You can edit the text as you wish.
> 
> Do not forget, what is obvious for one may not be for another. I could
> write a book full of anecdotes with obvious features in DrGeo not so
> obvious for a newbie.
> 
> So you write this text in playground and inspect?
> 
>> 
>> By evaluating and inspecting: 
>> 
>> -=-=-=-
>> GtDocumenter editorForText: 'This is a Dr. Geo tutorial. Evaluate the
>> following script:
>> 
>> [[[
>> "A Dr. Geo script that returns DrGeo canvas” 
>> ]]]
>> 
>> Extensions are done using  pragmas.
>> '
>> -=-=-=-
>> 
>> I have a text editor in an inspector where I can edit the Documenter
>> content. 
>> 
>> 
>> Do you have the same?
> 
> No, never saw that. I installed from:
> Metacello new
>baseline: 'GToolkit';
>repository: 'github://feenkcom/gtoolkit/src';
>load.
> 
>> 
>>> 
>>> I went installing DrGeo along Documenter in P6.1, but it is stalled when
>>> installing XML dependecies (a bit old, true).
>>> 
>>> Conflict with XML? or Issue with DrGeo on P6.1, may be both.
>> 
>> How can I install DrGeo? I do not see a Monticello script on the
>> DrGeo.eu <http://DrGeo.eu> web page.
> 
> I am afraid it is a bit tedious at first as it is not github based, but
> Launchpad.
> Read INSTALL file for full instruction:
> https://bazaar.launchpad.net/~drgeo-developers/drgeo/trunk/view/head:/src/INSTALL
> 
>> 
>>> 
>>> This is so fragile.
>> 
>> Keep in mind that GToolkit, including Documenter, is in alpha version.
> 
> I did not have GToolkit in mind when I wrote fragile, more likely the
> whole Smalltalk things. As I wrote in my previous email, my issue was
> when installing DrGeo on a P6.1 image with GToolkit already installed. I
> am not sure about why the process was hanging when installing XML's Dr.
> Geo requirement. The image is then frozen
>  Ok may be I can't install DrGeo on P6.1, I still have error
> (screenshot). In the other I failed to installing GToolkit on P7.
> 
> Hilaire
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> 
> 






Re: [Pharo-users] GTDocument how to

2018-09-28 Thread Tudor Girba
Hi,

Please load the whole GT. Also, in the meantime we switched to Tonel which 
should speedup the loading time significantly.

Cheers,
Doru


> On Sep 28, 2018, at 7:53 PM, Tim Mackinnon  wrote:
> 
> When I installed GTDocumenter into a clean P61 image it took a really long 
> time (like 20+ mins), so it may be something you have to wait out.
> 
> It does beg the question why it takes so long? Actually all of our code 
> loading is quite slow compared to other languages that load a lot more code. 
> Not sure if if it’s ever been optimised ?
> 
> Tim
> 
> Sent from my iPhone
> 
>> On 28 Sep 2018, at 05:58, Hilaire  wrote:
>> 
>>> Le 27/09/2018 à 16:52, Juraj Kubelka via Pharo-users a écrit :
>>> 
 On Sep 27, 2018, at 10:41, Hilaire
 >>> > wrote:
 
 Thanks for the tips. Where should be key in this text?
>>> 
>>> What do you mean? You can edit the text as you wish.
>> 
>> Do not forget, what is obvious for one may not be for another. I could
>> write a book full of anecdotes with obvious features in DrGeo not so
>> obvious for a newbie.
>> 
>> So you write this text in playground and inspect?
>> 
>>> 
>>> By evaluating and inspecting: 
>>> 
>>> -=-=-=-
>>> GtDocumenter editorForText: 'This is a Dr. Geo tutorial. Evaluate the
>>> following script:
>>> 
>>> [[[
>>> "A Dr. Geo script that returns DrGeo canvas” 
>>> ]]]
>>> 
>>> Extensions are done using  pragmas.
>>> '
>>> -=-=-=-
>>> 
>>> I have a text editor in an inspector where I can edit the Documenter
>>> content. 
>>> 
>>> 
>>> Do you have the same?
>> 
>> No, never saw that. I installed from:
>> Metacello new
>>   baseline: 'GToolkit';
>>   repository: 'github://feenkcom/gtoolkit/src';
>>   load.
>> 
>>> 
 
 I went installing DrGeo along Documenter in P6.1, but it is stalled when
 installing XML dependecies (a bit old, true).
 
 Conflict with XML? or Issue with DrGeo on P6.1, may be both.
>>> 
>>> How can I install DrGeo? I do not see a Monticello script on the
>>> DrGeo.eu  web page.
>> 
>> I am afraid it is a bit tedious at first as it is not github based, but
>> Launchpad.
>> Read INSTALL file for full instruction:
>> https://bazaar.launchpad.net/~drgeo-developers/drgeo/trunk/view/head:/src/INSTALL
>> 
>>> 
 
 This is so fragile.
>>> 
>>> Keep in mind that GToolkit, including Documenter, is in alpha version.
>> 
>> I did not have GToolkit in mind when I wrote fragile, more likely the
>> whole Smalltalk things. As I wrote in my previous email, my issue was
>> when installing DrGeo on a P6.1 image with GToolkit already installed. I
>> am not sure about why the process was hanging when installing XML's Dr.
>> Geo requirement. The image is then frozen
>> Ok may be I can't install DrGeo on P6.1, I still have error
>> (screenshot). In the other I failed to installing GToolkit on P7.
>> 
>> Hilaire
>> 
>> -- 
>> Dr. Geo
>> http://drgeo.eu
>> 
>> 
> 
> 

--
www.feenk.com

"Every thing should have the right to be different."








Re: [Pharo-users] GTDocument how to

2018-09-28 Thread Tim Mackinnon
When I installed GTDocumenter into a clean P61 image it took a really long time 
(like 20+ mins), so it may be something you have to wait out.

It does beg the question why it takes so long? Actually all of our code loading 
is quite slow compared to other languages that load a lot more code. Not sure 
if if it’s ever been optimised ?

Tim

Sent from my iPhone

> On 28 Sep 2018, at 05:58, Hilaire  wrote:
> 
>> Le 27/09/2018 à 16:52, Juraj Kubelka via Pharo-users a écrit :
>> 
>>> On Sep 27, 2018, at 10:41, Hilaire
>>> >> > wrote:
>>> 
>>> Thanks for the tips. Where should be key in this text?
>> 
>> What do you mean? You can edit the text as you wish.
> 
> Do not forget, what is obvious for one may not be for another. I could
> write a book full of anecdotes with obvious features in DrGeo not so
> obvious for a newbie.
> 
> So you write this text in playground and inspect?
> 
>> 
>> By evaluating and inspecting: 
>> 
>> -=-=-=-
>> GtDocumenter editorForText: 'This is a Dr. Geo tutorial. Evaluate the
>> following script:
>> 
>> [[[
>> "A Dr. Geo script that returns DrGeo canvas” 
>> ]]]
>> 
>> Extensions are done using  pragmas.
>> '
>> -=-=-=-
>> 
>> I have a text editor in an inspector where I can edit the Documenter
>> content. 
>> 
>> 
>> Do you have the same?
> 
> No, never saw that. I installed from:
> Metacello new
>baseline: 'GToolkit';
>repository: 'github://feenkcom/gtoolkit/src';
>load.
> 
>> 
>>> 
>>> I went installing DrGeo along Documenter in P6.1, but it is stalled when
>>> installing XML dependecies (a bit old, true).
>>> 
>>> Conflict with XML? or Issue with DrGeo on P6.1, may be both.
>> 
>> How can I install DrGeo? I do not see a Monticello script on the
>> DrGeo.eu  web page.
> 
> I am afraid it is a bit tedious at first as it is not github based, but
> Launchpad.
> Read INSTALL file for full instruction:
> https://bazaar.launchpad.net/~drgeo-developers/drgeo/trunk/view/head:/src/INSTALL
> 
>> 
>>> 
>>> This is so fragile.
>> 
>> Keep in mind that GToolkit, including Documenter, is in alpha version.
> 
> I did not have GToolkit in mind when I wrote fragile, more likely the
> whole Smalltalk things. As I wrote in my previous email, my issue was
> when installing DrGeo on a P6.1 image with GToolkit already installed. I
> am not sure about why the process was hanging when installing XML's Dr.
> Geo requirement. The image is then frozen
>  Ok may be I can't install DrGeo on P6.1, I still have error
> (screenshot). In the other I failed to installing GToolkit on P7.
> 
> Hilaire
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> 
> 




Re: [Pharo-users] GTDocument how to

2018-09-27 Thread Hilaire
Thanks for the tips. Where should be key in this text?

I went installing DrGeo along Documenter in P6.1, but it is stalled when
installing XML dependecies (a bit old, true).

Conflict with XML? or Issue with DrGeo on P6.1, may be both.

This is so fragile.

Hilaire


Le 27/09/2018 à 14:51, Juraj Kubelka via Pharo-users a écrit :
> As far as I understand your description, Documenter should fit. You can start 
> by using:
>
> -=-=-=-
> GtDocumenter editorForText: 'This is a Dr. Geo tutorial. Evaluate the 
> following script:
>
> [[[
>  "A Dr. Geo script that returns DrGeo canvas"  
> ]]]
>
> Extensions are done using  pragmas.
> ‘
> -=-=-=-
>
> Let me know how it works for you.

-- 
Dr. Geo
http://drgeo.eu





Re: [Pharo-users] GTDocument how to

2018-09-27 Thread Juraj Kubelka via Pharo-users
--- Begin Message ---
Hi Hilaire,

As far as I understand your description, Documenter should fit. You can start 
by using:

-=-=-=-
GtDocumenter editorForText: 'This is a Dr. Geo tutorial. Evaluate the following 
script:

[[[
 "A Dr. Geo script that returns DrGeo canvas"  
]]]

Extensions are done using  pragmas.
‘
-=-=-=-

Let me know how it works for you.

Juraj

> On Sep 26, 2018, at 14:10, Hilaire  wrote:
> 
> Hi,
> 
> I would like a document where user types in normal text and plugs in
> DrGeo view. The drgeo view will be dual. It will be alternatively the
> output of a DrGeo script (drgeo canvas) or the DrGeo script itself (code).
> 
> The view will be interactive. In drgeo canvas mode, user plays with the
> geometric construction, when switched to code mode, the user edits the
> DrGeo script and recompute the DrGeo canvas output.
> 
> Is GTDocument appropriate to do this? If so, where to start?
> 
> Thanks
> 
> Hilaire
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> 
> 
> 


--- End Message ---