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
July 2016
- 72 participants
- 501 messages
Re: [Pharo-users] Pharo and GIT
by Alexandre Bergel
Hi Juraj,
Although I find very appealing to work with Git, it is still very painful. Some of the issues I feel right now: difficult of merging, checking for source code differences, there is unfortunately a difference between installing using Metacello and cloning a repository, â¦
We can discuss it if you want (I am back in Chile).
Alexandre
> On Jul 25, 2016, at 8:41 AM, Juraj Kubelka <juraj.kubelka(a)icloud.com> wrote:
>
> Hi,
>
> can you point me to a latest (best) way to use GitHub for Pharo projects (Pharo 6)?
>
> Is the GitFileTree project the way to use it?
>
> How does ConfigurationOf change?
>
> Thanks!
> Juraj
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
July 25, 2016
Re: [Pharo-users] Can GitHubcello be used against BitBucket?
by Dale Henrichs
On 7/24/16 6:42 PM, Sean P. DeNigris wrote:
> Dale Henrichs-3 wrote
>> Yes, Metacello supports bitbucket:// repos...
> N.B. IIRC I wasn't able to use it for my private projects because it doesn't
> work with private repos accessed via SSH
>
>
Could it be that the issue has to do with https authentication? It is
possible to define a username and password for https authentication for
BitBucket:
MCBitbucketRepository siteUsername: '' sitePassword: ''
Did you try this option? Or was the issue in a different area?
Dale
July 25, 2016
Re: [Pharo-users] Pharo and GIT
by Thierry Goubier
Hi Juraj,
I haven't created a Pharo6 configuration for GitFileTree, for now loading
should be done by Metacello.
Metacello new
baseline: 'FileTree';
repository: 'github://dalehenrich/filetree:pharo6.0_dev/repository';
load: 'Git'
2016-07-25 14:41 GMT+02:00 Juraj Kubelka <juraj.kubelka(a)icloud.com>:
> Hi,
>
> can you point me to a latest (best) way to use GitHub for Pharo projects
> (Pharo 6)?
>
> Is the GitFileTree project the way to use it?
>
It's a way that works.
>
> How does ConfigurationOf change?
>
Just create a BaselineOf into your github repository and call that baseline
from your ConfigurationOf...
Creating multiple versions in a ConfigurationOf is calling the BaselineOf
with a github url containing a tag or a branch.
Regards,
Thierry
>
> Thanks!
> Juraj
>
July 25, 2016
Re: [Pharo-users] Can GitHubcello be used against BitBucket?
by Sean Glazier
yes I was using the command generated by the source tree tool. The code
generates a command line command and that can use https if you form the
commands as I detailed. I also indicated where the master:master and
related switches can be replaced with what most people use which is just
--all. the class forming the command can be extended to parse out the
username password from the url you set it up with provided you include it
or it could be extra parameters provided and stored. This is so that when
the push and pull commands put together the url can be formed and placed on
the command line as well. GITI will take care of using https etc. it just
needs the url with the username password on it so that the command
line does not ask for a password and hangs the image because Pharo is
waiting for a response and the command line is waiting for the password to
be inputted and you have a deadlock as I detailed in the method.
The command line git command that worked for me was:
git -C "C:\pharo5win\new-qline" -c diff.mnemonicprefix=false -c
core.quotepath=false push
https://sglazier456:MY_PASSWORD@bitbucket.org/sglazier456/new-qline.git
--all
I am sure some of the other options are not really needed. As I indicated I
used what source tree built as its command that it executed.
So with a git repository that needs a username password you can form the
git push and pull commands as indicated.
to use ssh I did not see how that could be done from the command line on
windows unless to were able to tell git to use ssh or the putty running on
windows. Linux of course, is probably more straightforward to get working.
Right now the current version of the git remote repository is broken
because it is using either old commands or an incorrect command. The push
was sent to the command line as follows:
git -C "C:\pharo5win\new-qline"
This as far as I know is not a proper push command because it needs the
push keyword followed by at least I think by the --all .
I tried it from the windows command line and it worked for a repository
that was not password protected. If it is, the command line will ask for
the password and will not time out which deadlocks the push since pharo is
waiting for the command to finish, which it cannot. So the image is locked
until you give it a user interrupt to get the debugger.
I hope this helps in understanding what I ran into...
Kind Regards,
Sean Glazier
On Mon, Jul 25, 2016 at 7:20 AM, Thierry Goubier <thierry.goubier(a)gmail.com>
wrote:
> Hi Sean,
>
> I think the issue is simply that GitFileTree does not support https with
> authentification. You need to switch to ssh with keys.
>
> Now, about the various options you add on the git push command line
> (diff.mnemonicprefix, core.quotepath), could you detail them? The seems to
> be unnecessary in the git development scenarios I've seen so far.
>
> Also note that master:master may be wrong, because you could be switching
> to another branch.
>
> I expect all those issues to be taken care of through the new tools in
> development for Pharo6.
>
> Regards,
>
> Thierry
>
> 2016-07-25 10:04 GMT+02:00 Sean Glazier <sglazier456(a)gmail.com>:
>
>> some more information the git command that it runs is
>> git -C "C:\pharo5win\new-qline"
>> This is run in the method
>> MCFileTreeGitRemoteRepository>>runProcessWrapperGitCommand:
>> anArrayOfStrings in: aDirectory.
>>
>> It is stuck on the line:
>> command waitForExit.
>>
>> this wait for exit has no timeout to it and you wait forever. I found out
>> on windows the user interrupt is alt . Just like the Mac ;-)
>>
>> I have no error in the error stream at all.
>>
>> From the source tree tool the command should look more like this:
>> git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags
>> origin master:master
>>
>> and then followed by the -C "C:\pharo5win\new-qline"
>>
>> git -C "C:\pharo5win\new-qline" -c diff.mnemonicprefix=false -c
>> core.quotepath=false push -v --tags origin master:master
>>
>> However doing this from a command line it asks for the users password
>> like thus
>> C:\pharo5win\New-Qline>git -C "C:\pharo5win\new-qline" -c
>> diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin
>> master:master
>> Pushing to https://sglazier456@bitbucket.org/sglazier456/new-qline.git
>> Password for 'https://sglazier456@bitbucket.org':
>>
>> to avoid the password prompt you can do this
>>
>> git -C "C:\pharo5win\new-qline" -c diff.mnemonicprefix=false -c
>> core.quotepath=false push
>> https://username:password@myrepository.biz/file.git -v --tags origin
>> master:master
>>
>> you can also replace -v --tags origin master:master with --all as well
>>
>> in my case it would look like
>>
>> git -C "C:\pharo5win\new-qline" -c diff.mnemonicprefix=false -c
>> core.quotepath=false push
>> https://sglazier456:MY_PASSWORD@bitbucket.org/sglazier456/new-qline.git -v
>> --tags origin master:master
>>
>> OR
>> git -C "C:\pharo5win\new-qline" -c diff.mnemonicprefix=false -c
>> core.quotepath=false push
>> https://sglazier456:MY_PASSWORD@bitbucket.org/sglazier456/new-qline.git
>> -all
>>
>> and that works with out the system waiting for a password.
>>
>> I notice that there is a class that has the username password for bit
>> bucket in the method MCGitBasedNetworkRepository >> siteUsername:
>> username sitePassword: pass "MCBitbucketRepository siteUsername: ''
>> sitePassword: ''" "MCGitHubRepository siteUsername: '' sitePassword: ''"
>> self siteUsername: username; sitePassword: pass
>>
>> I tried setting it up with the username and password in the url for the
>> remote repository and no luck.
>> the class MCFileTreeGitRemoteRepository should override the getPull and
>> gitPush so as to include the url with the site name and password or there
>> might be a need for a different creation class for the bitbucket remote
>> repositories. However it is a standrad git command to be able to include
>> the username password in the url.
>>
>> when one does a pull as well there is a hang as well for the same reasons.
>>
>> I am not attempting to hack this at the moment because I can use source
>> tree to do the commits and pushes and pulls. I do think though since we
>> have those commands available on the remote repos and people can mark it
>> private requiring a username password.
>>
>> Also we should consider a repository configuration that specifys the SSH
>> kaey and then run the command in the context of SSH. this would eliminate
>> the username password issue and it is much more secure.
>>
>> SO since you are more experienced than I in this area of the code, I
>> should ask how should we go about fixing the issue. Also were should I
>> report this issue as well?
>>
>> running the command from a cmd line produced the following:
>> C:\pharo5win\New-Qline>git -C "C:\pharo5win\new-qline"
>> usage: git [--version] [--help] [-C <path>] [-c name=value]
>> [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
>> [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
>> [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
>> <command> [<args>]
>>
>> The most commonly used git commands are:
>> add Add file contents to the index
>> bisect Find by binary search the change that introduced a bug
>> branch List, create, or delete branches
>> checkout Checkout a branch or paths to the working tree
>> clone Clone a repository into a new directory
>> commit Record changes to the repository
>> diff Show changes between commits, commit and working tree, etc
>> fetch Download objects and refs from another repository
>> grep Print lines matching a pattern
>> init Create an empty Git repository or reinitialize an existing
>> one
>> log Show commit logs
>> merge Join two or more development histories together
>> mv Move or rename a file, a directory, or a symlink
>> pull Fetch from and integrate with another repository or a local
>> branch
>> push Update remote refs along with associated objects
>> rebase Forward-port local commits to the updated upstream head
>> reset Reset current HEAD to the specified state
>> rm Remove files from the working tree and from the index
>> show Show various types of objects
>> status Show the working tree status
>> tag Create, list, delete or verify a tag object signed with GPG
>>
>> 'git help -a' and 'git help -g' lists available subcommands and some
>> concept guides. See 'git help <command>' or 'git help <concept>'
>> to read about a specific subcommand or concept.
>>
>> C:\pharo5win\New-Qline>
>>
>>
>> So according to the help the command it self is formulated incorrectly.
>>
>> runProcessWrapperGitCommand: anArrayOfStrings in: aDirectory
>> "Enclose all parameters with double quotes to protect."
>>
>> | r aCommandString |
>> aCommandString := String
>> streamContents: [ :stream |
>> anArrayOfStrings
>> do: [ :e |
>> stream
>> nextPut: $";
>> nextPutAll: e;
>> nextPutAll: '" ' ] ].
>> (Smalltalk at: #ProcessWrapper ifAbsent: [ self error: 'Please load
>> ProcessWrapper' ])
>> ifNotNil: [ :pW |
>> | command |
>> command := pW new
>> useStdout;
>> useStderr;
>> startWithCommand:
>> self gitCommand , ' -C "'
>> ,
>> (MCFileTreeFileUtils current directoryPathString: aDirectory)
>> , '" ' , aCommandString;
>> yourself.
>> command waitForExit.
>> self assert: command isRunning not.
>> r := command upToEnd.
>> command exitCode > 0
>> ifTrue:
>> [
>> | errorString |
>> errorString := command errorUpToEnd.
>> errorString notEmpty
>> ifTrue:
>> [ MCFileTreeGitError new signal: 'Git error: ' , errorString ].
>> r := '' ] ].
>> ^ r
>>
>>
>> Kind Regards,
>>
>> Sean Glazier
>>
>>
>> On Mon, Jul 25, 2016 at 1:01 AM, Sean Glazier <sglazier456(a)gmail.com>
>> wrote:
>>
>>> Yes,
>>>
>>> I created in Bitbucket a repository named New-QLine. I created
>>> aBaselinOfNewQLine which just has stubs. I created 2 Packages.
>>> New-Qline and New-Qline-Tests each of these have 3 tags underneath and no
>>> classes defined since I wanted to ensure I would have no loading issue and
>>> so I can verify committing code and then doing a push and then I also
>>> wanted to verify doing a Pull. The picture below is clipped from my pharo5
>>> image.
>>>
>>> In the window Respository:sglazier456/new-qline.git [master] (Remote
>>> Git) shown below. The code at this point has been committed successfully
>>> and now I want to Push it to the repository. Once I hit the Push button
>>> the image freezes. I can press the x button on the main Pharo 5 window and
>>> I get the dialog do you want to quit with out saving.
>>>
>>> I am assuming that the push is using a git command. I am not familiar
>>> with the Pharo 5 keyboard shortcuts. I tried control b along with some
>>> others in hopes of interrupting this process and bringing the image back
>>> and being able to debug. However, I was unsuccessful in that. I was
>>> thinking that I might need to supply a setting so the ssh session can use
>>> the privateKey I generated and then I can be verified and the command
>>> continues.
>>>
>>> I am not sure what is going on yet. I thought I would ask to see if it
>>> is something simple I am missing.
>>>
>>> If you need to I can email you my privateKey so you can try it against
>>> the same repository I am using.
>>> git@bitbucket.org:sglazier456/new-qline.git
>>>
>>> Partial sceen shot showing the repository window is below.
>>>
>>> [image: Inline image 1]
>>>
>>> Thank you for your help and if you can point me to where I need to added
>>> a break point I can provide more information :-)
>>>
>>>
>>> Kind Regards,
>>>
>>> Sean Glazier
>>>
>>>
>>> On Mon, Jul 25, 2016 at 12:37 AM, Dale Henrichs <
>>> dale.henrichs(a)gemtalksystems.com> wrote:
>>>
>>>> I'd be interested in making this work ... could you supply additional
>>>> details about the problems you are seeing perhaps we can fix the problems?
>>>>
>>>> Dale
>>>>
>>>>
>>>> On 7/24/16 6:42 PM, Sean P. DeNigris wrote:
>>>>
>>>>> Dale Henrichs-3 wrote
>>>>>
>>>>>> Yes, Metacello supports bitbucket:// repos...
>>>>>>
>>>>> N.B. IIRC I wasn't able to use it for my private projects because it
>>>>> doesn't
>>>>> work with private repos accessed via SSH
>>>>>
>>>>>
>>>>>
>>>>> -----
>>>>> Cheers,
>>>>> Sean
>>>>> --
>>>>> View this message in context:
>>>>> http://forum.world.st/Can-GitHubcello-be-used-against-BitBucket-tp4907386p4…
>>>>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>
July 25, 2016
Pharo and GIT
by Juraj Kubelka
Hi,
can you point me to a latest (best) way to use GitHub for Pharo projects (Pharo 6)?
Is the GitFileTree project the way to use it?
How does ConfigurationOf change?
Thanks!
Juraj
July 25, 2016
Re: [Pharo-users] Can GitHubcello be used against BitBucket?
by Thierry Goubier
Hi Sean,
I think the issue is simply that GitFileTree does not support https with
authentification. You need to switch to ssh with keys.
Now, about the various options you add on the git push command line
(diff.mnemonicprefix, core.quotepath), could you detail them? The seems to
be unnecessary in the git development scenarios I've seen so far.
Also note that master:master may be wrong, because you could be switching
to another branch.
I expect all those issues to be taken care of through the new tools in
development for Pharo6.
Regards,
Thierry
2016-07-25 10:04 GMT+02:00 Sean Glazier <sglazier456(a)gmail.com>:
> some more information the git command that it runs is
> git -C "C:\pharo5win\new-qline"
> This is run in the method
> MCFileTreeGitRemoteRepository>>runProcessWrapperGitCommand:
> anArrayOfStrings in: aDirectory.
>
> It is stuck on the line:
> command waitForExit.
>
> this wait for exit has no timeout to it and you wait forever. I found out
> on windows the user interrupt is alt . Just like the Mac ;-)
>
> I have no error in the error stream at all.
>
> From the source tree tool the command should look more like this:
> git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags
> origin master:master
>
> and then followed by the -C "C:\pharo5win\new-qline"
>
> git -C "C:\pharo5win\new-qline" -c diff.mnemonicprefix=false -c
> core.quotepath=false push -v --tags origin master:master
>
> However doing this from a command line it asks for the users password like
> thus
> C:\pharo5win\New-Qline>git -C "C:\pharo5win\new-qline" -c
> diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin
> master:master
> Pushing to https://sglazier456@bitbucket.org/sglazier456/new-qline.git
> Password for 'https://sglazier456@bitbucket.org':
>
> to avoid the password prompt you can do this
>
> git -C "C:\pharo5win\new-qline" -c diff.mnemonicprefix=false -c
> core.quotepath=false push
> https://username:password@myrepository.biz/file.git -v --tags origin
> master:master
>
> you can also replace -v --tags origin master:master with --all as well
>
> in my case it would look like
>
> git -C "C:\pharo5win\new-qline" -c diff.mnemonicprefix=false -c
> core.quotepath=false push
> https://sglazier456:MY_PASSWORD@bitbucket.org/sglazier456/new-qline.git -v
> --tags origin master:master
>
> OR
> git -C "C:\pharo5win\new-qline" -c diff.mnemonicprefix=false -c
> core.quotepath=false push
> https://sglazier456:MY_PASSWORD@bitbucket.org/sglazier456/new-qline.git
> -all
>
> and that works with out the system waiting for a password.
>
> I notice that there is a class that has the username password for bit
> bucket in the method MCGitBasedNetworkRepository >> siteUsername:
> username sitePassword: pass "MCBitbucketRepository siteUsername: ''
> sitePassword: ''" "MCGitHubRepository siteUsername: '' sitePassword: ''"
> self siteUsername: username; sitePassword: pass
>
> I tried setting it up with the username and password in the url for the
> remote repository and no luck.
> the class MCFileTreeGitRemoteRepository should override the getPull and
> gitPush so as to include the url with the site name and password or there
> might be a need for a different creation class for the bitbucket remote
> repositories. However it is a standrad git command to be able to include
> the username password in the url.
>
> when one does a pull as well there is a hang as well for the same reasons.
>
> I am not attempting to hack this at the moment because I can use source
> tree to do the commits and pushes and pulls. I do think though since we
> have those commands available on the remote repos and people can mark it
> private requiring a username password.
>
> Also we should consider a repository configuration that specifys the SSH
> kaey and then run the command in the context of SSH. this would eliminate
> the username password issue and it is much more secure.
>
> SO since you are more experienced than I in this area of the code, I
> should ask how should we go about fixing the issue. Also were should I
> report this issue as well?
>
> running the command from a cmd line produced the following:
> C:\pharo5win\New-Qline>git -C "C:\pharo5win\new-qline"
> usage: git [--version] [--help] [-C <path>] [-c name=value]
> [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
> [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
> [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
> <command> [<args>]
>
> The most commonly used git commands are:
> add Add file contents to the index
> bisect Find by binary search the change that introduced a bug
> branch List, create, or delete branches
> checkout Checkout a branch or paths to the working tree
> clone Clone a repository into a new directory
> commit Record changes to the repository
> diff Show changes between commits, commit and working tree, etc
> fetch Download objects and refs from another repository
> grep Print lines matching a pattern
> init Create an empty Git repository or reinitialize an existing
> one
> log Show commit logs
> merge Join two or more development histories together
> mv Move or rename a file, a directory, or a symlink
> pull Fetch from and integrate with another repository or a local
> branch
> push Update remote refs along with associated objects
> rebase Forward-port local commits to the updated upstream head
> reset Reset current HEAD to the specified state
> rm Remove files from the working tree and from the index
> show Show various types of objects
> status Show the working tree status
> tag Create, list, delete or verify a tag object signed with GPG
>
> 'git help -a' and 'git help -g' lists available subcommands and some
> concept guides. See 'git help <command>' or 'git help <concept>'
> to read about a specific subcommand or concept.
>
> C:\pharo5win\New-Qline>
>
>
> So according to the help the command it self is formulated incorrectly.
>
> runProcessWrapperGitCommand: anArrayOfStrings in: aDirectory
> "Enclose all parameters with double quotes to protect."
>
> | r aCommandString |
> aCommandString := String
> streamContents: [ :stream |
> anArrayOfStrings
> do: [ :e |
> stream
> nextPut: $";
> nextPutAll: e;
> nextPutAll: '" ' ] ].
> (Smalltalk at: #ProcessWrapper ifAbsent: [ self error: 'Please load
> ProcessWrapper' ])
> ifNotNil: [ :pW |
> | command |
> command := pW new
> useStdout;
> useStderr;
> startWithCommand:
> self gitCommand , ' -C "'
> ,
> (MCFileTreeFileUtils current directoryPathString: aDirectory)
> , '" ' , aCommandString;
> yourself.
> command waitForExit.
> self assert: command isRunning not.
> r := command upToEnd.
> command exitCode > 0
> ifTrue:
> [
> | errorString |
> errorString := command errorUpToEnd.
> errorString notEmpty
> ifTrue:
> [ MCFileTreeGitError new signal: 'Git error: ' , errorString ].
> r := '' ] ].
> ^ r
>
>
> Kind Regards,
>
> Sean Glazier
>
>
> On Mon, Jul 25, 2016 at 1:01 AM, Sean Glazier <sglazier456(a)gmail.com>
> wrote:
>
>> Yes,
>>
>> I created in Bitbucket a repository named New-QLine. I created
>> aBaselinOfNewQLine which just has stubs. I created 2 Packages.
>> New-Qline and New-Qline-Tests each of these have 3 tags underneath and no
>> classes defined since I wanted to ensure I would have no loading issue and
>> so I can verify committing code and then doing a push and then I also
>> wanted to verify doing a Pull. The picture below is clipped from my pharo5
>> image.
>>
>> In the window Respository:sglazier456/new-qline.git [master] (Remote Git)
>> shown below. The code at this point has been committed successfully and now
>> I want to Push it to the repository. Once I hit the Push button the image
>> freezes. I can press the x button on the main Pharo 5 window and I get the
>> dialog do you want to quit with out saving.
>>
>> I am assuming that the push is using a git command. I am not familiar
>> with the Pharo 5 keyboard shortcuts. I tried control b along with some
>> others in hopes of interrupting this process and bringing the image back
>> and being able to debug. However, I was unsuccessful in that. I was
>> thinking that I might need to supply a setting so the ssh session can use
>> the privateKey I generated and then I can be verified and the command
>> continues.
>>
>> I am not sure what is going on yet. I thought I would ask to see if it is
>> something simple I am missing.
>>
>> If you need to I can email you my privateKey so you can try it against
>> the same repository I am using.
>> git@bitbucket.org:sglazier456/new-qline.git
>>
>> Partial sceen shot showing the repository window is below.
>>
>> [image: Inline image 1]
>>
>> Thank you for your help and if you can point me to where I need to added
>> a break point I can provide more information :-)
>>
>>
>> Kind Regards,
>>
>> Sean Glazier
>>
>>
>> On Mon, Jul 25, 2016 at 12:37 AM, Dale Henrichs <
>> dale.henrichs(a)gemtalksystems.com> wrote:
>>
>>> I'd be interested in making this work ... could you supply additional
>>> details about the problems you are seeing perhaps we can fix the problems?
>>>
>>> Dale
>>>
>>>
>>> On 7/24/16 6:42 PM, Sean P. DeNigris wrote:
>>>
>>>> Dale Henrichs-3 wrote
>>>>
>>>>> Yes, Metacello supports bitbucket:// repos...
>>>>>
>>>> N.B. IIRC I wasn't able to use it for my private projects because it
>>>> doesn't
>>>> work with private repos accessed via SSH
>>>>
>>>>
>>>>
>>>> -----
>>>> Cheers,
>>>> Sean
>>>> --
>>>> View this message in context:
>>>> http://forum.world.st/Can-GitHubcello-be-used-against-BitBucket-tp4907386p4…
>>>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>>
>>
>
July 25, 2016
UPnP/IGD implementation
by Norbert Hartl
Does anyone know some code or person that did something with UPnP/IGD in pharo?
thanks,
Norbert
July 25, 2016
pharo 5 crashing
by Sean Glazier
Hi,
I have been saving and restarting my images all night and I carefully do a
save as regularly in case I toast an image. This morning I can not seem to
start up any of my images including a clean one. Head scratch. std err has
it dying in the weak array finalization process. Could I get enlightened as
to why?
[31m
[0mProcess>>terminate
WeakArray class>>restartFinalizationProcess
WeakArray class>>startUp:
ClassSessionHandler>>startup:
[ :each | each startup: isImageStarting ] in WorkingSession>>runStartup: in
Block: [ :each | each startup: isImageStarting ]
[ aBlock value: each ] in [ :each |
[ aBlock value: each ]
on: Exception
do: [ :error | self errorHandler handleError: error ] ] in
WorkingSession>>runList:do: in Block: [ aBlock value: each ]
BlockClosure>>on:do:
[ :each |
[ aBlock value: each ]
on: Exception
do: [ :error | self errorHandler handleError: error ] ] in
WorkingSession>>runList:do: in Block: [ :each | ...
Array(SequenceableCollection)>>do:
WorkingSession>>runList:do:
WorkingSession>>runStartup:
WorkingSession>>start:
SessionManager>>snapshot:andQuit:
SmalltalkImage>>snapshot:andQuit:
[ Smalltalk snapshot: true andQuit: false ] in WorldState
class>>saveSession in Block: [ Smalltalk snapshot: true andQuit: false ]
BlockClosure>>ensure:
CursorWithMask(Cursor)>>showWhile:
WorldState class>>saveSession
[ | selArgCount |
"show cursor in case item opens a new MVC window"
(selArgCount := selector numArgs) = 0
ifTrue: [ target perform: selector ]
ifFalse: [ selArgCount = arguments size
ifTrue: [ target perform: selector withArguments: arguments ]
ifFalse: [ target perform: selector withArguments: (arguments copyWith:
evt) ].
self showShortcut ].
self changed ] in ToggleMenuItemMorph(MenuItemMorph)>>invokeWithEvent: in
Block: [ | selArgCount |...
BlockClosure>>ensure:
Cursor>>showWhile:
ToggleMenuItemMorph(MenuItemMorph)>>invokeWithEvent:
ToggleMenuItemMorph(MenuItemMorph)>>mouseUp:
ToggleMenuItemMorph(MenuItemMorph)>>handleMouseUp:
MouseButtonEvent>>sentTo:
ToggleMenuItemMorph(Morph)>>handleEvent:
MorphicEventDispatcher>>dispatchDefault:with:
MorphicEventDispatcher>>handleMouseUp:
MouseButtonEvent>>sentTo:
[ ^ anEvent sentTo: self ] in MorphicEventDispatcher>>dispatchEvent:with:
in Block: [ ^ anEvent sentTo: self ]
[0m
Kind Regards,
Sean Glazier
July 25, 2016
Re: [Pharo-users] Can GitHubcello be used against BitBucket?
by Sean Glazier
some more information the git command that it runs is
git -C "C:\pharo5win\new-qline"
This is run in the method
MCFileTreeGitRemoteRepository>>runProcessWrapperGitCommand:
anArrayOfStrings in: aDirectory.
It is stuck on the line:
command waitForExit.
this wait for exit has no timeout to it and you wait forever. I found out
on windows the user interrupt is alt . Just like the Mac ;-)
I have no error in the error stream at all.
>From the source tree tool the command should look more like this:
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags
origin master:master
and then followed by the -C "C:\pharo5win\new-qline"
git -C "C:\pharo5win\new-qline" -c diff.mnemonicprefix=false -c
core.quotepath=false push -v --tags origin master:master
However doing this from a command line it asks for the users password like
thus
C:\pharo5win\New-Qline>git -C "C:\pharo5win\new-qline" -c
diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin
master:master
Pushing to https://sglazier456@bitbucket.org/sglazier456/new-qline.git
Password for 'https://sglazier456@bitbucket.org':
to avoid the password prompt you can do this
git -C "C:\pharo5win\new-qline" -c diff.mnemonicprefix=false -c
core.quotepath=false push
https://username:password@myrepository.biz/file.git -v --tags origin
master:master
you can also replace -v --tags origin master:master with --all as well
in my case it would look like
git -C "C:\pharo5win\new-qline" -c diff.mnemonicprefix=false -c
core.quotepath=false push
https://sglazier456:MY_PASSWORD@bitbucket.org/sglazier456/new-qline.git -v
--tags origin master:master
OR
git -C "C:\pharo5win\new-qline" -c diff.mnemonicprefix=false -c
core.quotepath=false push
https://sglazier456:MY_PASSWORD@bitbucket.org/sglazier456/new-qline.git -all
and that works with out the system waiting for a password.
I notice that there is a class that has the username password for bit
bucket in the method MCGitBasedNetworkRepository >> siteUsername: username
sitePassword: pass "MCBitbucketRepository siteUsername: '' sitePassword:
''" "MCGitHubRepository siteUsername: '' sitePassword: ''" self
siteUsername: username; sitePassword: pass
I tried setting it up with the username and password in the url for the
remote repository and no luck.
the class MCFileTreeGitRemoteRepository should override the getPull and
gitPush so as to include the url with the site name and password or there
might be a need for a different creation class for the bitbucket remote
repositories. However it is a standrad git command to be able to include
the username password in the url.
when one does a pull as well there is a hang as well for the same reasons.
I am not attempting to hack this at the moment because I can use source
tree to do the commits and pushes and pulls. I do think though since we
have those commands available on the remote repos and people can mark it
private requiring a username password.
Also we should consider a repository configuration that specifys the SSH
kaey and then run the command in the context of SSH. this would eliminate
the username password issue and it is much more secure.
SO since you are more experienced than I in this area of the code, I should
ask how should we go about fixing the issue. Also were should I report this
issue as well?
running the command from a cmd line produced the following:
C:\pharo5win\New-Qline>git -C "C:\pharo5win\new-qline"
usage: git [--version] [--help] [-C <path>] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
The most commonly used git commands are:
add Add file contents to the index
bisect Find by binary search the change that introduced a bug
branch List, create, or delete branches
checkout Checkout a branch or paths to the working tree
clone Clone a repository into a new directory
commit Record changes to the repository
diff Show changes between commits, commit and working tree, etc
fetch Download objects and refs from another repository
grep Print lines matching a pattern
init Create an empty Git repository or reinitialize an existing one
log Show commit logs
merge Join two or more development histories together
mv Move or rename a file, a directory, or a symlink
pull Fetch from and integrate with another repository or a local
branch
push Update remote refs along with associated objects
rebase Forward-port local commits to the updated upstream head
reset Reset current HEAD to the specified state
rm Remove files from the working tree and from the index
show Show various types of objects
status Show the working tree status
tag Create, list, delete or verify a tag object signed with GPG
'git help -a' and 'git help -g' lists available subcommands and some
concept guides. See 'git help <command>' or 'git help <concept>'
to read about a specific subcommand or concept.
C:\pharo5win\New-Qline>
So according to the help the command it self is formulated incorrectly.
runProcessWrapperGitCommand: anArrayOfStrings in: aDirectory
"Enclose all parameters with double quotes to protect."
| r aCommandString |
aCommandString := String
streamContents: [ :stream |
anArrayOfStrings
do: [ :e |
stream
nextPut: $";
nextPutAll: e;
nextPutAll: '" ' ] ].
(Smalltalk at: #ProcessWrapper ifAbsent: [ self error: 'Please load
ProcessWrapper' ])
ifNotNil: [ :pW |
| command |
command := pW new
useStdout;
useStderr;
startWithCommand:
self gitCommand , ' -C "'
,
(MCFileTreeFileUtils current directoryPathString: aDirectory)
, '" ' , aCommandString;
yourself.
command waitForExit.
self assert: command isRunning not.
r := command upToEnd.
command exitCode > 0
ifTrue:
[
| errorString |
errorString := command errorUpToEnd.
errorString notEmpty
ifTrue:
[ MCFileTreeGitError new signal: 'Git error: ' , errorString ].
r := '' ] ].
^ r
Kind Regards,
Sean Glazier
On Mon, Jul 25, 2016 at 1:01 AM, Sean Glazier <sglazier456(a)gmail.com> wrote:
> Yes,
>
> I created in Bitbucket a repository named New-QLine. I created
> aBaselinOfNewQLine which just has stubs. I created 2 Packages.
> New-Qline and New-Qline-Tests each of these have 3 tags underneath and no
> classes defined since I wanted to ensure I would have no loading issue and
> so I can verify committing code and then doing a push and then I also
> wanted to verify doing a Pull. The picture below is clipped from my pharo5
> image.
>
> In the window Respository:sglazier456/new-qline.git [master] (Remote Git)
> shown below. The code at this point has been committed successfully and now
> I want to Push it to the repository. Once I hit the Push button the image
> freezes. I can press the x button on the main Pharo 5 window and I get the
> dialog do you want to quit with out saving.
>
> I am assuming that the push is using a git command. I am not familiar with
> the Pharo 5 keyboard shortcuts. I tried control b along with some others in
> hopes of interrupting this process and bringing the image back and being
> able to debug. However, I was unsuccessful in that. I was thinking that I
> might need to supply a setting so the ssh session can use the privateKey I
> generated and then I can be verified and the command continues.
>
> I am not sure what is going on yet. I thought I would ask to see if it is
> something simple I am missing.
>
> If you need to I can email you my privateKey so you can try it against the
> same repository I am using.
> git@bitbucket.org:sglazier456/new-qline.git
>
> Partial sceen shot showing the repository window is below.
>
> [image: Inline image 1]
>
> Thank you for your help and if you can point me to where I need to added a
> break point I can provide more information :-)
>
>
> Kind Regards,
>
> Sean Glazier
>
>
> On Mon, Jul 25, 2016 at 12:37 AM, Dale Henrichs <
> dale.henrichs(a)gemtalksystems.com> wrote:
>
>> I'd be interested in making this work ... could you supply additional
>> details about the problems you are seeing perhaps we can fix the problems?
>>
>> Dale
>>
>>
>> On 7/24/16 6:42 PM, Sean P. DeNigris wrote:
>>
>>> Dale Henrichs-3 wrote
>>>
>>>> Yes, Metacello supports bitbucket:// repos...
>>>>
>>> N.B. IIRC I wasn't able to use it for my private projects because it
>>> doesn't
>>> work with private repos accessed via SSH
>>>
>>>
>>>
>>> -----
>>> Cheers,
>>> Sean
>>> --
>>> View this message in context:
>>> http://forum.world.st/Can-GitHubcello-be-used-against-BitBucket-tp4907386p4…
>>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>
July 25, 2016
Re: [Pharo-users] Can GitHubcello be used against BitBucket?
by Sean Glazier
Yes,
I created in Bitbucket a repository named New-QLine. I created
aBaselinOfNewQLine which just has stubs. I created 2 Packages.
New-Qline and New-Qline-Tests each of these have 3 tags underneath and no
classes defined since I wanted to ensure I would have no loading issue and
so I can verify committing code and then doing a push and then I also
wanted to verify doing a Pull. The picture below is clipped from my pharo5
image.
In the window Respository:sglazier456/new-qline.git [master] (Remote Git)
shown below. The code at this point has been committed successfully and now
I want to Push it to the repository. Once I hit the Push button the image
freezes. I can press the x button on the main Pharo 5 window and I get the
dialog do you want to quit with out saving.
I am assuming that the push is using a git command. I am not familiar with
the Pharo 5 keyboard shortcuts. I tried control b along with some others in
hopes of interrupting this process and bringing the image back and being
able to debug. However, I was unsuccessful in that. I was thinking that I
might need to supply a setting so the ssh session can use the privateKey I
generated and then I can be verified and the command continues.
I am not sure what is going on yet. I thought I would ask to see if it is
something simple I am missing.
If you need to I can email you my privateKey so you can try it against the
same repository I am using.
git@bitbucket.org:sglazier456/new-qline.git
Partial sceen shot showing the repository window is below.
[image: Inline image 1]
Thank you for your help and if you can point me to where I need to added a
break point I can provide more information :-)
Kind Regards,
Sean Glazier
On Mon, Jul 25, 2016 at 12:37 AM, Dale Henrichs <
dale.henrichs(a)gemtalksystems.com> wrote:
> I'd be interested in making this work ... could you supply additional
> details about the problems you are seeing perhaps we can fix the problems?
>
> Dale
>
>
> On 7/24/16 6:42 PM, Sean P. DeNigris wrote:
>
>> Dale Henrichs-3 wrote
>>
>>> Yes, Metacello supports bitbucket:// repos...
>>>
>> N.B. IIRC I wasn't able to use it for my private projects because it
>> doesn't
>> work with private repos accessed via SSH
>>
>>
>>
>> -----
>> Cheers,
>> Sean
>> --
>> View this message in context:
>> http://forum.world.st/Can-GitHubcello-be-used-against-BitBucket-tp4907386p4…
>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>
>>
>
>
July 25, 2016