Pharo-users
By thread
pharo-users@lists.pharo.org
By month
Messages by month
- ----- 2026 -----
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
November 2015
- 71 participants
- 412 messages
Re: [Pharo-users] Is there a way to disable code critic ?
by Ferlicot D. Cyril
Le 08/11/2015 17:06, Dimitris Chloupis a écrit :
> Code critic is malfunctioning in my image as i mention in pharo-dev
> thread, I want to disable it but I could not find it in the Settings
> because my problems with it have been getting much worse as it throws
> MNUs even for mouse clicks. How may I do this ?
If this is the QAPlugin of Nautilus that is responsible, you can click
on the little arrow at the top right of Nautilus then remove QAPlugin
with the Nautilus Plugin Manager.
--
Cyril Ferlicot
http://www.synectique.eu
165 Avenue Bretagne
Lille 59000 France
Nov. 8, 2015
Is there a way to disable code critic ?
by Dimitris Chloupis
Code critic is malfunctioning in my image as i mention in pharo-dev thread,
I want to disable it but I could not find it in the Settings because my
problems with it have been getting much worse as it throws MNUs even for
mouse clicks. How may I do this ?
Nov. 8, 2015
Re: [Pharo-users] Smalltalk Meetup in Zürich: Nov 10, 2015
by Sabine Manaa
Hi Joachim,
thank you for organizing!
I will be there.
see you
Sabine
--
View this message in context: http://forum.world.st/Smalltalk-Meetup-in-Zurich-Nov-10-2015-tp4857238p4859…
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Nov. 8, 2015
Re: [Pharo-users] Using Google service discovery API's with Pharo Smalltalk by Richard J. Prinz
by Sean P. DeNigris
Sean P. DeNigris wrote
>
> Andy Burnett wrote
>> Using Google service discovery API's with Pharo Smalltalk by Richard J.
>> Prinz
> Cool! I noticed a small bug
I created a new repo at https://github.com/seandenigris/St-Google-API since
the original repo is self-hosted, I don't know what the contribution policy
is, and I need the fix to continue my work. I'll keep the MC meta info so
that my changes can be merged back if desired.
Fun fact. I was able to send a multipart text & html email after a few
gotchas. Here is the script in case someone wants to do the same:
| api message raw |
api := GoogleGmailApiUsersMessages new.
api authenticate.
message := MailMessage
from: '"Mr. Sender" <me(a)myurl.com>'
to: { '"Mrs. Receiver" <me(a)anotherurl.com>'. }
about: 'Thank you!'
asFollows: ''.
message
addAlternativePart: self plainTextString contentType: 'text/plain';
addAlternativePart: self htmlString
contentType: 'text/html'.
raw := message asSendableText base64Encoded.
"Web-safe base64 from
https://stackoverflow.com/questions/26663529/invalid-value-for-bytestring-e…"
raw := raw copyReplaceAll: '+' with: '-'.
raw := raw copyReplaceAll: '/' with: '_'.
api send: 'me(a)myurl.com' api options: (Dictionary with: 'raw' -> raw)
where #send:options: is just the generated #send: with an argument passed
through (instead of nil) as the last argument to:
...
^ self makeRequestTo: path usingMethod: action with: optionsDict.
-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/Using-Google-service-discovery-API-s-with-Pharo-Small…
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Nov. 7, 2015
Re: [Pharo-users] Pharo-users Digest, Vol 31, Issue 14
by stepharo
Le 7/11/15 12:23, Romy Van a écrit :
> Hi, I'm Koami from Lome.
> I'm happy to be with You.
> I need Garage Documentation for one of my test Application.
Yes Romy
check
https://guillep.github.io/DBXTalk/garage/
stef
> Thank's for your help.
>
> Bye...
>
> 2015-11-07 6:13 UTC, pharo-users-request(a)lists.pharo.org
> <pharo-users-request(a)lists.pharo.org>:
>> Send Pharo-users mailing list submissions to
>> pharo-users(a)lists.pharo.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://lists.pharo.org/mailman/listinfo/pharo-users_lists.pharo.org
>> or, via email, send a message with subject or body 'help' to
>> pharo-users-request(a)lists.pharo.org
>>
>> You can reach the person managing the list at
>> pharo-users-owner(a)lists.pharo.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Pharo-users digest..."
>>
>>
>> Today's Topics:
>>
>> 1. Pharos-Book (Sebastian Heidbrink)
>> 2. Re: Pharos-Book (Sebastian Heidbrink)
>> 3. Re: Trying to understand OSProcess on MacOS Yosemite
>> (David T. Lewis)
>> 4. Re: Documentations for Garage (stepharo)
>> 5. Re: Trying to understand OSProcess on MacOS Yosemite
>> (John Pfersich)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Fri, 6 Nov 2015 09:40:47 -0800
>> From: Sebastian Heidbrink <sheidev(a)yahoo.de>
>> To: Any question about pharo is welcome <pharo-users(a)lists.pharo.org>
>> Subject: [Pharo-users] Pharos-Book
>> Message-ID: <563CE61F.7050902(a)yahoo.de>
>> Content-Type: text/plain; charset=utf-8; format=flowed
>>
>> Hi!
>>
>> Is there a CI server somewhere that currently builds the PharOS-Book?
>>
>> Or is there a place where the last built is available for download?
>>
>> Cheers!
>> Sebastian
>>
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Fri, 6 Nov 2015 09:44:13 -0800
>> From: Sebastian Heidbrink <sheidev(a)yahoo.de>
>> To: pharo-users(a)lists.pharo.org
>> Subject: Re: [Pharo-users] Pharos-Book
>> Message-ID: <563CE6ED.4030201(a)yahoo.de>
>> Content-Type: text/plain; charset=utf-8; format=flowed
>>
>> Actually before somebody expects a typo, I mean
>>
>> https://github.com/CARMinesDouai/PhaROS-Book
>>
>>
>>
>> On 2015-11-06 9:40 AM, Sebastian Heidbrink wrote:
>>> Hi!
>>>
>>> Is there a CI server somewhere that currently builds the PharOS-Book?
>>>
>>> Or is there a place where the last built is available for download?
>>>
>>> Cheers!
>>> Sebastian
>>>
>>>
>>
>>
>>
>> ------------------------------
>>
>> Message: 3
>> Date: Fri, 6 Nov 2015 13:01:39 -0500 (EST)
>> From: "David T. Lewis" <lewis(a)mail.msen.com>
>> To: "Any question about pharo is welcome"
>> <pharo-users(a)lists.pharo.org>
>> Subject: Re: [Pharo-users] Trying to understand OSProcess on MacOS
>> Yosemite
>> Message-ID: <35691.136.2.1.102.1446832899.squirrel(a)webmail.msen.com>
>> Content-Type: text/plain;charset=iso-8859-1
>>
>> Yes, that is normal. You are reading the output stream, and after it has
>> been read (up to EOF) it will be empty.
>>
>> Glad it is working for you now :-)
>>
>> Dave
>>
>>> additionally if inspect output a second time , the stdout string is gone,
>>> so maybe it flushes / deletes it ? is this normal ?
>>>
>>> On Fri, Nov 6, 2015 at 11:30 AM Dimitris Chloupis <kilon.alios(a)gmail.com>
>>> wrote:
>>>
>>>> looks like a vm problem after instruction of Thierry instead of
>>>>
>>>> wget -O- get.pharo.org/50+vmLatest | bash
>>>>
>>>> I did
>>>>
>>>> wget -O- get.pharo.org/50+vm | bash
>>>>
>>>> and now it works fine I can see the output with an inspection.
>>>>
>>>> Looks like something changed in the vm that broke this.
>>>>
>>>> On Fri, Nov 6, 2015 at 10:23 AM Dimitris Chloupis
>>>> <kilon.alios(a)gmail.com>
>>>> wrote:
>>>>
>>>>> good to know I am not the only one with this problem :) so how may I
>>>>> help
>>>>> solving this problem ?
>>>>>
>>>>> On Fri, Nov 6, 2015 at 10:11 AM john pfersich <jpfersich(a)gmail.com>
>>>>> wrote:
>>>>>
>>>>>> I tested what I posted on a fresh Pharo 4.0 image on OSX 10.10
>>>>>> (Yosemite) so it sounds like something's wrong in the trunk.
>>>>>>
>>>>>> On Thu, Nov 5, 2015 at 10:38 PM, Dimitris Chloupis <
>>>>>> kilon.alios(a)gmail.com> wrote:
>>>>>>
>>>>>>> It says I am using Cog 4.3.3
>>>>>>>
>>>>>>> I also used the code of John pfersich
>>>>>>>
>>>>>>> p :=(PipeableOSProcess waitForCommand: 'ls') .
>>>>>>> p output.
>>>>>>>
>>>>>>> and it still returns an empty string while the process is
>>>>>>>
>>>>>>> "a PipeableOSProcess on an ExternalUnixOSProcess with pid 769 on
>>>>>>> /bin/sh (complete, normal termination with status 0)"
>>>>>>>
>>>>>>> I tried debugging but it froze the image with a
>>>>>>>
>>>>>>> UndefinedObject(Object)>>doesNotUnderstand: #stepToCallee
>>>>>>>
>>>>>>> this happened inside BlockClosure >> newProcess at Processor
>>>>>>> terminateActive
>>>>>>>
>>>>>>> When I execute the command it works fine because I can see the output
>>>>>>> in the terminal.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Nov 6, 2015 at 5:23 AM David T. Lewis <lewis(a)mail.msen.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> On Fri, Nov 06, 2015 at 12:41:58AM +0000, Dimitris Chloupis wrote:
>>>>>>>>> hello David and thank you for your help and your detailed
>>>>>>>> explanation.
>>>>>>>>> as I said I used
>>>>>>>>>
>>>>>>>>> p :=(PipeableOSProcess command: 'ls') . p output.
>>>>>>>>>
>>>>>>>>> and it just returns an empty string.
>>>>>>>> The way this should work is that p (an instance of
>>>>>>>> PipeableOSProcess)
>>>>>>>> should
>>>>>>>> answer its output up to EOF (end of file) on the stdout from the
>>>>>>>> process.
>>>>>>>>
>>>>>>>> Can you please try stepping through this slowly in a debugger, and
>>>>>>>> see
>>>>>>>> if
>>>>>>>> it works? Or put "(Delay forSeconds: 1)" right before you do "p
>>>>>>>> output"?
>>>>>>>> I am guessing that there may be something about the OSProcessPlugin
>>>>>>>> in
>>>>>>>> your
>>>>>>>> VM that is causing EOF detection to fail, such that you just get an
>>>>>>>> empty
>>>>>>>> string as output.
>>>>>>>>
>>>>>>>> I do not have a Mac to test, so I am only guessing. It might also be
>>>>>>>> a
>>>>>>>> bug in the OSProcess plugin, I'm not sure.
>>>>>>>>
>>>>>>>> Just to help me identify what your are running, could you please
>>>>>>>> evaluate
>>>>>>>> "OSProcess accessor osppModuleVersionString" and let me know what it
>>>>>>>> says?
>>>>>>>> The current version would be '4.6.1' but other versions may be in
>>>>>>>> circulation,
>>>>>>>> and that could affect EOF detection.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Dave
>>>>>>>>
>>>>>>>>
>>>>>>>>> Are there other ways to return the output of the terminal ?
>>>>>>>>>
>>>>>>>>> On Fri, Nov 6, 2015 at 1:57 AM David T. Lewis
>>>>>>>> <lewis(a)mail.msen.com>
>>>>>>>> wrote:
>>>>>>>>>> On Thu, Nov 05, 2015 at 09:50:29PM +0000, Dimitris Chloupis
>>>>>>>> wrote:
>>>>>>>>>>> So I try to understand how OSProcess work exactly to find why
>>>>>>>> filetree
>>>>>>>>>>> seems not able to use it and generating the error I already
>>>>>>>> reported
>>>>>>>>>>> earlier.
>>>>>>>>>>>
>>>>>>>>>>> Using something simple like
>>>>>>>>>>>
>>>>>>>>>>> OSProcess command:'pwd'
>>>>>>>>>>>
>>>>>>>>>>> works great , I have the terminal open and I can see the
>>>>>>>> correct
>>>>>>>> return
>>>>>>>>>>> value of the command in my terminal but for some reason I can
>>>>>>>> find no
>>>>>>>>>> such
>>>>>>>>>>> info when I inspect the above example. So how exactly
>>>>>>>> OSProcess
>>>>>>>> returns
>>>>>>>>>> the
>>>>>>>>>>> output of the terminal ? Is there an instance variable of some
>>>>>>>> sort ?
>>>>>>>>>>> Because I tried to inspect it deeply and I found nothing . Can
>>>>>>>> you help
>>>>>>>>>> me
>>>>>>>>>>> understand how OSProcess work ? Because If I do understand it
>>>>>>>> then I can
>>>>>>>>>>> find what the problem is .
>>>>>>>>>> Hi Dimitris,
>>>>>>>>>>
>>>>>>>>>> The OSProcess and CommandShell packages provide a variety of
>>>>>>>> ways
>>>>>>>> to
>>>>>>>>>> create and interact with operating system processes. In the case
>>>>>>>> of
>>>>>>>>>> "OSProcess command: 'pwd'" it is starting a new unix shell
>>>>>>>> (/bin/sh, which
>>>>>>>>>> on most systems is the Bash shell). Once it starts the shell, it
>>>>>>>> asks
>>>>>>>>>> the shell to evaluate the 'pwd' command. In this case, you would
>>>>>>>> see the
>>>>>>>>>> output of that 'pwd' command appearing in the terminal window
>>>>>>>> for
>>>>>>>> your
>>>>>>>>>> Pharo VM process.
>>>>>>>>>>
>>>>>>>>>> If you inspect the result of this, you should see an instance of
>>>>>>>>>> ExternalUnixOSProcess. This is a proxy that represents the
>>>>>>>> operating
>>>>>>>>>> system process that was used to run /bin/sh. It should look
>>>>>>>> something like
>>>>>>>>>> this:
>>>>>>>>>>
>>>>>>>>>> an ExternalUnixOSProcess with pid 10703 on /bin/sh (complete,
>>>>>>>> normal
>>>>>>>>>> termination with status 0)
>>>>>>>>>>
>>>>>>>>>> The exitStatus instance variable of the ExternaUnixProcess
>>>>>>>> should
>>>>>>>> be 0 in
>>>>>>>>>> this example, which means only that the shell ran successfully
>>>>>>>> (It
>>>>>>>> does not
>>>>>>>>>> tell you exit status of the 'pwd' command in this case, although
>>>>>>>> there are
>>>>>>>>>> other ways to do that).
>>>>>>>>>>
>>>>>>>>>> There are other classes, especially PipeableOSProcess and
>>>>>>>> CommandShell,
>>>>>>>>>> that support higher level control of OS processes, with direct
>>>>>>>> connection
>>>>>>>>>> of the stdin/stdout/stderr streams to your Smalltalk image. I
>>>>>>>> expect that
>>>>>>>>>> filetree would be using these higher level abstractions.
>>>>>>>>>>
>>>>>>>>>> I don't know if this helps with your problem but maybe it gives
>>>>>>>> you some
>>>>>>>>>> ideas.
>>>>>>>>>>
>>>>>>>>>> Dave
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>
>>
>>
>>
>>
>> ------------------------------
>>
>> Message: 4
>> Date: Fri, 6 Nov 2015 22:06:19 +0100
>> From: stepharo <stepharo(a)free.fr>
>> To: Any question about pharo is welcome <pharo-users(a)lists.pharo.org>
>> Subject: Re: [Pharo-users] Documentations for Garage
>> Message-ID: <563D164B.8060500(a)free.fr>
>> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>>
>> http://guillep.github.io/DBXTalk/garage/
>>
>>
>> Le 5/11/15 12:54, lionelakue(a)gmail.com a ?crit :
>>> Hello
>>> I have attended a formation with Stephane Ducass in Lom?-Togo. And I
>>> am about to start a new project: an immobilier management application
>>> built in pharo with a pgsql database for a company here.
>>> So I am looking for some Documentation on Garage. For the basic purposes:
>>> -connection
>>> -queries
>>> -etc
>>> Thank you
>>
Nov. 7, 2015
Re: [Pharo-users] Pharo-users Digest, Vol 31, Issue 14
by Romy Van
Hi, I'm Koami from Lome.
I'm happy to be with You.
I need Garage Documentation for one of my test Application.
Thank's for your help.
Bye...
2015-11-07 6:13 UTC, pharo-users-request(a)lists.pharo.org
<pharo-users-request(a)lists.pharo.org>:
> Send Pharo-users mailing list submissions to
> pharo-users(a)lists.pharo.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.pharo.org/mailman/listinfo/pharo-users_lists.pharo.org
> or, via email, send a message with subject or body 'help' to
> pharo-users-request(a)lists.pharo.org
>
> You can reach the person managing the list at
> pharo-users-owner(a)lists.pharo.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Pharo-users digest..."
>
>
> Today's Topics:
>
> 1. Pharos-Book (Sebastian Heidbrink)
> 2. Re: Pharos-Book (Sebastian Heidbrink)
> 3. Re: Trying to understand OSProcess on MacOS Yosemite
> (David T. Lewis)
> 4. Re: Documentations for Garage (stepharo)
> 5. Re: Trying to understand OSProcess on MacOS Yosemite
> (John Pfersich)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 6 Nov 2015 09:40:47 -0800
> From: Sebastian Heidbrink <sheidev(a)yahoo.de>
> To: Any question about pharo is welcome <pharo-users(a)lists.pharo.org>
> Subject: [Pharo-users] Pharos-Book
> Message-ID: <563CE61F.7050902(a)yahoo.de>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Hi!
>
> Is there a CI server somewhere that currently builds the PharOS-Book?
>
> Or is there a place where the last built is available for download?
>
> Cheers!
> Sebastian
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 6 Nov 2015 09:44:13 -0800
> From: Sebastian Heidbrink <sheidev(a)yahoo.de>
> To: pharo-users(a)lists.pharo.org
> Subject: Re: [Pharo-users] Pharos-Book
> Message-ID: <563CE6ED.4030201(a)yahoo.de>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Actually before somebody expects a typo, I mean
>
> https://github.com/CARMinesDouai/PhaROS-Book
>
>
>
> On 2015-11-06 9:40 AM, Sebastian Heidbrink wrote:
>> Hi!
>>
>> Is there a CI server somewhere that currently builds the PharOS-Book?
>>
>> Or is there a place where the last built is available for download?
>>
>> Cheers!
>> Sebastian
>>
>>
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 6 Nov 2015 13:01:39 -0500 (EST)
> From: "David T. Lewis" <lewis(a)mail.msen.com>
> To: "Any question about pharo is welcome"
> <pharo-users(a)lists.pharo.org>
> Subject: Re: [Pharo-users] Trying to understand OSProcess on MacOS
> Yosemite
> Message-ID: <35691.136.2.1.102.1446832899.squirrel(a)webmail.msen.com>
> Content-Type: text/plain;charset=iso-8859-1
>
> Yes, that is normal. You are reading the output stream, and after it has
> been read (up to EOF) it will be empty.
>
> Glad it is working for you now :-)
>
> Dave
>
>> additionally if inspect output a second time , the stdout string is gone,
>> so maybe it flushes / deletes it ? is this normal ?
>>
>> On Fri, Nov 6, 2015 at 11:30 AM Dimitris Chloupis <kilon.alios(a)gmail.com>
>> wrote:
>>
>>> looks like a vm problem after instruction of Thierry instead of
>>>
>>> wget -O- get.pharo.org/50+vmLatest | bash
>>>
>>> I did
>>>
>>> wget -O- get.pharo.org/50+vm | bash
>>>
>>> and now it works fine I can see the output with an inspection.
>>>
>>> Looks like something changed in the vm that broke this.
>>>
>>> On Fri, Nov 6, 2015 at 10:23 AM Dimitris Chloupis
>>> <kilon.alios(a)gmail.com>
>>> wrote:
>>>
>>>> good to know I am not the only one with this problem :) so how may I
>>>> help
>>>> solving this problem ?
>>>>
>>>> On Fri, Nov 6, 2015 at 10:11 AM john pfersich <jpfersich(a)gmail.com>
>>>> wrote:
>>>>
>>>>> I tested what I posted on a fresh Pharo 4.0 image on OSX 10.10
>>>>> (Yosemite) so it sounds like something's wrong in the trunk.
>>>>>
>>>>> On Thu, Nov 5, 2015 at 10:38 PM, Dimitris Chloupis <
>>>>> kilon.alios(a)gmail.com> wrote:
>>>>>
>>>>>> It says I am using Cog 4.3.3
>>>>>>
>>>>>> I also used the code of John pfersich
>>>>>>
>>>>>> p :=(PipeableOSProcess waitForCommand: 'ls') .
>>>>>> p output.
>>>>>>
>>>>>> and it still returns an empty string while the process is
>>>>>>
>>>>>> "a PipeableOSProcess on an ExternalUnixOSProcess with pid 769 on
>>>>>> /bin/sh (complete, normal termination with status 0)"
>>>>>>
>>>>>> I tried debugging but it froze the image with a
>>>>>>
>>>>>> UndefinedObject(Object)>>doesNotUnderstand: #stepToCallee
>>>>>>
>>>>>> this happened inside BlockClosure >> newProcess at Processor
>>>>>> terminateActive
>>>>>>
>>>>>> When I execute the command it works fine because I can see the output
>>>>>> in the terminal.
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Nov 6, 2015 at 5:23 AM David T. Lewis <lewis(a)mail.msen.com>
>>>>>> wrote:
>>>>>>
>>>>>>> On Fri, Nov 06, 2015 at 12:41:58AM +0000, Dimitris Chloupis wrote:
>>>>>>> > hello David and thank you for your help and your detailed
>>>>>>> explanation.
>>>>>>> >
>>>>>>> > as I said I used
>>>>>>> >
>>>>>>> > p :=(PipeableOSProcess command: 'ls') . p output.
>>>>>>> >
>>>>>>> > and it just returns an empty string.
>>>>>>>
>>>>>>> The way this should work is that p (an instance of
>>>>>>> PipeableOSProcess)
>>>>>>> should
>>>>>>> answer its output up to EOF (end of file) on the stdout from the
>>>>>>> process.
>>>>>>>
>>>>>>> Can you please try stepping through this slowly in a debugger, and
>>>>>>> see
>>>>>>> if
>>>>>>> it works? Or put "(Delay forSeconds: 1)" right before you do "p
>>>>>>> output"?
>>>>>>> I am guessing that there may be something about the OSProcessPlugin
>>>>>>> in
>>>>>>> your
>>>>>>> VM that is causing EOF detection to fail, such that you just get an
>>>>>>> empty
>>>>>>> string as output.
>>>>>>>
>>>>>>> I do not have a Mac to test, so I am only guessing. It might also be
>>>>>>> a
>>>>>>> bug in the OSProcess plugin, I'm not sure.
>>>>>>>
>>>>>>> Just to help me identify what your are running, could you please
>>>>>>> evaluate
>>>>>>> "OSProcess accessor osppModuleVersionString" and let me know what it
>>>>>>> says?
>>>>>>> The current version would be '4.6.1' but other versions may be in
>>>>>>> circulation,
>>>>>>> and that could affect EOF detection.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Dave
>>>>>>>
>>>>>>>
>>>>>>> >
>>>>>>> > Are there other ways to return the output of the terminal ?
>>>>>>> >
>>>>>>> > On Fri, Nov 6, 2015 at 1:57 AM David T. Lewis
>>>>>>> <lewis(a)mail.msen.com>
>>>>>>> wrote:
>>>>>>> >
>>>>>>> > > On Thu, Nov 05, 2015 at 09:50:29PM +0000, Dimitris Chloupis
>>>>>>> wrote:
>>>>>>> > > > So I try to understand how OSProcess work exactly to find why
>>>>>>> filetree
>>>>>>> > > > seems not able to use it and generating the error I already
>>>>>>> reported
>>>>>>> > > > earlier.
>>>>>>> > > >
>>>>>>> > > > Using something simple like
>>>>>>> > > >
>>>>>>> > > > OSProcess command:'pwd'
>>>>>>> > > >
>>>>>>> > > > works great , I have the terminal open and I can see the
>>>>>>> correct
>>>>>>> return
>>>>>>> > > > value of the command in my terminal but for some reason I can
>>>>>>> find no
>>>>>>> > > such
>>>>>>> > > > info when I inspect the above example. So how exactly
>>>>>>> OSProcess
>>>>>>> returns
>>>>>>> > > the
>>>>>>> > > > output of the terminal ? Is there an instance variable of some
>>>>>>> sort ?
>>>>>>> > > > Because I tried to inspect it deeply and I found nothing . Can
>>>>>>> you help
>>>>>>> > > me
>>>>>>> > > > understand how OSProcess work ? Because If I do understand it
>>>>>>> then I can
>>>>>>> > > > find what the problem is .
>>>>>>> > >
>>>>>>> > > Hi Dimitris,
>>>>>>> > >
>>>>>>> > > The OSProcess and CommandShell packages provide a variety of
>>>>>>> ways
>>>>>>> to
>>>>>>> > > create and interact with operating system processes. In the case
>>>>>>> of
>>>>>>> > > "OSProcess command: 'pwd'" it is starting a new unix shell
>>>>>>> (/bin/sh, which
>>>>>>> > > on most systems is the Bash shell). Once it starts the shell, it
>>>>>>> asks
>>>>>>> > > the shell to evaluate the 'pwd' command. In this case, you would
>>>>>>> see the
>>>>>>> > > output of that 'pwd' command appearing in the terminal window
>>>>>>> for
>>>>>>> your
>>>>>>> > > Pharo VM process.
>>>>>>> > >
>>>>>>> > > If you inspect the result of this, you should see an instance of
>>>>>>> > > ExternalUnixOSProcess. This is a proxy that represents the
>>>>>>> operating
>>>>>>> > > system process that was used to run /bin/sh. It should look
>>>>>>> something like
>>>>>>> > > this:
>>>>>>> > >
>>>>>>> > > an ExternalUnixOSProcess with pid 10703 on /bin/sh (complete,
>>>>>>> normal
>>>>>>> > > termination with status 0)
>>>>>>> > >
>>>>>>> > > The exitStatus instance variable of the ExternaUnixProcess
>>>>>>> should
>>>>>>> be 0 in
>>>>>>> > > this example, which means only that the shell ran successfully
>>>>>>> (It
>>>>>>> does not
>>>>>>> > > tell you exit status of the 'pwd' command in this case, although
>>>>>>> there are
>>>>>>> > > other ways to do that).
>>>>>>> > >
>>>>>>> > > There are other classes, especially PipeableOSProcess and
>>>>>>> CommandShell,
>>>>>>> > > that support higher level control of OS processes, with direct
>>>>>>> connection
>>>>>>> > > of the stdin/stdout/stderr streams to your Smalltalk image. I
>>>>>>> expect that
>>>>>>> > > filetree would be using these higher level abstractions.
>>>>>>> > >
>>>>>>> > > I don't know if this helps with your problem but maybe it gives
>>>>>>> you some
>>>>>>> > > ideas.
>>>>>>> > >
>>>>>>> > > Dave
>>>>>>> > >
>>>>>>> > >
>>>>>>> > >
>>>>>>>
>>>>>>>
>>>>>
>>
>
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 6 Nov 2015 22:06:19 +0100
> From: stepharo <stepharo(a)free.fr>
> To: Any question about pharo is welcome <pharo-users(a)lists.pharo.org>
> Subject: Re: [Pharo-users] Documentations for Garage
> Message-ID: <563D164B.8060500(a)free.fr>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> http://guillep.github.io/DBXTalk/garage/
>
>
> Le 5/11/15 12:54, lionelakue(a)gmail.com a ?crit :
>> Hello
>> I have attended a formation with Stephane Ducass in Lom?-Togo. And I
>> am about to start a new project: an immobilier management application
>> built in pharo with a pgsql database for a company here.
>> So I am looking for some Documentation on Garage. For the basic purposes:
>> -connection
>> -queries
>> -etc
>> Thank you
>
>
Nov. 7, 2015
Re: [Pharo-users] Trying to understand OSProcess on MacOS Yosemite
by Dimitris Chloupis
done
https://pharo.fogbugz.com/f/cases/16944/OSProcess-stdout-is-not-returned-ba…
On Sat, Nov 7, 2015 at 8:13 AM John Pfersich <jpfersich(a)gmail.com> wrote:
>
> - Can you open a bug entry on http://pharo.fogbugz.com? This worked in
> Pharo 4.0.
>
>
> Sent from my iPad
>
> On Nov 6, 2015, at 01:30, Dimitris Chloupis <kilon.alios(a)gmail.com> wrote:
>
> looks like a vm problem after instruction of Thierry instead of
>
> wget -O- get.pharo.org/50+vmLatest | bash
>
> I did
>
> wget -O- get.pharo.org/50+vm | bash
>
> and now it works fine I can see the output with an inspection.
>
> Looks like something changed in the vm that broke this.
>
> On Fri, Nov 6, 2015 at 10:23 AM Dimitris Chloupis <kilon.alios(a)gmail.com>
> wrote:
>
>> good to know I am not the only one with this problem :) so how may I help
>> solving this problem ?
>>
>> On Fri, Nov 6, 2015 at 10:11 AM john pfersich <jpfersich(a)gmail.com>
>> wrote:
>>
>>> I tested what I posted on a fresh Pharo 4.0 image on OSX 10.10
>>> (Yosemite) so it sounds like something's wrong in the trunk.
>>>
>>> On Thu, Nov 5, 2015 at 10:38 PM, Dimitris Chloupis <
>>> kilon.alios(a)gmail.com> wrote:
>>>
>>>> It says I am using Cog 4.3.3
>>>>
>>>> I also used the code of John pfersich
>>>>
>>>> p :=(PipeableOSProcess waitForCommand: 'ls') .
>>>> p output.
>>>>
>>>> and it still returns an empty string while the process is
>>>>
>>>> "a PipeableOSProcess on an ExternalUnixOSProcess with pid 769 on
>>>> /bin/sh (complete, normal termination with status 0)"
>>>>
>>>> I tried debugging but it froze the image with a
>>>>
>>>> UndefinedObject(Object)>>doesNotUnderstand: #stepToCallee
>>>>
>>>> this happened inside BlockClosure >> newProcess at Processor
>>>> terminateActive
>>>>
>>>> When I execute the command it works fine because I can see the output
>>>> in the terminal.
>>>>
>>>>
>>>>
>>>> On Fri, Nov 6, 2015 at 5:23 AM David T. Lewis <lewis(a)mail.msen.com>
>>>> wrote:
>>>>
>>>>> On Fri, Nov 06, 2015 at 12:41:58AM +0000, Dimitris Chloupis wrote:
>>>>> > hello David and thank you for your help and your detailed
>>>>> explanation.
>>>>> >
>>>>> > as I said I used
>>>>> >
>>>>> > p :=(PipeableOSProcess command: 'ls') . p output.
>>>>> >
>>>>> > and it just returns an empty string.
>>>>>
>>>>> The way this should work is that p (an instance of PipeableOSProcess)
>>>>> should
>>>>> answer its output up to EOF (end of file) on the stdout from the
>>>>> process.
>>>>>
>>>>> Can you please try stepping through this slowly in a debugger, and see
>>>>> if
>>>>> it works? Or put "(Delay forSeconds: 1)" right before you do "p
>>>>> output"?
>>>>> I am guessing that there may be something about the OSProcessPlugin in
>>>>> your
>>>>> VM that is causing EOF detection to fail, such that you just get an
>>>>> empty
>>>>> string as output.
>>>>>
>>>>> I do not have a Mac to test, so I am only guessing. It might also be a
>>>>> bug in the OSProcess plugin, I'm not sure.
>>>>>
>>>>> Just to help me identify what your are running, could you please
>>>>> evaluate
>>>>> "OSProcess accessor osppModuleVersionString" and let me know what it
>>>>> says?
>>>>> The current version would be '4.6.1' but other versions may be in
>>>>> circulation,
>>>>> and that could affect EOF detection.
>>>>>
>>>>> Thanks,
>>>>> Dave
>>>>>
>>>>>
>>>>> >
>>>>> > Are there other ways to return the output of the terminal ?
>>>>> >
>>>>> > On Fri, Nov 6, 2015 at 1:57 AM David T. Lewis <lewis(a)mail.msen.com>
>>>>> wrote:
>>>>> >
>>>>> > > On Thu, Nov 05, 2015 at 09:50:29PM +0000, Dimitris Chloupis wrote:
>>>>> > > > So I try to understand how OSProcess work exactly to find why
>>>>> filetree
>>>>> > > > seems not able to use it and generating the error I already
>>>>> reported
>>>>> > > > earlier.
>>>>> > > >
>>>>> > > > Using something simple like
>>>>> > > >
>>>>> > > > OSProcess command:'pwd'
>>>>> > > >
>>>>> > > > works great , I have the terminal open and I can see the correct
>>>>> return
>>>>> > > > value of the command in my terminal but for some reason I can
>>>>> find no
>>>>> > > such
>>>>> > > > info when I inspect the above example. So how exactly OSProcess
>>>>> returns
>>>>> > > the
>>>>> > > > output of the terminal ? Is there an instance variable of some
>>>>> sort ?
>>>>> > > > Because I tried to inspect it deeply and I found nothing . Can
>>>>> you help
>>>>> > > me
>>>>> > > > understand how OSProcess work ? Because If I do understand it
>>>>> then I can
>>>>> > > > find what the problem is .
>>>>> > >
>>>>> > > Hi Dimitris,
>>>>> > >
>>>>> > > The OSProcess and CommandShell packages provide a variety of ways
>>>>> to
>>>>> > > create and interact with operating system processes. In the case of
>>>>> > > "OSProcess command: 'pwd'" it is starting a new unix shell
>>>>> (/bin/sh, which
>>>>> > > on most systems is the Bash shell). Once it starts the shell, it
>>>>> asks
>>>>> > > the shell to evaluate the 'pwd' command. In this case, you would
>>>>> see the
>>>>> > > output of that 'pwd' command appearing in the terminal window for
>>>>> your
>>>>> > > Pharo VM process.
>>>>> > >
>>>>> > > If you inspect the result of this, you should see an instance of
>>>>> > > ExternalUnixOSProcess. This is a proxy that represents the
>>>>> operating
>>>>> > > system process that was used to run /bin/sh. It should look
>>>>> something like
>>>>> > > this:
>>>>> > >
>>>>> > > an ExternalUnixOSProcess with pid 10703 on /bin/sh (complete,
>>>>> normal
>>>>> > > termination with status 0)
>>>>> > >
>>>>> > > The exitStatus instance variable of the ExternaUnixProcess should
>>>>> be 0 in
>>>>> > > this example, which means only that the shell ran successfully (It
>>>>> does not
>>>>> > > tell you exit status of the 'pwd' command in this case, although
>>>>> there are
>>>>> > > other ways to do that).
>>>>> > >
>>>>> > > There are other classes, especially PipeableOSProcess and
>>>>> CommandShell,
>>>>> > > that support higher level control of OS processes, with direct
>>>>> connection
>>>>> > > of the stdin/stdout/stderr streams to your Smalltalk image. I
>>>>> expect that
>>>>> > > filetree would be using these higher level abstractions.
>>>>> > >
>>>>> > > I don't know if this helps with your problem but maybe it gives
>>>>> you some
>>>>> > > ideas.
>>>>> > >
>>>>> > > Dave
>>>>> > >
>>>>> > >
>>>>> > >
>>>>>
>>>>>
>>>
Nov. 7, 2015
Re: [Pharo-users] Trying to understand OSProcess on MacOS Yosemite
by John Pfersich
Can you open a bug entry on http://pharo.fogbugz.com? This worked in Pharo 4.0.
Sent from my iPad
> On Nov 6, 2015, at 01:30, Dimitris Chloupis <kilon.alios(a)gmail.com> wrote:
>
> looks like a vm problem after instruction of Thierry instead of
>
> wget -O- get.pharo.org/50+vmLatest | bash
>
> I did
>
> wget -O- get.pharo.org/50+vm | bash
>
> and now it works fine I can see the output with an inspection.
>
> Looks like something changed in the vm that broke this.
>
>> On Fri, Nov 6, 2015 at 10:23 AM Dimitris Chloupis <kilon.alios(a)gmail.com> wrote:
>> good to know I am not the only one with this problem :) so how may I help solving this problem ?
>>
>>> On Fri, Nov 6, 2015 at 10:11 AM john pfersich <jpfersich(a)gmail.com> wrote:
>>> I tested what I posted on a fresh Pharo 4.0 image on OSX 10.10 (Yosemite) so it sounds like something's wrong in the trunk.
>>>
>>>> On Thu, Nov 5, 2015 at 10:38 PM, Dimitris Chloupis <kilon.alios(a)gmail.com> wrote:
>>>> It says I am using Cog 4.3.3
>>>>
>>>> I also used the code of John pfersich
>>>>
>>>> p :=(PipeableOSProcess waitForCommand: 'ls') .
>>>> p output.
>>>>
>>>> and it still returns an empty string while the process is
>>>>
>>>> "a PipeableOSProcess on an ExternalUnixOSProcess with pid 769 on /bin/sh (complete, normal termination with status 0)"
>>>>
>>>> I tried debugging but it froze the image with a
>>>>
>>>> UndefinedObject(Object)>>doesNotUnderstand: #stepToCallee
>>>>
>>>> this happened inside BlockClosure >> newProcess at Processor terminateActive
>>>>
>>>> When I execute the command it works fine because I can see the output in the terminal.
>>>>
>>>>
>>>>
>>>>> On Fri, Nov 6, 2015 at 5:23 AM David T. Lewis <lewis(a)mail.msen.com> wrote:
>>>>> On Fri, Nov 06, 2015 at 12:41:58AM +0000, Dimitris Chloupis wrote:
>>>>> > hello David and thank you for your help and your detailed explanation.
>>>>> >
>>>>> > as I said I used
>>>>> >
>>>>> > p :=(PipeableOSProcess command: 'ls') . p output.
>>>>> >
>>>>> > and it just returns an empty string.
>>>>>
>>>>> The way this should work is that p (an instance of PipeableOSProcess) should
>>>>> answer its output up to EOF (end of file) on the stdout from the process.
>>>>>
>>>>> Can you please try stepping through this slowly in a debugger, and see if
>>>>> it works? Or put "(Delay forSeconds: 1)" right before you do "p output"?
>>>>> I am guessing that there may be something about the OSProcessPlugin in your
>>>>> VM that is causing EOF detection to fail, such that you just get an empty
>>>>> string as output.
>>>>>
>>>>> I do not have a Mac to test, so I am only guessing. It might also be a
>>>>> bug in the OSProcess plugin, I'm not sure.
>>>>>
>>>>> Just to help me identify what your are running, could you please evaluate
>>>>> "OSProcess accessor osppModuleVersionString" and let me know what it says?
>>>>> The current version would be '4.6.1' but other versions may be in circulation,
>>>>> and that could affect EOF detection.
>>>>>
>>>>> Thanks,
>>>>> Dave
>>>>>
>>>>>
>>>>> >
>>>>> > Are there other ways to return the output of the terminal ?
>>>>> >
>>>>> > On Fri, Nov 6, 2015 at 1:57 AM David T. Lewis <lewis(a)mail.msen.com> wrote:
>>>>> >
>>>>> > > On Thu, Nov 05, 2015 at 09:50:29PM +0000, Dimitris Chloupis wrote:
>>>>> > > > So I try to understand how OSProcess work exactly to find why filetree
>>>>> > > > seems not able to use it and generating the error I already reported
>>>>> > > > earlier.
>>>>> > > >
>>>>> > > > Using something simple like
>>>>> > > >
>>>>> > > > OSProcess command:'pwd'
>>>>> > > >
>>>>> > > > works great , I have the terminal open and I can see the correct return
>>>>> > > > value of the command in my terminal but for some reason I can find no
>>>>> > > such
>>>>> > > > info when I inspect the above example. So how exactly OSProcess returns
>>>>> > > the
>>>>> > > > output of the terminal ? Is there an instance variable of some sort ?
>>>>> > > > Because I tried to inspect it deeply and I found nothing . Can you help
>>>>> > > me
>>>>> > > > understand how OSProcess work ? Because If I do understand it then I can
>>>>> > > > find what the problem is .
>>>>> > >
>>>>> > > Hi Dimitris,
>>>>> > >
>>>>> > > The OSProcess and CommandShell packages provide a variety of ways to
>>>>> > > create and interact with operating system processes. In the case of
>>>>> > > "OSProcess command: 'pwd'" it is starting a new unix shell (/bin/sh, which
>>>>> > > on most systems is the Bash shell). Once it starts the shell, it asks
>>>>> > > the shell to evaluate the 'pwd' command. In this case, you would see the
>>>>> > > output of that 'pwd' command appearing in the terminal window for your
>>>>> > > Pharo VM process.
>>>>> > >
>>>>> > > If you inspect the result of this, you should see an instance of
>>>>> > > ExternalUnixOSProcess. This is a proxy that represents the operating
>>>>> > > system process that was used to run /bin/sh. It should look something like
>>>>> > > this:
>>>>> > >
>>>>> > > an ExternalUnixOSProcess with pid 10703 on /bin/sh (complete, normal
>>>>> > > termination with status 0)
>>>>> > >
>>>>> > > The exitStatus instance variable of the ExternaUnixProcess should be 0 in
>>>>> > > this example, which means only that the shell ran successfully (It does not
>>>>> > > tell you exit status of the 'pwd' command in this case, although there are
>>>>> > > other ways to do that).
>>>>> > >
>>>>> > > There are other classes, especially PipeableOSProcess and CommandShell,
>>>>> > > that support higher level control of OS processes, with direct connection
>>>>> > > of the stdin/stdout/stderr streams to your Smalltalk image. I expect that
>>>>> > > filetree would be using these higher level abstractions.
>>>>> > >
>>>>> > > I don't know if this helps with your problem but maybe it gives you some
>>>>> > > ideas.
>>>>> > >
>>>>> > > Dave
>>>>> > >
>>>>> > >
>>>>> > >
Nov. 7, 2015
Re: [Pharo-users] Documentations for Garage
by stepharo
http://guillep.github.io/DBXTalk/garage/
Le 5/11/15 12:54, lionelakue(a)gmail.com a écrit :
> Hello
> I have attended a formation with Stephane Ducass in Lomé-Togo. And I
> am about to start a new project: an immobilier management application
> built in pharo with a pgsql database for a company here.
> So I am looking for some Documentation on Garage. For the basic purposes:
> -connection
> -queries
> -etc
> Thank you
Nov. 6, 2015
Re: [Pharo-users] Trying to understand OSProcess on MacOS Yosemite
by David T. Lewis
Yes, that is normal. You are reading the output stream, and after it has
been read (up to EOF) it will be empty.
Glad it is working for you now :-)
Dave
> additionally if inspect output a second time , the stdout string is gone,
> so maybe it flushes / deletes it ? is this normal ?
>
> On Fri, Nov 6, 2015 at 11:30 AM Dimitris Chloupis <kilon.alios(a)gmail.com>
> wrote:
>
>> looks like a vm problem after instruction of Thierry instead of
>>
>> wget -O- get.pharo.org/50+vmLatest | bash
>>
>> I did
>>
>> wget -O- get.pharo.org/50+vm | bash
>>
>> and now it works fine I can see the output with an inspection.
>>
>> Looks like something changed in the vm that broke this.
>>
>> On Fri, Nov 6, 2015 at 10:23 AM Dimitris Chloupis
>> <kilon.alios(a)gmail.com>
>> wrote:
>>
>>> good to know I am not the only one with this problem :) so how may I
>>> help
>>> solving this problem ?
>>>
>>> On Fri, Nov 6, 2015 at 10:11 AM john pfersich <jpfersich(a)gmail.com>
>>> wrote:
>>>
>>>> I tested what I posted on a fresh Pharo 4.0 image on OSX 10.10
>>>> (Yosemite) so it sounds like something's wrong in the trunk.
>>>>
>>>> On Thu, Nov 5, 2015 at 10:38 PM, Dimitris Chloupis <
>>>> kilon.alios(a)gmail.com> wrote:
>>>>
>>>>> It says I am using Cog 4.3.3
>>>>>
>>>>> I also used the code of John pfersich
>>>>>
>>>>> p :=(PipeableOSProcess waitForCommand: 'ls') .
>>>>> p output.
>>>>>
>>>>> and it still returns an empty string while the process is
>>>>>
>>>>> "a PipeableOSProcess on an ExternalUnixOSProcess with pid 769 on
>>>>> /bin/sh (complete, normal termination with status 0)"
>>>>>
>>>>> I tried debugging but it froze the image with a
>>>>>
>>>>> UndefinedObject(Object)>>doesNotUnderstand: #stepToCallee
>>>>>
>>>>> this happened inside BlockClosure >> newProcess at Processor
>>>>> terminateActive
>>>>>
>>>>> When I execute the command it works fine because I can see the output
>>>>> in the terminal.
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Nov 6, 2015 at 5:23 AM David T. Lewis <lewis(a)mail.msen.com>
>>>>> wrote:
>>>>>
>>>>>> On Fri, Nov 06, 2015 at 12:41:58AM +0000, Dimitris Chloupis wrote:
>>>>>> > hello David and thank you for your help and your detailed
>>>>>> explanation.
>>>>>> >
>>>>>> > as I said I used
>>>>>> >
>>>>>> > p :=(PipeableOSProcess command: 'ls') . p output.
>>>>>> >
>>>>>> > and it just returns an empty string.
>>>>>>
>>>>>> The way this should work is that p (an instance of
>>>>>> PipeableOSProcess)
>>>>>> should
>>>>>> answer its output up to EOF (end of file) on the stdout from the
>>>>>> process.
>>>>>>
>>>>>> Can you please try stepping through this slowly in a debugger, and
>>>>>> see
>>>>>> if
>>>>>> it works? Or put "(Delay forSeconds: 1)" right before you do "p
>>>>>> output"?
>>>>>> I am guessing that there may be something about the OSProcessPlugin
>>>>>> in
>>>>>> your
>>>>>> VM that is causing EOF detection to fail, such that you just get an
>>>>>> empty
>>>>>> string as output.
>>>>>>
>>>>>> I do not have a Mac to test, so I am only guessing. It might also be
>>>>>> a
>>>>>> bug in the OSProcess plugin, I'm not sure.
>>>>>>
>>>>>> Just to help me identify what your are running, could you please
>>>>>> evaluate
>>>>>> "OSProcess accessor osppModuleVersionString" and let me know what it
>>>>>> says?
>>>>>> The current version would be '4.6.1' but other versions may be in
>>>>>> circulation,
>>>>>> and that could affect EOF detection.
>>>>>>
>>>>>> Thanks,
>>>>>> Dave
>>>>>>
>>>>>>
>>>>>> >
>>>>>> > Are there other ways to return the output of the terminal ?
>>>>>> >
>>>>>> > On Fri, Nov 6, 2015 at 1:57 AM David T. Lewis
>>>>>> <lewis(a)mail.msen.com>
>>>>>> wrote:
>>>>>> >
>>>>>> > > On Thu, Nov 05, 2015 at 09:50:29PM +0000, Dimitris Chloupis
>>>>>> wrote:
>>>>>> > > > So I try to understand how OSProcess work exactly to find why
>>>>>> filetree
>>>>>> > > > seems not able to use it and generating the error I already
>>>>>> reported
>>>>>> > > > earlier.
>>>>>> > > >
>>>>>> > > > Using something simple like
>>>>>> > > >
>>>>>> > > > OSProcess command:'pwd'
>>>>>> > > >
>>>>>> > > > works great , I have the terminal open and I can see the
>>>>>> correct
>>>>>> return
>>>>>> > > > value of the command in my terminal but for some reason I can
>>>>>> find no
>>>>>> > > such
>>>>>> > > > info when I inspect the above example. So how exactly
>>>>>> OSProcess
>>>>>> returns
>>>>>> > > the
>>>>>> > > > output of the terminal ? Is there an instance variable of some
>>>>>> sort ?
>>>>>> > > > Because I tried to inspect it deeply and I found nothing . Can
>>>>>> you help
>>>>>> > > me
>>>>>> > > > understand how OSProcess work ? Because If I do understand it
>>>>>> then I can
>>>>>> > > > find what the problem is .
>>>>>> > >
>>>>>> > > Hi Dimitris,
>>>>>> > >
>>>>>> > > The OSProcess and CommandShell packages provide a variety of
>>>>>> ways
>>>>>> to
>>>>>> > > create and interact with operating system processes. In the case
>>>>>> of
>>>>>> > > "OSProcess command: 'pwd'" it is starting a new unix shell
>>>>>> (/bin/sh, which
>>>>>> > > on most systems is the Bash shell). Once it starts the shell, it
>>>>>> asks
>>>>>> > > the shell to evaluate the 'pwd' command. In this case, you would
>>>>>> see the
>>>>>> > > output of that 'pwd' command appearing in the terminal window
>>>>>> for
>>>>>> your
>>>>>> > > Pharo VM process.
>>>>>> > >
>>>>>> > > If you inspect the result of this, you should see an instance of
>>>>>> > > ExternalUnixOSProcess. This is a proxy that represents the
>>>>>> operating
>>>>>> > > system process that was used to run /bin/sh. It should look
>>>>>> something like
>>>>>> > > this:
>>>>>> > >
>>>>>> > > an ExternalUnixOSProcess with pid 10703 on /bin/sh (complete,
>>>>>> normal
>>>>>> > > termination with status 0)
>>>>>> > >
>>>>>> > > The exitStatus instance variable of the ExternaUnixProcess
>>>>>> should
>>>>>> be 0 in
>>>>>> > > this example, which means only that the shell ran successfully
>>>>>> (It
>>>>>> does not
>>>>>> > > tell you exit status of the 'pwd' command in this case, although
>>>>>> there are
>>>>>> > > other ways to do that).
>>>>>> > >
>>>>>> > > There are other classes, especially PipeableOSProcess and
>>>>>> CommandShell,
>>>>>> > > that support higher level control of OS processes, with direct
>>>>>> connection
>>>>>> > > of the stdin/stdout/stderr streams to your Smalltalk image. I
>>>>>> expect that
>>>>>> > > filetree would be using these higher level abstractions.
>>>>>> > >
>>>>>> > > I don't know if this helps with your problem but maybe it gives
>>>>>> you some
>>>>>> > > ideas.
>>>>>> > >
>>>>>> > > Dave
>>>>>> > >
>>>>>> > >
>>>>>> > >
>>>>>>
>>>>>>
>>>>
>
Nov. 6, 2015