Giter VIP home page Giter VIP logo

Comments (20)

cshclm avatar cshclm commented on May 14, 2024

I suspect this problem may have been introduced in magit by commit 2acc8be, which changes the value of 'process-connection-type' in 'magit-run*' for non-cygwin systems.

I can confirm this behaviour under Emacs trunk (though have not tested with 23.x). Setting 'magit-process-connection-type' to nil resolves this for me.

from magit.

awn avatar awn commented on May 14, 2024
  1. Under FreeBSD-8.0 the "set process-connection-type to nil" workaround doesn't work for me.
  2. I bisected the problem to the following (first bad) Emacs commit: http://repo.or.cz/w/emacs.git/commitdiff/ee1b6e21aa2b831499659b7f58ec94b95016cec7

ee1b6e21aa2b831499659b7f58ec94b95016cec7 is the first bad commit
commit ee1b6e21aa2b831499659b7f58ec94b95016cec7
Author: Stefan Monnier [email protected]
Date: Mon May 31 21:49:15 2010 -0400

* sysdep.c (child_setup_tty): Move the non-canonical initialization to
the HAVE_TERMIO where it belongs.

Again (because the problem seems system-dependent), I'm using FreeBSD-8.0 on amd64 platform.

from magit.

avar avatar avar commented on May 14, 2024

Did you report the results of your bisect to the emacs-devel list? M-x report-emacs-bug.

from magit.

awn avatar awn commented on May 14, 2024

No. Before doing this need to understand, which side is wrong -- emacs obtained not so good commit, or commit is absolutelly right and just exposed magit's flaw.

from magit.

avar avatar avar commented on May 14, 2024

In either case I'm sure the Emacs devs will be interested to know that it broke things.

from magit.

drobati avatar drobati commented on May 14, 2024

I just experienced this on Ubuntu after I updated my snapshot of emacs to the HEAD. :(

from magit.

seanlynch avatar seanlynch commented on May 14, 2024

I'm having this same problem on Snow Leopard using homebrew. No problems with AquaMacs.

from magit.

awn avatar awn commented on May 14, 2024

Reverting emacs commit ee1b6e2 to sysdep.c is not an viable option. I expirienced Tramp hangs if it reverted at the "checking vc-registered" (or something like that, cited from memory) stage. Seems like the problem lives at the Magit side indeed (using obsolete or changed interface, for example).

from magit.

purcell avatar purcell commented on May 14, 2024

As of a few days ago, the situation has worsened in emacs HEAD: setting magit-process-connection-type to nil is no longer a viable workaround, since the hanging behaviour now happens regardless. I suspect a subtle misbehaviour on Magit's side (it uses a bunch of features like process filters, sentinels, IO and exit status polling), though I haven't been able to pin down what's going wrong.

from magit.

awn avatar awn commented on May 14, 2024

Emacs developers are aware about the problem.

See thread started at:
http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00217.html

from magit.

purcell avatar purcell commented on May 14, 2024

Yay, then I'm delighted to be wrong in this case!

from magit.

purcell avatar purcell commented on May 14, 2024

The Emacs dev discussion related to Ctrl-D not working in term-mode, which now appears to be fixed. Magit, however, is still not working using either possible value of magit-process-connection-type. Very mysterious.

from magit.

mnemonikk avatar mnemonikk commented on May 14, 2024

I just did a fresh build of emacs from bzr on a 64bit linux. I also still have the same issue with magit 0.8.1 and git 1.7.1.1, regardless of magit-process-connection-type's value.

from magit.

purcell avatar purcell commented on May 14, 2024

It's still happening, but I'm certain the problem lies with Emacs. Using the following snippet in Emacs 23, the result is "Process cat finished":

(let ((p (start-process "cat" (current-buffer) "cat")))
  (process-send-eof p)
  (sit-for 1)
  (process-status p))

but in Emacs from HEAD, the output is "^D", and the process-status call returns 'run. I guess I'll try to file an Emacs bug report for this.

from magit.

purcell avatar purcell commented on May 14, 2024

I've filed an Emacs bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6771

from magit.

mnemonikk avatar mnemonikk commented on May 14, 2024

http://bazaar.launchpad.net/%7Evcs-imports/emacs/trunk/revision/100961 fixed the problem for me.

from magit.

purcell avatar purcell commented on May 14, 2024

Yep, I can confirm this is now fixed in Emacs, so I'd consider this magit issue resolved now.

from magit.

lindi2 avatar lindi2 commented on May 14, 2024

Is this kept open for a reason or do we all just lack the privileges to close this? ;)

from magit.

purcell avatar purcell commented on May 14, 2024

Option 2.

Phil should feel free to close this now.

from magit.

vanicat avatar vanicat commented on May 14, 2024

Apparently, our older bug should have been closed one year ago... closing it now.

from magit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.