From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Da Zhang Newsgroups: gmane.emacs.bugs Subject: bug#20237: Emacs built on Windows cannot figure out path correctly Date: Sat, 04 Apr 2015 16:15:46 -0400 Message-ID: <55204672.80002@gmail.com> References: <551ADED4.4010903@gmail.com> <83twx1rpng.fsf@gnu.org> <551B109C.4050505@gmail.com> <83pp7osh9l.fsf@gnu.org> <551BF79F.3010201@gmail.com> <83384gp4gm.fsf@gnu.org> <55201ACF.2080001@gmail.com> <83k2xroli9.fsf@gnu.org> <552022E4.7000008@gmail.com> <83iodbokc1.fsf@gnu.org> <5520280A.4030201@gmail.com> <83h9svoj9m.fsf@gnu.org> <55202B10.5010207@gmail.com> <83fv8foi1u.fsf@gnu.org> <83egnzohs5.fsf@gnu.org> <83d23jogri.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------020407070503070901040600" X-Trace: ger.gmane.org 1428178584 5540 80.91.229.3 (4 Apr 2015 20:16:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Apr 2015 20:16:24 +0000 (UTC) Cc: 20237@debbugs.gnu.org To: Eli Zaretskii , =?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 04 22:16:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YeUUG-0000cV-Bl for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Apr 2015 22:16:12 +0200 Original-Received: from localhost ([::1]:34242 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeUUF-0001q4-Ay for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Apr 2015 16:16:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeUUA-0001pk-N3 for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2015 16:16:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YeUU6-0006G2-Jk for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2015 16:16:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeUU6-0006Fy-GJ for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2015 16:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YeUU5-0000If-W6 for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2015 16:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Da Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Apr 2015 20:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20237 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20237-submit@debbugs.gnu.org id=B20237.14281785601143 (code B ref 20237); Sat, 04 Apr 2015 20:16:01 +0000 Original-Received: (at 20237) by debbugs.gnu.org; 4 Apr 2015 20:16:00 +0000 Original-Received: from localhost ([127.0.0.1]:44921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YeUU3-0000IM-DD for submit@debbugs.gnu.org; Sat, 04 Apr 2015 16:15:59 -0400 Original-Received: from mail-qc0-f179.google.com ([209.85.216.179]:35306) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YeUU1-0000Hx-BA for 20237@debbugs.gnu.org; Sat, 04 Apr 2015 16:15:58 -0400 Original-Received: by qcbii10 with SMTP id ii10so644693qcb.2 for <20237@debbugs.gnu.org>; Sat, 04 Apr 2015 13:15:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=GjUE+piGNV7zG1KpjRK+tPTtxu+1+64VfqaqimNsm1A=; b=gJrNHrl72RajGZ8Xsr0jAH6ZCLMPeeiRBL25vwcOtotUAiulP4acRRRUtZTSjI+Rq1 avUQZcxKVj5TmPhgy8eq81/IKWAOU1Nx6e3IwMrWMXqTjKe/Pxf7Q9O/kJynsoUfx3vk JiT/CeFYXPiv4FlNlQlpKxbqTpF+1rOc3ZAch68bPGsVC4eHq2aRCs58ck6pa5P7CDkq zMKPMiXy0dGzJhgbFnz9jlDr59sr7YWeNS6KD0VrWuUZJL0Wz/lJ28m305ldF9QxqpZy s5+neOyrUy8/fz4OkioUnjStD3IOfy4zy+u7BEqV4SnOmueZ+kxSUxTPcgS807LJ6+nO bUMw== X-Received: by 10.140.28.203 with SMTP id 69mr9306942qgz.5.1428178551722; Sat, 04 Apr 2015 13:15:51 -0700 (PDT) Original-Received: from [192.168.1.11] (pool-108-7-46-219.bstnma.fios.verizon.net. [108.7.46.219]) by mx.google.com with ESMTPSA id f77sm92720qka.9.2015.04.04.13.15.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Apr 2015 13:15:51 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: <83d23jogri.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101205 Archived-At: This is a multi-part message in MIME format. --------------020407070503070901040600 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Hi Eli, I set debug tag using C-u C-M-x on the definition of python-shell-make-comint but when I bring up the python shell using elpy-shell-send-region-or-buffer or elpy-shell-switch-to-shell the python-shell-make-comint was not invoked. Any thoughts? BTW, for using cygwin's environment under Windows Emacs, is cygwin-mount the only solution? I enabled (require 'cygwin-mount) (cygwin-mount-activate) in my .emacs, and the previous set up of using cygwin64/bin/bash as shell works. Thanks. Da On 4/4/2015 3:06 PM, Eli Zaretskii wrote: >> Date: Sat, 04 Apr 2015 21:44:10 +0300 >> From: Eli Zaretskii >> Cc: 20237@debbugs.gnu.org >> >>> Date: Sat, 04 Apr 2015 21:38:21 +0300 >>> From: Eli Zaretskii >>> Cc: 20237@debbugs.gnu.org >>> >>> I think you need to use this instead: >>> >>> (setq python-shell-interpreter "/cygdrive/C/Python27/Scripts/ipython") >>> >>> Or something like that -- I don't use Cygwin, so I might be mistaken >>> about the exact format you need to use. >> Actually, if you use this format, you'd probably also need to use >> cygwin-mount as well. > There's probably one more issue here, and maybe this is the root cause > of the problem. This part of the backtrace you posted: > > make-comint-in-buffer("Python" "*Python*" "c\\:/Python27/Scripts/ipython.exe" nil "-i" "--profile=dev" "--colors=Linux") > apply(make-comint-in-buffer "Python" "*Python*" "c\\:/Python27/Scripts/ipython.exe" nil ("-i" "--profile=dev" "--colors=Linux")) > python-shell-make-comint("c\\:/Python27/Scripts/ipython.exe -i --profile=dev --colors=Linux" "Python" nil) > run-python("c\\:/Python27/Scripts/ipython.exe -i --profile=dev --colors=Linux") > > seems to indicate that split-string-and-unquote, called by > python-shell-make-comint, fails to remove the backslash before the > colon. I don't understand why this happens. Can you see what's going > on inside python-shell-make-comint? > > Fabián, can you help us out here? --------------020407070503070901040600 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit Hi Eli,

I set debug tag using C-u C-M-x on the definition of

python-shell-make-comint

but when I bring up the python shell using 
elpy-shell-send-region-or-buffer
or 
elpy-shell-switch-to-shell

the python-shell-make-comint was not invoked. 
Any thoughts?

BTW, for using cygwin's environment under Windows Emacs, is cygwin-mount the only solution?
I enabled 
(require 'cygwin-mount)
(cygwin-mount-activate)
in my .emacs, and the previous set up of using cygwin64/bin/bash as shell works.

Thanks.

Da 


On 4/4/2015 3:06 PM, Eli Zaretskii wrote:
Date: Sat, 04 Apr 2015 21:44:10 +0300
From: Eli Zaretskii <eliz@gnu.org>
Cc: 20237@debbugs.gnu.org

Date: Sat, 04 Apr 2015 21:38:21 +0300
From: Eli Zaretskii <eliz@gnu.org>
Cc: 20237@debbugs.gnu.org

I think you need to use this instead:

  (setq python-shell-interpreter "/cygdrive/C/Python27/Scripts/ipython")

Or something like that -- I don't use Cygwin, so I might be mistaken
about the exact format you need to use.
Actually, if you use this format, you'd probably also need to use
cygwin-mount as well.
There's probably one more issue here, and maybe this is the root cause
of the problem.  This part of the backtrace you posted:

  make-comint-in-buffer("Python" "*Python*" "c\\:/Python27/Scripts/ipython.exe" nil "-i" "--profile=dev" "--colors=Linux")
  apply(make-comint-in-buffer "Python" "*Python*" "c\\:/Python27/Scripts/ipython.exe" nil ("-i" "--profile=dev" "--colors=Linux"))
  python-shell-make-comint("c\\:/Python27/Scripts/ipython.exe -i --profile=dev --colors=Linux" "Python" nil)
  run-python("c\\:/Python27/Scripts/ipython.exe -i --profile=dev --colors=Linux")

seems to indicate that split-string-and-unquote, called by
python-shell-make-comint, fails to remove the backslash before the
colon.  I don't understand why this happens.  Can you see what's going
on inside python-shell-make-comint?

Fabián, can you help us out here?

--------------020407070503070901040600--