Git (gitfiletree) on Pharo vs Windows

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
33 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Git (gitfiletree) on Pharo vs Windows

Jan Blizničenko
Hello

We are moving our project from smalltalkhub to github. Gitfiletree seems to be working as expected on linux, but there are some of us (well, me) who would like to contribute from Windows, but I am unable to make it working (which is, of course, also "as expected" :) ).

What do I have:

Windows 7 64bit
Pharo 4 (#40496)
Pharo VM for win, tried both stable (371 from 2014-09-25) and latest (410 from 2015-02-17)
git version 1.9.5.msysgit.0

What did I try:

1) using Git for Windows from http://git-scm.com/downloads
2) cloning our project into ~/Pharo/repo  (this created folder structure ~/Pharo/repo/dynacase/repository where all package folders are, along with .git folder in ~Pharo/repo/dynacase
3) downloading clean Pharo 4 platform
4) running from playground (tried both MetaRepoForPharo40 and 30):
Gofer new
  url: 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo40/main';
  configurationOf: 'GitFileTree';
  loadDevelopment.
5) this step I tried only once in few tries: updating all OSProcess and CommandShell packages to latest commits
6) adding repository to Monticello, selected gitfiletree://, selected folder ~/Pharo/repo/dynacase/repository , OK

Result was being swamped by exceptions every time.
When I did step 5, I got different exceptions and, also, windows command line has opened (but "empty", ie. like if I opened it myself in folder with Pharo.exe and left like that)

Only thing that worked for me was adding this local repository as regular filetree (not gitfiletree), commiting there, and than commiting same thing once again with git via command line (or git bash).

I would like to ask for help with making it work somehow better.

Here are saved images from moments when I confirmed adding gitfiletree repository with those mentioned exceptions and errors:
https://www.mediafire.com/folder/879qs8srf5ice/PharoGitConfigs
(30 = using MetaRepoForPharo30, 40 = using MetaRepoForPharo40, latest = using MetaRepoForPharo40 + loading latest packages)

Thank you
Jan Blizničenko
Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

Thierry Goubier

Hi Jan,

Thanks for your interest and motivation. I have rewritten part of the git commands in gitfiletree in a way which should make it easier to get it to work on windows (and corrected a few bugs).

I can't have access to a computer right now, so I'll be able to give you things to try (if you want) a bit later.

Thierry

Le 21 févr. 2015 13:26, "Jan B." <[hidden email]> a écrit :
Hello

We are moving our project from smalltalkhub to github. Gitfiletree seems to
be working as expected on linux, but there are some of us (well, me) who
would like to contribute from Windows, but I am unable to make it working
(which is, of course, also "as expected" :) ).

What do I have:

Windows 7 64bit
Pharo 4 (#40496)
Pharo VM for win, tried both stable (371 from 2014-09-25) and latest (410
from 2015-02-17)
git version 1.9.5.msysgit.0

What did I try:

1) using Git for Windows from http://git-scm.com/downloads
2) cloning our project into ~/Pharo/repo  (this created folder structure
~/Pharo/repo/dynacase/repository where all package folders are, along with
.git folder in ~Pharo/repo/dynacase
3) downloading clean Pharo 4 platform
4) running from playground (tried both MetaRepoForPharo40 and 30):
Gofer new
  url: 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo40/main';
  configurationOf: 'GitFileTree';
  loadDevelopment.
5) this step I tried only once in few tries: updating all OSProcess and
CommandShell packages to latest commits
6) adding repository to Monticello, selected gitfiletree://, selected folder
~/Pharo/repo/dynacase/repository , OK

Result was being swamped by exceptions every time.
When I did step 5, I got different exceptions and, also, windows command
line has opened (but "empty", ie. like if I opened it myself in folder with
Pharo.exe and left like that)

Only thing that worked for me was adding this local repository as regular
filetree (not gitfiletree), commiting there, and than commiting same thing
once again with git via command line (or git bash).

I would like to ask for help with making it work somehow better.

Here are saved images from moments when I confirmed adding gitfiletree
repository with those mentioned exceptions and errors:
https://www.mediafire.com/folder/879qs8srf5ice/PharoGitConfigs
(30 = using MetaRepoForPharo30, 40 = using MetaRepoForPharo40, latest =
using MetaRepoForPharo40 + loading latest packages)

Thank you
Jan Blizničenko



--
View this message in context: http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

Thierry Goubier
In reply to this post by Jan Blizničenko
Hi Jan,

ok, the latest cod for GitFileTree is available on a dedicated branch on
filetree. The way to load it is:

Metacello new
        baseline: 'FileTree';
        repository: 'github://dalehenrich/filetree:issue_142/repository';
        load: 'Git'

It rely on OSProcess, and I'm not entirely sure of OSProcess on windows,
but I've simplified the commands, in part to ease an eventual Windows
support. So, if you happen to be able to test?

I would suggest pharo3.0 as your platform. I think changes to filetree
to handle pharo4.0 are still on a separate branch.

Thierry

le 21/02/2015 13:19, Jan B. a écrit :

> Hello
>
> We are moving our project from smalltalkhub to github. Gitfiletree seems to
> be working as expected on linux, but there are some of us (well, me) who
> would like to contribute from Windows, but I am unable to make it working
> (which is, of course, also "as expected" :) ).
>
> What do I have:
>
> Windows 7 64bit
> Pharo 4 (#40496)
> Pharo VM for win, tried both stable (371 from 2014-09-25) and latest (410
> from 2015-02-17)
> git version 1.9.5.msysgit.0
>
> What did I try:
>
> 1) using Git for Windows from http://git-scm.com/downloads
> 2) cloning our project into ~/Pharo/repo  (this created folder structure
> ~/Pharo/repo/dynacase/repository where all package folders are, along with
> .git folder in ~Pharo/repo/dynacase
> 3) downloading clean Pharo 4 platform
> 4) running from playground (tried both MetaRepoForPharo40 and 30):
> Gofer new
>    url: 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo40/main';
>    configurationOf: 'GitFileTree';
>    loadDevelopment.
> 5) this step I tried only once in few tries: updating all OSProcess and
> CommandShell packages to latest commits
> 6) adding repository to Monticello, selected gitfiletree://, selected folder
> ~/Pharo/repo/dynacase/repository , OK
>
> Result was being swamped by exceptions every time.
> When I did step 5, I got different exceptions and, also, windows command
> line has opened (but "empty", ie. like if I opened it myself in folder with
> Pharo.exe and left like that)
>
> Only thing that worked for me was adding this local repository as regular
> filetree (not gitfiletree), commiting there, and than commiting same thing
> once again with git via command line (or git bash).
>
> I would like to ask for help with making it work somehow better.
>
> Here are saved images from moments when I confirmed adding gitfiletree
> repository with those mentioned exceptions and errors:
> https://www.mediafire.com/folder/879qs8srf5ice/PharoGitConfigs
> (30 = using MetaRepoForPharo30, 40 = using MetaRepoForPharo40, latest =
> using MetaRepoForPharo40 + loading latest packages)
>
> Thank you
> Jan Blizničenko
>
>
>
> --
> View this message in context: http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

Jan Blizničenko
Hi

Thanks for reply.

When I run this load command on Pharo 3, I get exception "FileDoesNotExist: @ \tmp\github-dalehenrichfiletreeissue142.zip"

On Pharo 4, it loads. But when I try to add gitfiletree repository now (ie. clean pharo 4 platfrom -> your
issue 142 load command -> adding gitfiletree repository), I get exception "MessageNotUnderstood: ExternalWindowsOSProcess class>>defaultShellPath

When I afterwards try to manually load latest OSProcess packages, I get the same exception like before, without this issue 142 loading: "MessageNotUnderstood: receiver of "addFirst:" is nil

Jan

Thierry Goubier wrote
Hi Jan,

ok, the latest cod for GitFileTree is available on a dedicated branch on
filetree. The way to load it is:

Metacello new
        baseline: 'FileTree';
        repository: 'github://dalehenrich/filetree:issue_142/repository';
        load: 'Git'

It rely on OSProcess, and I'm not entirely sure of OSProcess on windows,
but I've simplified the commands, in part to ease an eventual Windows
support. So, if you happen to be able to test?

I would suggest pharo3.0 as your platform. I think changes to filetree
to handle pharo4.0 are still on a separate branch.

Thierry

le 21/02/2015 13:19, Jan B. a écrit :
> Hello
>
> We are moving our project from smalltalkhub to github. Gitfiletree seems to
> be working as expected on linux, but there are some of us (well, me) who
> would like to contribute from Windows, but I am unable to make it working
> (which is, of course, also "as expected" :) ).
>
> What do I have:
>
> Windows 7 64bit
> Pharo 4 (#40496)
> Pharo VM for win, tried both stable (371 from 2014-09-25) and latest (410
> from 2015-02-17)
> git version 1.9.5.msysgit.0
>
> What did I try:
>
> 1) using Git for Windows from http://git-scm.com/downloads
> 2) cloning our project into ~/Pharo/repo  (this created folder structure
> ~/Pharo/repo/dynacase/repository where all package folders are, along with
> .git folder in ~Pharo/repo/dynacase
> 3) downloading clean Pharo 4 platform
> 4) running from playground (tried both MetaRepoForPharo40 and 30):
> Gofer new
>    url: 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo40/main';
>    configurationOf: 'GitFileTree';
>    loadDevelopment.
> 5) this step I tried only once in few tries: updating all OSProcess and
> CommandShell packages to latest commits
> 6) adding repository to Monticello, selected gitfiletree://, selected folder
> ~/Pharo/repo/dynacase/repository , OK
>
> Result was being swamped by exceptions every time.
> When I did step 5, I got different exceptions and, also, windows command
> line has opened (but "empty", ie. like if I opened it myself in folder with
> Pharo.exe and left like that)
>
> Only thing that worked for me was adding this local repository as regular
> filetree (not gitfiletree), commiting there, and than commiting same thing
> once again with git via command line (or git bash).
>
> I would like to ask for help with making it work somehow better.
>
> Here are saved images from moments when I confirmed adding gitfiletree
> repository with those mentioned exceptions and errors:
> https://www.mediafire.com/folder/879qs8srf5ice/PharoGitConfigs
> (30 = using MetaRepoForPharo30, 40 = using MetaRepoForPharo40, latest =
> using MetaRepoForPharo40 + loading latest packages)
>
> Thank you
> Jan Blizničenko
>
>
>
> --
> View this message in context: http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

Thierry Goubier
Le 21/02/2015 21:50, Jan B. a écrit :
> Hi
>
> Thanks for reply.
>
> When I run this load command on Pharo 3, I get exception "FileDoesNotExist:
> @ \tmp\github-dalehenrichfiletreeissue142.zip"

This one is strange. A student of mine got a similar error on his laptop
(W7, I think) but it worked on his desktop (W7 as well?).

> On Pharo 4, it loads. But when I try to add gitfiletree repository now (ie.
> clean pharo 4 platfrom -> your
> issue 142 load command -> adding gitfiletree repository), I get exception
> "MessageNotUnderstood: ExternalWindowsOSProcess class>>defaultShellPath
>
> When I afterwards try to manually load latest OSProcess packages, I get the
> same exception like before, without this issue 142 loading:
> "MessageNotUnderstood: receiver of "addFirst:" is nil

Ok then. I'll update the development version of
ConfigurationOfGitFileTree for you to try.

Thierry

Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

Thierry Goubier
In reply to this post by Jan Blizničenko
Le 21/02/2015 21:50, Jan B. a écrit :
> Hi
>
> Thanks for reply.
>
> When I run this load command on Pharo 3, I get exception "FileDoesNotExist:
> @ \tmp\github-dalehenrichfiletreeissue142.zip"

Ok. I have uploaded the latest version of MonticelloFileTree-Git on
smalltalkhub;

Gofer new
        url: 'https://smalltalkhub.com/mc/Pharo/MetaRepoForPharo30/main';
        configurationOf: 'GitFileTree';
        loadDevelopment

should pick it up

Thierry

> On Pharo 4, it loads. But when I try to add gitfiletree repository now (ie.
> clean pharo 4 platfrom -> your
> issue 142 load command -> adding gitfiletree repository), I get exception
> "MessageNotUnderstood: ExternalWindowsOSProcess class>>defaultShellPath
>
> When I afterwards try to manually load latest OSProcess packages, I get the
> same exception like before, without this issue 142 loading:
> "MessageNotUnderstood: receiver of "addFirst:" is nil
>
> Jan
>
>
> Thierry Goubier wrote
>> Hi Jan,
>>
>> ok, the latest cod for GitFileTree is available on a dedicated branch on
>> filetree. The way to load it is:
>>
>> Metacello new
>> baseline: 'FileTree';
>> repository: 'github://dalehenrich/filetree:issue_142/repository';
>> load: 'Git'
>>
>> It rely on OSProcess, and I'm not entirely sure of OSProcess on windows,
>> but I've simplified the commands, in part to ease an eventual Windows
>> support. So, if you happen to be able to test?
>>
>> I would suggest pharo3.0 as your platform. I think changes to filetree
>> to handle pharo4.0 are still on a separate branch.
>>
>> Thierry
>>
>> le 21/02/2015 13:19, Jan B. a écrit :
>>> Hello
>>>
>>> We are moving our project from smalltalkhub to github. Gitfiletree seems
>>> to
>>> be working as expected on linux, but there are some of us (well, me) who
>>> would like to contribute from Windows, but I am unable to make it working
>>> (which is, of course, also "as expected" :) ).
>>>
>>> What do I have:
>>>
>>> Windows 7 64bit
>>> Pharo 4 (#40496)
>>> Pharo VM for win, tried both stable (371 from 2014-09-25) and latest (410
>>> from 2015-02-17)
>>> git version 1.9.5.msysgit.0
>>>
>>> What did I try:
>>>
>>> 1) using Git for Windows from http://git-scm.com/downloads
>>> 2) cloning our project into ~/Pharo/repo  (this created folder structure
>>> ~/Pharo/repo/dynacase/repository where all package folders are, along
>>> with
>>> .git folder in ~Pharo/repo/dynacase
>>> 3) downloading clean Pharo 4 platform
>>> 4) running from playground (tried both MetaRepoForPharo40 and 30):
>>> Gofer new
>>>     url: 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo40/main';
>>>     configurationOf: 'GitFileTree';
>>>     loadDevelopment.
>>> 5) this step I tried only once in few tries: updating all OSProcess and
>>> CommandShell packages to latest commits
>>> 6) adding repository to Monticello, selected gitfiletree://, selected
>>> folder
>>> ~/Pharo/repo/dynacase/repository , OK
>>>
>>> Result was being swamped by exceptions every time.
>>> When I did step 5, I got different exceptions and, also, windows command
>>> line has opened (but "empty", ie. like if I opened it myself in folder
>>> with
>>> Pharo.exe and left like that)
>>>
>>> Only thing that worked for me was adding this local repository as regular
>>> filetree (not gitfiletree), commiting there, and than commiting same
>>> thing
>>> once again with git via command line (or git bash).
>>>
>>> I would like to ask for help with making it work somehow better.
>>>
>>> Here are saved images from moments when I confirmed adding gitfiletree
>>> repository with those mentioned exceptions and errors:
>>> https://www.mediafire.com/folder/879qs8srf5ice/PharoGitConfigs
>>> (30 = using MetaRepoForPharo30, 40 = using MetaRepoForPharo40, latest =
>>> using MetaRepoForPharo40 + loading latest packages)
>>>
>>> Thank you
>>> Jan Blizničenko
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791.html
>>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>>
>>>
>
>
>
>
>
> --
> View this message in context: http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791p4806824.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

Ben Coman
In reply to this post by Thierry Goubier


On Sun, Feb 22, 2015 at 5:57 AM, Thierry Goubier <[hidden email]> wrote:
Le 21/02/2015 21:50, Jan B. a écrit :
Hi

Thanks for reply.

When I run this load command on Pharo 3, I get exception "FileDoesNotExist:
@ \tmp\github-dalehenrichfiletreeissue142.zip"

This one is strange. A student of mine got a similar error on his laptop (W7, I think) but it worked on his desktop (W7 as well?).


Does on machine have a /tmp folder and the other doesn't?   Windows sometimes gives that error when it can't create a file.
cheers -ben 
Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

Jan Blizničenko
This post was updated on .
Hi

Since it happens when after calling FileSystem >>#writeStreamOn: , I halted it there on both Pharo version and I got these values:

Pharo 4:
 FileReference path = RelativePath with value 'github-dalehenrichfiletreeissue142134338868022738279896609523701.zip'
  which calls FileSystem writeStreamOn: self path
 FileSystem workingDirectory = AbsolutePath with values 'C:' 'Users' 'User' 'Pharo' 'Pharo40'

Pharo 3:
 FileReference path = AbsolutePath with values 'tmp' 'github-dalehenrichfiletreeissue142.zip'
  which calls FileSystem writeStreamOn: self path
 FileSystem workingDirectory = AbsolutePath with values 'C:' 'Users' 'User' 'Pharo' 'Pharo30'

Notice Pharo 4 uses relative path and Pharo 3 absolute path to that zip.
But since it works in Pharo 4 right, I think it might have been a bug in Pharo 3 which was noticed and fixed.

Ben Coman wrote
On Sun, Feb 22, 2015 at 5:57 AM, Thierry Goubier <[hidden email]>
wrote:

> Le 21/02/2015 21:50, Jan B. a écrit :
>
>> Hi
>>
>> Thanks for reply.
>>
>> When I run this load command on Pharo 3, I get exception
>> "FileDoesNotExist:
>> @ \tmp\github-dalehenrichfiletreeissue142.zip"
>>
>
> This one is strange. A student of mine got a similar error on his laptop
> (W7, I think) but it worked on his desktop (W7 as well?).
>
>>
>>
Does on machine have a /tmp folder and the other doesn't?   Windows
sometimes gives that error when it can't create a file.
cheers -ben
Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

Jan Blizničenko
In reply to this post by Thierry Goubier
Hi

It seems like we got a step further, now this happens when I add gitfiletree repository: https://monosnap.com/image/21Li7R29QUVJh6AVDQvzENiCEpcBeF.png
And when I close the command line (press q), I get this additional error: https://monosnap.com/image/9Di55xa9UBx0Tcgd54B4I3IVn4lFJ6.png
Pharo image if you need: http://www.mediafire.com/download/zsguw7suit4vdu7/15-02-22_10.25.zip

Jan

Thierry Goubier wrote
Le 21/02/2015 21:50, Jan B. a écrit :
> Hi
>
> Thanks for reply.
>
> When I run this load command on Pharo 3, I get exception "FileDoesNotExist:
> @ \tmp\github-dalehenrichfiletreeissue142.zip"

Ok. I have uploaded the latest version of MonticelloFileTree-Git on
smalltalkhub;

Gofer new
        url: 'https://smalltalkhub.com/mc/Pharo/MetaRepoForPharo30/main';
        configurationOf: 'GitFileTree';
        loadDevelopment

should pick it up

Thierry

> On Pharo 4, it loads. But when I try to add gitfiletree repository now (ie.
> clean pharo 4 platfrom -> your
> issue 142 load command -> adding gitfiletree repository), I get exception
> "MessageNotUnderstood: ExternalWindowsOSProcess class>>defaultShellPath
>
> When I afterwards try to manually load latest OSProcess packages, I get the
> same exception like before, without this issue 142 loading:
> "MessageNotUnderstood: receiver of "addFirst:" is nil
>
> Jan
>
>
> Thierry Goubier wrote
>> Hi Jan,
>>
>> ok, the latest cod for GitFileTree is available on a dedicated branch on
>> filetree. The way to load it is:
>>
>> Metacello new
>> baseline: 'FileTree';
>> repository: 'github://dalehenrich/filetree:issue_142/repository';
>> load: 'Git'
>>
>> It rely on OSProcess, and I'm not entirely sure of OSProcess on windows,
>> but I've simplified the commands, in part to ease an eventual Windows
>> support. So, if you happen to be able to test?
>>
>> I would suggest pharo3.0 as your platform. I think changes to filetree
>> to handle pharo4.0 are still on a separate branch.
>>
>> Thierry
>>
> --
> View this message in context: http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791p4806824.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

Thierry Goubier
Le 22/02/2015 10:26, Jan B. a écrit :
> Hi
>
> It seems like we got a step further, now this happens when I add gitfiletree
> repository: https://monosnap.com/image/21Li7R29QUVJh6AVDQvzENiCEpcBeF.png

Ok. So it seems to be running the command just fine, however, the output
appear in a separate window instead of being recovered by OSProcess.

If you scrolled at the bottom of the command shell, have you seen the
result of the git branch command?

> And when I close the command line (press q), I get this additional error:
> https://monosnap.com/image/9Di55xa9UBx0Tcgd54B4I3IVn4lFJ6.png

Same issue: on the previous image, what you see as output is the result
of the loadAncestry git operation... and then the load ancestry
operation fails because no output is available inside Pharo.

So, to all Windows Pharo users... How do you run an external shell
command on windows and recover the output ?

Because this is where we are now: GitFileTree can run git commands on
windows (and they do run correctly), it's just that the command output
isn't recovered.

Help, please!

Thierry

> Pharo image if you need:
> http://www.mediafire.com/download/zsguw7suit4vdu7/15-02-22_10.25.zip

> Jan
>
>
> Thierry Goubier wrote
>> Le 21/02/2015 21:50, Jan B. a écrit :
>>> Hi
>>>
>>> Thanks for reply.
>>>
>>> When I run this load command on Pharo 3, I get exception
>>> "FileDoesNotExist:
>>> @ \tmp\github-dalehenrichfiletreeissue142.zip"
>>
>> Ok. I have uploaded the latest version of MonticelloFileTree-Git on
>> smalltalkhub;
>>
>> Gofer new
>> url: 'https://smalltalkhub.com/mc/Pharo/MetaRepoForPharo30/main';
>> configurationOf: 'GitFileTree';
>> loadDevelopment
>>
>> should pick it up
>>
>> Thierry
>>
>>> On Pharo 4, it loads. But when I try to add gitfiletree repository now
>>> (ie.
>>> clean pharo 4 platfrom -> your
>>> issue 142 load command -> adding gitfiletree repository), I get exception
>>> "MessageNotUnderstood: ExternalWindowsOSProcess class>>defaultShellPath
>>>
>>> When I afterwards try to manually load latest OSProcess packages, I get
>>> the
>>> same exception like before, without this issue 142 loading:
>>> "MessageNotUnderstood: receiver of "addFirst:" is nil
>>>
>>> Jan
>>>
>>>
>>> Thierry Goubier wrote
>>>> Hi Jan,
>>>>
>>>> ok, the latest cod for GitFileTree is available on a dedicated branch on
>>>> filetree. The way to load it is:
>>>>
>>>> Metacello new
>>>> baseline: 'FileTree';
>>>> repository: 'github://dalehenrich/filetree:issue_142/repository';
>>>> load: 'Git'
>>>>
>>>> It rely on OSProcess, and I'm not entirely sure of OSProcess on windows,
>>>> but I've simplified the commands, in part to ease an eventual Windows
>>>> support. So, if you happen to be able to test?
>>>>
>>>> I would suggest pharo3.0 as your platform. I think changes to filetree
>>>> to handle pharo4.0 are still on a separate branch.
>>>>
>>>> Thierry
>>>>
>>> --
>>> View this message in context:
>>> http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791p4806824.html
>>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>>
>>>
>>>
>
>
>
>
>
> --
> View this message in context: http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791p4806857.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

Jan Blizničenko
In the window with list of commits, there was nothing else. Nothing above or under it and it closes the window when I press q.
However, before this command line window is opened, there briefly flashes another command line window (opens and immediately closes again), but I did not find a way to keep all command line windows opened after execution finishes.

Thierry Goubier wrote
Le 22/02/2015 10:26, Jan B. a écrit :
> Hi
>
> It seems like we got a step further, now this happens when I add gitfiletree
> repository: https://monosnap.com/image/21Li7R29QUVJh6AVDQvzENiCEpcBeF.png

Ok. So it seems to be running the command just fine, however, the output
appear in a separate window instead of being recovered by OSProcess.

If you scrolled at the bottom of the command shell, have you seen the
result of the git branch command?
Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

hernanmd
In reply to this post by Thierry Goubier


2015-02-22 7:04 GMT-03:00 Thierry Goubier <[hidden email]>:
Le 22/02/2015 10:26, Jan B. a écrit :
Hi

It seems like we got a step further, now this happens when I add gitfiletree
repository: https://monosnap.com/image/21Li7R29QUVJh6AVDQvzENiCEpcBeF.png

Ok. So it seems to be running the command just fine, however, the output appear in a separate window instead of being recovered by OSProcess.

If you scrolled at the bottom of the command shell, have you seen the result of the git branch command?

And when I close the command line (press q), I get this additional error:
https://monosnap.com/image/9Di55xa9UBx0Tcgd54B4I3IVn4lFJ6.png

Same issue: on the previous image, what you see as output is the result of the loadAncestry git operation... and then the load ancestry operation fails because no output is available inside Pharo.

So, to all Windows Pharo users... How do you run an external shell command on windows and recover the output ?


ProcessWrapper new
          useStdout;
          startWithShellCommand: 'echo hello';
          upToEnd


Hernán

 
Because this is where we are now: GitFileTree can run git commands on windows (and they do run correctly), it's just that the command output isn't recovered.

Help, please!

Thierry


Pharo image if you need:
http://www.mediafire.com/download/zsguw7suit4vdu7/15-02-22_10.25.zip

Jan


Thierry Goubier wrote
Le 21/02/2015 21:50, Jan B. a écrit :
Hi

Thanks for reply.

When I run this load command on Pharo 3, I get exception
"FileDoesNotExist:
@ \tmp\github-dalehenrichfiletreeissue142.zip"

Ok. I have uploaded the latest version of MonticelloFileTree-Git on
smalltalkhub;

Gofer new
        url: 'https://smalltalkhub.com/mc/Pharo/MetaRepoForPharo30/main';
        configurationOf: 'GitFileTree';
        loadDevelopment

should pick it up

Thierry

On Pharo 4, it loads. But when I try to add gitfiletree repository now
(ie.
clean pharo 4 platfrom -> your
issue 142 load command -> adding gitfiletree repository), I get exception
"MessageNotUnderstood: ExternalWindowsOSProcess class>>defaultShellPath

When I afterwards try to manually load latest OSProcess packages, I get
the
same exception like before, without this issue 142 loading:
"MessageNotUnderstood: receiver of "addFirst:" is nil

Jan


Thierry Goubier wrote
Hi Jan,

ok, the latest cod for GitFileTree is available on a dedicated branch on
filetree. The way to load it is:

Metacello new
        baseline: 'FileTree';
        repository: 'github://dalehenrich/filetree:issue_142/repository';
        load: 'Git'

It rely on OSProcess, and I'm not entirely sure of OSProcess on windows,
but I've simplified the commands, in part to ease an eventual Windows
support. So, if you happen to be able to test?

I would suggest pharo3.0 as your platform. I think changes to filetree
to handle pharo4.0 are still on a separate branch.

Thierry

--
View this message in context:
http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791p4806824.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.








--
View this message in context: http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791p4806857.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.






Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

Thierry Goubier
Hi Hernan,

thanks, but ProcessWrapper isn't available on Pharo 3 nor Pharo 4. Could
you tell which configuration or metacello script we need to load it?

Thierry

Le 22/02/2015 17:52, Hernán Morales Durand a écrit :

>
> ProcessWrapper new
>            useStdout;
>            startWithShellCommand: 'echo hello';
>            upToEnd
>
>
> Hernán
>
>     Because this is where we are now: GitFileTree can run git commands
>     on windows (and they do run correctly), it's just that the command
>     output isn't recovered.
>
>     Help, please!
>
>     Thierry
>
>
>         Pharo image if you need:
>         http://www.mediafire.com/__download/zsguw7suit4vdu7/15-__02-22_10.25.zip
>         <http://www.mediafire.com/download/zsguw7suit4vdu7/15-02-22_10.25.zip>
>
>
>         Jan
>
>
>         Thierry Goubier wrote
>
>             Le 21/02/2015 21:50, Jan B. a écrit :
>
>                 Hi
>
>                 Thanks for reply.
>
>                 When I run this load command on Pharo 3, I get exception
>                 "FileDoesNotExist:
>                 @ \tmp\github-__dalehenrichfiletreeissue142.__zip"
>
>
>             Ok. I have uploaded the latest version of
>             MonticelloFileTree-Git on
>             smalltalkhub;
>
>             Gofer new
>                      url:
>             'https://smalltalkhub.com/mc/__Pharo/MetaRepoForPharo30/main
>             <https://smalltalkhub.com/mc/Pharo/MetaRepoForPharo30/main>'__;
>                      configurationOf: 'GitFileTree';
>                      loadDevelopment
>
>             should pick it up
>
>             Thierry
>
>                 On Pharo 4, it loads. But when I try to add gitfiletree
>                 repository now
>                 (ie.
>                 clean pharo 4 platfrom -> your
>                 issue 142 load command -> adding gitfiletree
>                 repository), I get exception
>                 "MessageNotUnderstood: ExternalWindowsOSProcess
>                 class>>defaultShellPath
>
>                 When I afterwards try to manually load latest OSProcess
>                 packages, I get
>                 the
>                 same exception like before, without this issue 142 loading:
>                 "MessageNotUnderstood: receiver of "addFirst:" is nil
>
>                 Jan
>
>
>                 Thierry Goubier wrote
>
>                     Hi Jan,
>
>                     ok, the latest cod for GitFileTree is available on a
>                     dedicated branch on
>                     filetree. The way to load it is:
>
>                     Metacello new
>                              baseline: 'FileTree';
>                              repository:
>                     'github://dalehenrich/__filetree:issue_142/repository'__;
>                              load: 'Git'
>
>                     It rely on OSProcess, and I'm not entirely sure of
>                     OSProcess on windows,
>                     but I've simplified the commands, in part to ease an
>                     eventual Windows
>                     support. So, if you happen to be able to test?
>
>                     I would suggest pharo3.0 as your platform. I think
>                     changes to filetree
>                     to handle pharo4.0 are still on a separate branch.
>
>                     Thierry
>
>                 --
>                 View this message in context:
>                 http://forum.world.st/Git-__gitfiletree-on-Pharo-vs-__Windows-tp4806791p4806824.html
>                 <http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791p4806824.html>
>                 Sent from the Pharo Smalltalk Users mailing list archive
>                 at Nabble.com.
>
>
>
>
>
>
>
>
>         --
>         View this message in context:
>         http://forum.world.st/Git-__gitfiletree-on-Pharo-vs-__Windows-tp4806791p4806857.html
>         <http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791p4806857.html>
>         Sent from the Pharo Smalltalk Users mailing list archive at
>         Nabble.com.
>
>
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

hernanmd
Thierry,

The ConfigurationOfProcessWrapper is available from the Configuration Browser in Pharo 3.

The StHub page is http://www.smalltalkhub.com/#!/~hernan/ProcessWrapper

I have no permission to write to MetaRepoForPharo40 otherwise I would upload it.

Cheers,

Hernán



2015-02-22 16:45 GMT-03:00 Thierry Goubier <[hidden email]>:
Hi Hernan,

thanks, but ProcessWrapper isn't available on Pharo 3 nor Pharo 4. Could you tell which configuration or metacello script we need to load it?

Thierry

Le 22/02/2015 17:52, Hernán Morales Durand a écrit :

ProcessWrapper new
           useStdout;
           startWithShellCommand: 'echo hello';
           upToEnd


Hernán

    Because this is where we are now: GitFileTree can run git commands
    on windows (and they do run correctly), it's just that the command
    output isn't recovered.

    Help, please!

    Thierry


        Pharo image if you need:
        http://www.mediafire.com/__download/zsguw7suit4vdu7/15-__02-22_10.25.zip
        <http://www.mediafire.com/download/zsguw7suit4vdu7/15-02-22_10.25.zip>


        Jan


        Thierry Goubier wrote

            Le 21/02/2015 21:50, Jan B. a écrit :

                Hi

                Thanks for reply.

                When I run this load command on Pharo 3, I get exception
                "FileDoesNotExist:
                @ \tmp\github-__dalehenrichfiletreeissue142.__zip"


            Ok. I have uploaded the latest version of
            MonticelloFileTree-Git on
            smalltalkhub;

            Gofer new
                     url:
            'https://smalltalkhub.com/mc/__Pharo/MetaRepoForPharo30/main
            <https://smalltalkhub.com/mc/Pharo/MetaRepoForPharo30/main>'__;

                     configurationOf: 'GitFileTree';
                     loadDevelopment

            should pick it up

            Thierry

                On Pharo 4, it loads. But when I try to add gitfiletree
                repository now
                (ie.
                clean pharo 4 platfrom -> your
                issue 142 load command -> adding gitfiletree
                repository), I get exception
                "MessageNotUnderstood: ExternalWindowsOSProcess
                class>>defaultShellPath

                When I afterwards try to manually load latest OSProcess
                packages, I get
                the
                same exception like before, without this issue 142 loading:
                "MessageNotUnderstood: receiver of "addFirst:" is nil

                Jan


                Thierry Goubier wrote

                    Hi Jan,

                    ok, the latest cod for GitFileTree is available on a
                    dedicated branch on
                    filetree. The way to load it is:

                    Metacello new
                             baseline: 'FileTree';
                             repository:
                    'github://dalehenrich/__filetree:issue_142/repository'__;
                             load: 'Git'

                    It rely on OSProcess, and I'm not entirely sure of
                    OSProcess on windows,
                    but I've simplified the commands, in part to ease an
                    eventual Windows
                    support. So, if you happen to be able to test?

                    I would suggest pharo3.0 as your platform. I think
                    changes to filetree
                    to handle pharo4.0 are still on a separate branch.

                    Thierry

                --
                View this message in context:
                http://forum.world.st/Git-__gitfiletree-on-Pharo-vs-__Windows-tp4806791p4806824.html
                <http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791p4806824.html>
                Sent from the Pharo Smalltalk Users mailing list archive
                at Nabble.com.








        --
        View this message in context:
        http://forum.world.st/Git-__gitfiletree-on-Pharo-vs-__Windows-tp4806791p4806857.html
        <http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791p4806857.html>
        Sent from the Pharo Smalltalk Users mailing list archive at
        Nabble.com.









Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

Thierry Goubier
Hi Hernan,

I've pushed a new development version of GitFileTree using
ProcessWrapper on Windows if it is available.

Would you care in testing it on Pharo 3 (or Pharo 4)? I'm not sure I did
it right; it took me a while to get OSProcess use right, and I'm not
sure I can reuse the same patterns with ProcessWrapper, such as the
behavior on error.

Thanks,

Thierry

Le 22/02/2015 21:47, Hernán Morales Durand a écrit :

> Thierry,
>
> The ConfigurationOfProcessWrapper is available from the Configuration
> Browser in Pharo 3.
>
> The StHub page is http://www.smalltalkhub.com/#!/~hernan/ProcessWrapper
>
> I have no permission to write to MetaRepoForPharo40 otherwise I would
> upload it.
>
> Cheers,
>
> Hernán
>
>
>
> 2015-02-22 16:45 GMT-03:00 Thierry Goubier <[hidden email]
> <mailto:[hidden email]>>:
>
>     Hi Hernan,
>
>     thanks, but ProcessWrapper isn't available on Pharo 3 nor Pharo 4.
>     Could you tell which configuration or metacello script we need to
>     load it?
>
>     Thierry
>
>     Le 22/02/2015 17:52, Hernán Morales Durand a écrit :
>
>
>         ProcessWrapper new
>                     useStdout;
>                     startWithShellCommand: 'echo hello';
>                     upToEnd
>
>
>         Hernán
>
>              Because this is where we are now: GitFileTree can run git
>         commands
>              on windows (and they do run correctly), it's just that the
>         command
>              output isn't recovered.
>
>              Help, please!
>
>              Thierry
>
>
>                  Pharo image if you need:
>         http://www.mediafire.com/____download/zsguw7suit4vdu7/15-____02-22_10.25.zip
>         <http://www.mediafire.com/__download/zsguw7suit4vdu7/15-__02-22_10.25.zip>
>
>         <http://www.mediafire.com/__download/zsguw7suit4vdu7/15-__02-22_10.25.zip
>         <http://www.mediafire.com/download/zsguw7suit4vdu7/15-02-22_10.25.zip>>
>
>
>                  Jan
>
>
>                  Thierry Goubier wrote
>
>                      Le 21/02/2015 21:50, Jan B. a écrit :
>
>                          Hi
>
>                          Thanks for reply.
>
>                          When I run this load command on Pharo 3, I get
>         exception
>                          "FileDoesNotExist:
>                          @
>         \tmp\github-____dalehenrichfiletreeissue142.____zip"
>
>
>                      Ok. I have uploaded the latest version of
>                      MonticelloFileTree-Git on
>                      smalltalkhub;
>
>                      Gofer new
>                               url:
>
>         'https://smalltalkhub.com/mc/____Pharo/MetaRepoForPharo30/main
>         <https://smalltalkhub.com/mc/__Pharo/MetaRepoForPharo30/main>
>
>         <https://smalltalkhub.com/mc/__Pharo/MetaRepoForPharo30/main
>         <https://smalltalkhub.com/mc/Pharo/MetaRepoForPharo30/main>>__'__;
>
>                               configurationOf: 'GitFileTree';
>                               loadDevelopment
>
>                      should pick it up
>
>                      Thierry
>
>                          On Pharo 4, it loads. But when I try to add
>         gitfiletree
>                          repository now
>                          (ie.
>                          clean pharo 4 platfrom -> your
>                          issue 142 load command -> adding gitfiletree
>                          repository), I get exception
>                          "MessageNotUnderstood: ExternalWindowsOSProcess
>                          class>>defaultShellPath
>
>                          When I afterwards try to manually load latest
>         OSProcess
>                          packages, I get
>                          the
>                          same exception like before, without this issue
>         142 loading:
>                          "MessageNotUnderstood: receiver of "addFirst:"
>         is nil
>
>                          Jan
>
>
>                          Thierry Goubier wrote
>
>                              Hi Jan,
>
>                              ok, the latest cod for GitFileTree is
>         available on a
>                              dedicated branch on
>                              filetree. The way to load it is:
>
>                              Metacello new
>                                       baseline: 'FileTree';
>                                       repository:
>
>         'github://dalehenrich/____filetree:issue_142/repository'____;
>                                       load: 'Git'
>
>                              It rely on OSProcess, and I'm not entirely
>         sure of
>                              OSProcess on windows,
>                              but I've simplified the commands, in part
>         to ease an
>                              eventual Windows
>                              support. So, if you happen to be able to test?
>
>                              I would suggest pharo3.0 as your platform.
>         I think
>                              changes to filetree
>                              to handle pharo4.0 are still on a separate
>         branch.
>
>                              Thierry
>
>                          --
>                          View this message in context:
>         http://forum.world.st/Git-____gitfiletree-on-Pharo-vs-____Windows-tp4806791p4806824.html
>         <http://forum.world.st/Git-__gitfiletree-on-Pharo-vs-__Windows-tp4806791p4806824.html>
>
>         <http://forum.world.st/Git-__gitfiletree-on-Pharo-vs-__Windows-tp4806791p4806824.html
>         <http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791p4806824.html>__>
>                          Sent from the Pharo Smalltalk Users mailing
>         list archive
>                          at Nabble.com.
>
>
>
>
>
>
>
>
>                  --
>                  View this message in context:
>         http://forum.world.st/Git-____gitfiletree-on-Pharo-vs-____Windows-tp4806791p4806857.html
>         <http://forum.world.st/Git-__gitfiletree-on-Pharo-vs-__Windows-tp4806791p4806857.html>
>
>         <http://forum.world.st/Git-__gitfiletree-on-Pharo-vs-__Windows-tp4806791p4806857.html
>         <http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791p4806857.html>__>
>                  Sent from the Pharo Smalltalk Users mailing list archive at
>                  Nabble.com.
>
>
>
>
>
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

Thierry Goubier
In reply to this post by Jan Blizničenko
Hi Jan,

I pushed a new version (development) of GitFileTree using ProcessWrapper
on Windows (version 82 on Smalltalkhub).

You need to get ProcessWrapper loaded first, of course, from the
Configuration browser in Pharo 3.

If you want to try?

Thierry

Le 22/02/2015 11:09, Jan B. a écrit :

> In the window with list of commits, there was nothing else. Nothing above or
> under it and it closes the window when I press q.
> However, before this command line window is opened, there briefly flashes
> another command line window (opens and immediately closes again), but I did
> not find a way to keep all command line windows opened after execution
> finishes.
>
>
> Thierry Goubier wrote
>> Le 22/02/2015 10:26, Jan B. a écrit :
>>> Hi
>>>
>>> It seems like we got a step further, now this happens when I add
>>> gitfiletree
>>> repository: https://monosnap.com/image/21Li7R29QUVJh6AVDQvzENiCEpcBeF.png
>>
>> Ok. So it seems to be running the command just fine, however, the output
>> appear in a separate window instead of being recovered by OSProcess.
>>
>> If you scrolled at the bottom of the command shell, have you seen the
>> result of the git branch command?
>
>
>
>
>
> --
> View this message in context: http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791p4806859.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

Jan Blizničenko
Hi

This time, when I add gitfiletree repository via monticello, it loads all packages and classes.
However, it does not load any methods. Even if I use "Browse" in repository window, it displays class definition, including variables and category correctly, but still no methods. Normal filetree shows and loads these methods.

And another thing is that if I try to add and load gitfiletree repository via following command, not GUI, I get an Error: filetree:// repository 'C:\Users\User\Pharo\ourproject\repository\' does not exist

command was:

Metacello new
    baseline: 'OurProject';
    repository: 'gitfiletree:///C:\Users\User\Pharo\ourproject\repository';
    load.

when I delete that 'git' characters and leave just repository: 'filetree:///C:\Users (etc.), it loads fine, too, but it may be my mistake.

Jan

Thierry Goubier wrote
Hi Jan,

I pushed a new version (development) of GitFileTree using ProcessWrapper
on Windows (version 82 on Smalltalkhub).

You need to get ProcessWrapper loaded first, of course, from the
Configuration browser in Pharo 3.

If you want to try?

Thierry
Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

Thierry Goubier


2015-02-26 11:06 GMT+01:00 Jan B. <[hidden email]>:
Hi

This time, when I add gitfiletree repository via monticello, it loads all
packages and classes.
However, it does not load any methods. Even if I use "Browse" in repository
window, it displays class definition, including variables and category
correctly, but still no methods. Normal filetree shows and loads these
methods.

Strange. Really strange. Why? Because what GitFileTree does for loading is request an archive from git (i.e. a zip file) and load all definitions from it. If the zip was corrupted or not available in a way or another, it would not load anything... or could it be a case sensitivity problem on method names?
 

And another thing is that if I try to add and load gitfiletree repository
via following command, not GUI, I get an Error: filetree:// repository
'C:\Users\User\Pharo\ourproject\repository\' does not exist

command was:

Metacello new
    baseline: 'OurProject';
    repository: 'gitfiletree:///C:\Users\User\Pharo\ourproject\repository';
    load.

when I delete that 'git' characters and leave just repository:
'filetree:///C:\Users (etc.), it loads fine, too, but it may be my mistake.

I don't know. It's hard to do this remote debugging of a kind :( Everything seems to be different in unexpected places.

Thierry
 

Jan


Thierry Goubier wrote
> Hi Jan,
>
> I pushed a new version (development) of GitFileTree using ProcessWrapper
> on Windows (version 82 on Smalltalkhub).
>
> You need to get ProcessWrapper loaded first, of course, from the
> Configuration browser in Pharo 3.
>
> If you want to try?
>
> Thierry





--
View this message in context: http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791p4807789.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.


Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

hernanmd
In reply to this post by Thierry Goubier
Hi Thierry,

I have tried in Pharo 3:

Gofer new
        url: 'https://smalltalkhub.com/mc/Pharo/MetaRepoForPharo30/main';
        configurationOf: 'GitFileTree';
        loadDevelopment

But it didn't load the ProcessWrapper. Can you tell me how should I install?

Cheers,

Hernán



2015-02-25 16:32 GMT-03:00 Thierry Goubier <[hidden email]>:
Hi Hernan,

I've pushed a new development version of GitFileTree using ProcessWrapper on Windows if it is available.

Would you care in testing it on Pharo 3 (or Pharo 4)? I'm not sure I did it right; it took me a while to get OSProcess use right, and I'm not sure I can reuse the same patterns with ProcessWrapper, such as the behavior on error.

Thanks,

Thierry

Le 22/02/2015 21:47, Hernán Morales Durand a écrit :
Thierry,

The ConfigurationOfProcessWrapper is available from the Configuration
Browser in Pharo 3.

The StHub page is http://www.smalltalkhub.com/#!/~hernan/ProcessWrapper

I have no permission to write to MetaRepoForPharo40 otherwise I would
upload it.

Cheers,

Hernán



2015-02-22 16:45 GMT-03:00 Thierry Goubier <[hidden email]
<mailto:[hidden email]>>:

    Hi Hernan,

    thanks, but ProcessWrapper isn't available on Pharo 3 nor Pharo 4.
    Could you tell which configuration or metacello script we need to
    load it?

    Thierry

    Le 22/02/2015 17:52, Hernán Morales Durand a écrit :


        ProcessWrapper new
                    useStdout;
                    startWithShellCommand: 'echo hello';
                    upToEnd


        Hernán

             Because this is where we are now: GitFileTree can run git
        commands
             on windows (and they do run correctly), it's just that the
        command
             output isn't recovered.

             Help, please!

             Thierry


                 Pharo image if you need:
        http://www.mediafire.com/____download/zsguw7suit4vdu7/15-____02-22_10.25.zip
        <http://www.mediafire.com/__download/zsguw7suit4vdu7/15-__02-22_10.25.zip>

        <http://www.mediafire.com/__download/zsguw7suit4vdu7/15-__02-22_10.25.zip
        <http://www.mediafire.com/download/zsguw7suit4vdu7/15-02-22_10.25.zip>>


                 Jan


                 Thierry Goubier wrote

                     Le 21/02/2015 21:50, Jan B. a écrit :

                         Hi

                         Thanks for reply.

                         When I run this load command on Pharo 3, I get
        exception
                         "FileDoesNotExist:
                         @
        \tmp\github-____dalehenrichfiletreeissue142.____zip"


                     Ok. I have uploaded the latest version of
                     MonticelloFileTree-Git on
                     smalltalkhub;

                     Gofer new
                              url:

        'https://smalltalkhub.com/mc/____Pharo/MetaRepoForPharo30/main
        <https://smalltalkhub.com/mc/__Pharo/MetaRepoForPharo30/main>

        <https://smalltalkhub.com/mc/__Pharo/MetaRepoForPharo30/main
        <https://smalltalkhub.com/mc/Pharo/MetaRepoForPharo30/main>>__'__;


                              configurationOf: 'GitFileTree';
                              loadDevelopment

                     should pick it up

                     Thierry

                         On Pharo 4, it loads. But when I try to add
        gitfiletree
                         repository now
                         (ie.
                         clean pharo 4 platfrom -> your
                         issue 142 load command -> adding gitfiletree
                         repository), I get exception
                         "MessageNotUnderstood: ExternalWindowsOSProcess
                         class>>defaultShellPath

                         When I afterwards try to manually load latest
        OSProcess
                         packages, I get
                         the
                         same exception like before, without this issue
        142 loading:
                         "MessageNotUnderstood: receiver of "addFirst:"
        is nil

                         Jan


                         Thierry Goubier wrote

                             Hi Jan,

                             ok, the latest cod for GitFileTree is
        available on a
                             dedicated branch on
                             filetree. The way to load it is:

                             Metacello new
                                      baseline: 'FileTree';
                                      repository:

        'github://dalehenrich/____filetree:issue_142/repository'____;
                                      load: 'Git'

                             It rely on OSProcess, and I'm not entirely
        sure of
                             OSProcess on windows,
                             but I've simplified the commands, in part
        to ease an
                             eventual Windows
                             support. So, if you happen to be able to test?

                             I would suggest pharo3.0 as your platform.
        I think
                             changes to filetree
                             to handle pharo4.0 are still on a separate
        branch.

                             Thierry

                         --
                         View this message in context:
        http://forum.world.st/Git-____gitfiletree-on-Pharo-vs-____Windows-tp4806791p4806824.html
        <http://forum.world.st/Git-__gitfiletree-on-Pharo-vs-__Windows-tp4806791p4806824.html>

        <http://forum.world.st/Git-__gitfiletree-on-Pharo-vs-__Windows-tp4806791p4806824.html
        <http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791p4806824.html>__>
                         Sent from the Pharo Smalltalk Users mailing
        list archive
                         at Nabble.com.








                 --
                 View this message in context:
        http://forum.world.st/Git-____gitfiletree-on-Pharo-vs-____Windows-tp4806791p4806857.html
        <http://forum.world.st/Git-__gitfiletree-on-Pharo-vs-__Windows-tp4806791p4806857.html>

        <http://forum.world.st/Git-__gitfiletree-on-Pharo-vs-__Windows-tp4806791p4806857.html
        <http://forum.world.st/Git-gitfiletree-on-Pharo-vs-Windows-tp4806791p4806857.html>__>
                 Sent from the Pharo Smalltalk Users mailing list archive at
                 Nabble.com.












Reply | Threaded
Open this post in threaded view
|

Re: Git (gitfiletree) on Pharo vs Windows

Thierry Goubier
Hi Hernán,

I didn't put ProcessWrapper as a dependency yet, you'll have to load it
first.

Gofer new
           url: 'https://smalltalkhub.com/mc/Pharo/MetaRepoForPharo30/main';
           configurationOf: 'ProcessWrapper';
           loadStable

Thierry

Le 27/02/2015 02:58, Hernán Morales Durand a écrit :

> Hi Thierry,
>
> I have tried in Pharo 3:
>
> Gofer new
>          url: 'https://smalltalkhub.com/mc/Pharo/MetaRepoForPharo30/main';
>          configurationOf: 'GitFileTree';
>          loadDevelopment
>
> But it didn't load the ProcessWrapper. Can you tell me how should I install?
>
> Cheers,
>
> Hernán
>
>
>


12