* git-gui hangs on read
@ 2008-04-21 14:23 Benjamin Collins
2008-04-21 21:05 ` Benjamin Collins
2008-04-22 0:13 ` Shawn O. Pearce
0 siblings, 2 replies; 12+ messages in thread
From: Benjamin Collins @ 2008-04-21 14:23 UTC (permalink / raw)
To: git
I just upgraded a few machines (RHEL 4.4) to the latest stable, and
git-gui stopped working. It just hangs forever if it's in a git
repository. If it's not in a repository, it will open up the dialog
that lets you create or open a repository. I'm not sure what's going
on, but here's the tail end of the strace -f:
[pid 16903] open("/usr/share/aspell/standard.kbd", O_RDONLY) = 3
[pid 16903] fstat(3, {st_mode=S_IFREG|0644, st_size=100, ...}) = 0
[pid 16903] mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a983ce000
[pid 16903] read(3, "# Standard keyboard data file\n\nq"..., 4096) = 100
[pid 16903] read(3, "", 4096) = 0
[pid 16903] close(3) = 0
[pid 16903] munmap(0x2a983ce000, 4096) = 0
[pid 16903] fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
[pid 16903] mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a983ce000
[pid 16903] write(1, "@(#) International Ispell Versio"..., 68 <unfinished ...>
[pid 16897] <... read resumed> "@(#) International Ispell Versio"..., 4096) = 68
[pid 16903] <... write resumed> ) = 68
[pid 16903] fstat(0, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
[pid 16903] mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a983cf000
[pid 16903] read(0, <unfinished ...>
[pid 16897] write(5, "!\n$$cr master\n", 14) = 14
[pid 16903] <... read resumed> "!\n$$cr master\n", 4096) = 14
[pid 16897] read(6, <unfinished ...>
[pid 16903] read(0,
Has anyone seen this before? I wanted to get some other eyeballs on
this before I dive into this rabbit hole.
--
Benjamin A. Collins <ben.collins@acm.org>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git-gui hangs on read
2008-04-21 14:23 git-gui hangs on read Benjamin Collins
@ 2008-04-21 21:05 ` Benjamin Collins
2008-04-22 0:13 ` Shawn O. Pearce
1 sibling, 0 replies; 12+ messages in thread
From: Benjamin Collins @ 2008-04-21 21:05 UTC (permalink / raw)
To: git
On Mon, Apr 21, 2008 at 9:23 AM, Benjamin Collins <ben.collins@acm.org> wrote:
> I just upgraded a few machines (RHEL 4.4) to the latest stable, and
> git-gui stopped working. It just hangs forever if it's in a git
> repository.
Still don't know what the deal is (no time to investigate, yet), but
1.5.4 doesn't have this issue.
--
Benjamin A. Collins <aggieben@gmail.com>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git-gui hangs on read
2008-04-21 14:23 git-gui hangs on read Benjamin Collins
2008-04-21 21:05 ` Benjamin Collins
@ 2008-04-22 0:13 ` Shawn O. Pearce
2008-04-22 13:34 ` Benjamin Collins
1 sibling, 1 reply; 12+ messages in thread
From: Shawn O. Pearce @ 2008-04-22 0:13 UTC (permalink / raw)
To: Benjamin Collins; +Cc: git
Benjamin Collins <ben.collins@acm.org> wrote:
> I just upgraded a few machines (RHEL 4.4) to the latest stable, and
> git-gui stopped working. It just hangs forever if it's in a git
> repository.
...
> [pid 16903] write(1, "@(#) International Ispell Versio"..., 68 <unfinished ...>
> [pid 16897] <... read resumed> "@(#) International Ispell Versio"..., 4096) = 68
> [pid 16903] <... write resumed> ) = 68
> [pid 16903] fstat(0, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
> [pid 16903] mmap(NULL, 4096, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a983cf000
> [pid 16903] read(0, <unfinished ...>
> [pid 16897] write(5, "!\n$$cr master\n", 14) = 14
> [pid 16903] <... read resumed> "!\n$$cr master\n", 4096) = 14
> [pid 16897] read(6, <unfinished ...>
> [pid 16903] read(0,
>
> Has anyone seen this before?
Nope. This was a new feature of git-gui 0.10; we now launch an
aspell session in the background via a bi-directional pipe and
use it to spell check the commit message area on the fly. The
reason Git 1.5.4 doesn't have this problem is because it ships
with git-gui 0.9.x, which doesn't have this spell check.
I'm not sure why your system is hanging. I've used git-gui 0.10
on Mac OS 10.4, 10.5 and Windows without any issues for many weeks
prior to the 1.5.5 release. Doesn't mean there isn't possibly
something wrong here, I just had thought this was pretty stable
code at this point.
>From the strace it looks like your aspell is not giving us a
reply to the "$$cr master" command. What does this give you?
aspell --mode=none --encoding=UTF-8 pipe <<EOF
!
$$cr master
EOF
--
Shawn.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git-gui hangs on read
2008-04-22 0:13 ` Shawn O. Pearce
@ 2008-04-22 13:34 ` Benjamin Collins
2008-04-22 23:25 ` Shawn O. Pearce
0 siblings, 1 reply; 12+ messages in thread
From: Benjamin Collins @ 2008-04-22 13:34 UTC (permalink / raw)
To: Shawn O. Pearce, git
On Mon, Apr 21, 2008 at 7:13 PM, Shawn O. Pearce <spearce@spearce.org> wrote:
> From the strace it looks like your aspell is not giving us a
> reply to the "$$cr master" command. What does this give you?
>
> aspell --mode=none --encoding=UTF-8 pipe <<EOF
> !
> $$cr master
> EOF
>
> --
> Shawn.
Response:
$ aspell --mode=none --encoding=UTF-8 pipe <<EOF
> !
> $$cr master
> EOF
@(#) International Ispell Version 3.1.20 (but really Aspell 0.50.5)
& cr 70 5: Cr, cry, RC, CPR, CRT, Car, car, ctr, cur, CT, Ct, ct, C, R, c, r, Ce
, cir, Gr, Jr, Kr, gr, qr, NCR, OCR, VCR, CA, CO, Ca, Co, Cu, RR, ca, cc, ck, co
, cu, cw, yr, BR, Br, CB, CD, CF, CV, CZ, Cb, Cd, Cf, Cl, Cm, Cs, Dr, Fr, HR, Lr
, Mr, PR, Pr, Sr, Zr, cf, cg, cl, cm, cs, fr, hr, pr, tr
$
--
Benjamin A. Collins <ben.collins@acm.org>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git-gui hangs on read
2008-04-22 13:34 ` Benjamin Collins
@ 2008-04-22 23:25 ` Shawn O. Pearce
2008-04-23 8:50 ` Gustaf Hendeby
0 siblings, 1 reply; 12+ messages in thread
From: Shawn O. Pearce @ 2008-04-22 23:25 UTC (permalink / raw)
To: Benjamin Collins; +Cc: git
Benjamin Collins <ben.collins@acm.org> wrote:
> On Mon, Apr 21, 2008 at 7:13 PM, Shawn O. Pearce <spearce@spearce.org> wrote:
> > From the strace it looks like your aspell is not giving us a
> > reply to the "$$cr master" command. What does this give you?
>
> $ aspell --mode=none --encoding=UTF-8 pipe <<EOF
> > !
> > $$cr master
> > EOF
> @(#) International Ispell Version 3.1.20 (but really Aspell 0.50.5)
> & cr 70 5: Cr, cry, RC, CPR, CRT, Car, car, ctr, cur, CT, Ct, ct, C, R, c, r, Ce
> , cir, Gr, Jr, Kr, gr, qr, NCR, OCR, VCR, CA, CO, Ca, Co, Cu, RR, ca, cc, ck, co
> , cu, cw, yr, BR, Br, CB, CD, CF, CV, CZ, Cb, Cd, Cf, Cl, Cm, Cs, Dr, Fr, HR, Lr
> , Mr, PR, Pr, Sr, Zr, cf, cg, cl, cm, cs, fr, hr, pr, tr
>
Awww hell. I think I see two issues. The first is $$ maybe
was expanded by your shell so aspell didn't see it as a command?
I should have used <<'EOF' to avoid that, but I uh, forgot.
Can you upgrade aspell to 0.60.5? Everywhere that I have used
git-gui 0.10 that's the version I have had available. I wonder
if 0.50.5 has an issue here, or just doesn't support the "$$cr"
command I was trying to use. In which case I can try to make
git-gui 0.10.2 detect the aspell version and avoid using $$cr
if its an old version.
--
Shawn.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git-gui hangs on read
2008-04-22 23:25 ` Shawn O. Pearce
@ 2008-04-23 8:50 ` Gustaf Hendeby
2008-04-23 14:16 ` Benjamin Collins
0 siblings, 1 reply; 12+ messages in thread
From: Gustaf Hendeby @ 2008-04-23 8:50 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: Benjamin Collins, git
On 04/23/2008 01:25 AM, Shawn O. Pearce wrote:
> Benjamin Collins <ben.collins@acm.org> wrote:
>> On Mon, Apr 21, 2008 at 7:13 PM, Shawn O. Pearce <spearce@spearce.org> wrote:
>>> From the strace it looks like your aspell is not giving us a
>>> reply to the "$$cr master" command. What does this give you?
>> $ aspell --mode=none --encoding=UTF-8 pipe <<EOF
>>> !
>>> $$cr master
>>> EOF
>> @(#) International Ispell Version 3.1.20 (but really Aspell 0.50.5)
>> & cr 70 5: Cr, cry, RC, CPR, CRT, Car, car, ctr, cur, CT, Ct, ct, C, R, c, r, Ce
>> , cir, Gr, Jr, Kr, gr, qr, NCR, OCR, VCR, CA, CO, Ca, Co, Cu, RR, ca, cc, ck, co
>> , cu, cw, yr, BR, Br, CB, CD, CF, CV, CZ, Cb, Cd, Cf, Cl, Cm, Cs, Dr, Fr, HR, Lr
>> , Mr, PR, Pr, Sr, Zr, cf, cg, cl, cm, cs, fr, hr, pr, tr
>>
>
> Awww hell. I think I see two issues. The first is $$ maybe
> was expanded by your shell so aspell didn't see it as a command?
> I should have used <<'EOF' to avoid that, but I uh, forgot.
>
> Can you upgrade aspell to 0.60.5? Everywhere that I have used
> git-gui 0.10 that's the version I have had available. I wonder
> if 0.50.5 has an issue here, or just doesn't support the "$$cr"
> command I was trying to use. In which case I can try to make
> git-gui 0.10.2 detect the aspell version and avoid using $$cr
> if its an old version.
>
Hi!
I just ran into the same/similar problem using the latest msysGit git
version on Windows XP.
I have aspell 0.50.3 alpha installed on my laptop, and that seems to be
basically up to date for the Windows port of aspell. Is there any way
to get around this problem?
/Gustaf
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git-gui hangs on read
2008-04-23 8:50 ` Gustaf Hendeby
@ 2008-04-23 14:16 ` Benjamin Collins
2008-04-23 14:49 ` Gustaf Hendeby
0 siblings, 1 reply; 12+ messages in thread
From: Benjamin Collins @ 2008-04-23 14:16 UTC (permalink / raw)
To: Gustaf Hendeby; +Cc: Shawn O. Pearce, git
On Wed, Apr 23, 2008 at 3:50 AM, Gustaf Hendeby <hendeby@isy.liu.se> wrote:
> I have aspell 0.50.3 alpha installed on my laptop, and that seems to be
> basically up to date for the Windows port of aspell. Is there any way to
> get around this problem?
>
> /Gustaf
>
What I have done for now is to comment out the line in gui-gui that
does the lappend on spell_cmd, near the end.
Sorry for the dupe.
--
Benjamin A. Collins <ben.collins@acm.org>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git-gui hangs on read
2008-04-23 14:16 ` Benjamin Collins
@ 2008-04-23 14:49 ` Gustaf Hendeby
2008-04-24 1:00 ` Shawn O. Pearce
0 siblings, 1 reply; 12+ messages in thread
From: Gustaf Hendeby @ 2008-04-23 14:49 UTC (permalink / raw)
To: Benjamin Collins; +Cc: Shawn O. Pearce, git
On 04/23/2008 04:16 PM, Benjamin Collins wrote:
> What I have done for now is to comment out the line in gui-gui that
> does the lappend on spell_cmd, near the end.
Thanks!
/Gustaf
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git-gui hangs on read
2008-04-23 14:49 ` Gustaf Hendeby
@ 2008-04-24 1:00 ` Shawn O. Pearce
2008-04-24 6:54 ` Gustaf Hendeby
0 siblings, 1 reply; 12+ messages in thread
From: Shawn O. Pearce @ 2008-04-24 1:00 UTC (permalink / raw)
To: Gustaf Hendeby; +Cc: Benjamin Collins, git
Gustaf Hendeby <hendeby@isy.liu.se> wrote:
> On 04/23/2008 04:16 PM, Benjamin Collins wrote:
> >What I have done for now is to comment out the line in gui-gui that
> >does the lappend on spell_cmd, near the end.
Here's another work around that doesn't require editing the code.
Just turn the d**n spell checker off:
git config --global gui.spellingdictionary none
That will keep us from evening trying to launch aspell, and since
its global (in your ~/.gitconfig) it should default into every
repository you have, or create.
Apparently aspell 0.50 does not like git-gui. I'll have to look at
the version header and abort trying to use aspell if it is pre 0.60.
git-gui 0.10.2 here we come.
--
Shawn.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git-gui hangs on read
2008-04-24 1:00 ` Shawn O. Pearce
@ 2008-04-24 6:54 ` Gustaf Hendeby
2008-04-25 1:02 ` Shawn O. Pearce
0 siblings, 1 reply; 12+ messages in thread
From: Gustaf Hendeby @ 2008-04-24 6:54 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: Benjamin Collins, git
On 04/24/2008 03:00 AM, Shawn O. Pearce wrote:
> Just turn the d**n spell checker off:
>
> git config --global gui.spellingdictionary none
>
> That will keep us from evening trying to launch aspell, and since
> its global (in your ~/.gitconfig) it should default into every
> repository you have, or create.
Thanks, even better! Though, I can't seem to find this option (and
other ones indicated by the source) documented anywhere. Where would be
the place to put such information? For git options the place seems to
be the git config help, but given that the git gui is maintained
independently the choice is less obvious to me.
/Gustaf
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git-gui hangs on read
2008-04-24 6:54 ` Gustaf Hendeby
@ 2008-04-25 1:02 ` Shawn O. Pearce
2008-04-25 6:45 ` Gustaf Hendeby
0 siblings, 1 reply; 12+ messages in thread
From: Shawn O. Pearce @ 2008-04-25 1:02 UTC (permalink / raw)
To: Gustaf Hendeby; +Cc: Benjamin Collins, git
Gustaf Hendeby <hendeby@isy.liu.se> wrote:
> On 04/24/2008 03:00 AM, Shawn O. Pearce wrote:
> >Just turn the d**n spell checker off:
> >
> > git config --global gui.spellingdictionary none
> >
> >That will keep us from evening trying to launch aspell, and since
> >its global (in your ~/.gitconfig) it should default into every
> >repository you have, or create.
>
> Thanks, even better! Though, I can't seem to find this option (and
> other ones indicated by the source) documented anywhere. Where would be
> the place to put such information? For git options the place seems to
> be the git config help, but given that the git gui is maintained
> independently the choice is less obvious to me.
Indeed. The git-gui options dialog lets you select this value,
but you can't get into git-gui far enough to open that dialog.
As far as documenting the git-gui options, maybe they should go into
either Documentation/git-gui.txt or into Documentation/config.txt
in the main git.git project. The latter almost makes sense because
git-gui does store its preferences in the same config file, and that
file describes the valid keys and what they mean.
--
Shawn.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git-gui hangs on read
2008-04-25 1:02 ` Shawn O. Pearce
@ 2008-04-25 6:45 ` Gustaf Hendeby
0 siblings, 0 replies; 12+ messages in thread
From: Gustaf Hendeby @ 2008-04-25 6:45 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: Benjamin Collins, git
On 04/25/2008 03:02 AM, Shawn O. Pearce wrote:
> Gustaf Hendeby <hendeby@isy.liu.se> wrote:
>> On 04/24/2008 03:00 AM, Shawn O. Pearce wrote:
>>> Just turn the d**n spell checker off:
>>>
>>> git config --global gui.spellingdictionary none
>>>
>>> That will keep us from evening trying to launch aspell, and since
>>> its global (in your ~/.gitconfig) it should default into every
>>> repository you have, or create.
>> Thanks, even better! Though, I can't seem to find this option (and
>> other ones indicated by the source) documented anywhere. Where would be
>> the place to put such information? For git options the place seems to
>> be the git config help, but given that the git gui is maintained
>> independently the choice is less obvious to me.
>
> As far as documenting the git-gui options, maybe they should go into
> either Documentation/git-gui.txt or into Documentation/config.txt
> in the main git.git project. The latter almost makes sense because
> git-gui does store its preferences in the same config file, and that
> file describes the valid keys and what they mean.
>
My first thought about the documentation was to put it in
Documentation/config.txt but wouldn't that be strange if someone uses a
git-gui other than the one bundled with the git version used? On the
other hand, if the keys don't ever change that is not a big problem.
I'll try to have a go at writing some docs, but it won't be until late
next week because my daytime work is killing me right now.
/Gustaf
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2008-04-25 6:46 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-21 14:23 git-gui hangs on read Benjamin Collins
2008-04-21 21:05 ` Benjamin Collins
2008-04-22 0:13 ` Shawn O. Pearce
2008-04-22 13:34 ` Benjamin Collins
2008-04-22 23:25 ` Shawn O. Pearce
2008-04-23 8:50 ` Gustaf Hendeby
2008-04-23 14:16 ` Benjamin Collins
2008-04-23 14:49 ` Gustaf Hendeby
2008-04-24 1:00 ` Shawn O. Pearce
2008-04-24 6:54 ` Gustaf Hendeby
2008-04-25 1:02 ` Shawn O. Pearce
2008-04-25 6:45 ` Gustaf Hendeby
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).