unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: sds@gnu.org
Cc: 8265@debbugs.gnu.org
Subject: bug#8265: 24.0.50; windows emacs hanging calling svn
Date: Thu, 17 Mar 2011 02:34:27 -0400	[thread overview]
Message-ID: <E1Q06mx-0004J1-5C@fencepost.gnu.org> (raw)
In-Reply-To: <sv7hbyn00q.fsf@tbox.wtc.algo> (message from Sam Steingold on Wed, 16 Mar 2011 19:00:53 -0400)

> From: Sam Steingold <sds@gnu.org>
> Cc: 8265@debbugs.gnu.org
> Mail-Copies-To: never
> Reply-To: sds@gnu.org
> Date: Wed, 16 Mar 2011 19:00:53 -0400

(Aren't Mail-Copies-To and Reply-To above in contradiction?)

> > * Eli Zaretskii <ryvm@tah.bet> [2011-03-17 00:08:06 +0200]:
> >
> >> Debugger entered--Lisp error: (error "Running svn status -v foo.cpp...FAILED (status 1)")
> >
> > I don't use svn; what kind of text is that command supposed to output?
> > E.g., what does it show if you run it from the command prompt under
> > the same conditions?
> 
> for a modified file:
> --------------------------
> M            11693    11346 sds          foo/bar/baz.h
> --------------------------
> for an unmodified file:
> --------------------------
>              11693     9843 sds         foo/bar/baz.h
> --------------------------

If it's a single line, it could be that Emacs doesn't see it due to
the fact that (I think) Windows pipes are buffered.  Or maybe it's a
decoding issue.  Can you trace through vc-do-command and see if Emacs
is invoking svn asynchronously or synchronously, and perhaps also
where it hangs?

> > Also, can you run this under Cygwin's strace and show the system call
> > where it (whatever "it" means) hangs?
> 
> when I try to attach strace or gdb to the svn process, they hang too.

That's not what I had in mind.  I would create an svn shell script,
with the following contents:

#!/bin/sh
strace -o svn.trace /cygdrive/path/to/svn/svn.exe $*

then make it appear in PATH before svn.exe, and then repeat whatever
you do in Emacs that hangs.  Hopefully, svn.trace will then show in
which syscall svn hangs, if it does.

the above is 100% untested, and also I have no idea about your setup
wrt shell and Cygwin, so you will probably need to tailor it.  But I
hope you get the idea.

> please let me know if I could do anything else, but I would appreciate
> _detailed_ instructions on any operation with visual studio.

Sorry, I don't use VS except occasionally, and only if I absolutely
have to.  I hope the above script will resolve the problem nicely.





  parent reply	other threads:[~2011-03-17  6:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-16 20:15 bug#8265: 24.0.50; windows emacs hanging calling svn Sam Steingold
     [not found] ` <handler.8265.B.13003065675707.ack@debbugs.gnu.org>
2011-03-16 21:16   ` bug#8265: Acknowledgement (24.0.50; windows emacs hanging calling svn) Sam Steingold
2011-03-16 22:08 ` bug#8265: 24.0.50; windows emacs hanging calling svn Eli Zaretskii
2011-03-16 23:00   ` Sam Steingold
2011-03-17  2:16     ` Stefan Monnier
2011-03-17 23:23       ` Christoph Scholtes
2011-03-18  8:17         ` Eli Zaretskii
2013-02-21  6:08           ` Glenn Morris
2013-02-21 18:43             ` Sam Steingold
2013-02-21 19:04               ` Glenn Morris
2011-03-17  6:34     ` Eli Zaretskii [this message]
2011-03-17 17:57       ` Sam Steingold
2011-03-17 19:27         ` Eli Zaretskii
2011-03-17 20:46           ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1Q06mx-0004J1-5C@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=8265@debbugs.gnu.org \
    --cc=sds@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).