From: Eli Zaretskii <eliz@gnu.org>
To: Tze Chian Kam <tze.chian.kam@gmail.com>
Cc: 71853@debbugs.gnu.org
Subject: bug#71853: 29.4; `kill-compilation` does not kill compilation process on Windows
Date: Tue, 02 Jul 2024 15:41:34 +0300 [thread overview]
Message-ID: <86o77gc6f5.fsf@gnu.org> (raw)
In-Reply-To: <CABodVWUL-Hhk+AJ3Sw6PdrF+K_+e6aMRTOEh_6wacn6B47EgXA@mail.gmail.com> (message from Tze Chian Kam on Tue, 2 Jul 2024 16:26:32 +1000)
> From: Tze Chian Kam <tze.chian.kam@gmail.com>
> Date: Tue, 2 Jul 2024 16:26:32 +1000
> Cc: 71853@debbugs.gnu.org
>
> > From: Eli Zaretskii
> > Date: Mon, 01 Jul 2024 14:27:09 +0300
> >
> > > From: Tze Chian Kam <tze.chian.kam@gmail.com>
> > > Date: Mon, 1 Jul 2024 12:53:51 +1000
> > > Cc: 71853@debbugs.gnu.org
> > >
> > > > > Sorry, I used a Python file:
> > > > > ```
> > > > > import time
> > > > >
> > > > > while True:
> > > > > print("active")
> > > > > sleep(1)
> > > > > ```
> > > >
> > > > And how exactly did you invoke this? Please show the complete
> > > > command you typed at the prompt of "M-x compile", because trying
> > > > to reproduce this (see below) I could't.
> > >
> > > I did "M-x compile RET python loop.py RET". Also, when running this
> > > program, it does not output anything in the *compilation* buffer ("active"
> > > is not printed every second).
> >
> > The fact that it doesn't print "active" is already a sign of some
> > problem.
> >
> > Where did you download your Python from? Is it a native Windows
> > executable, or something else, like Cygwin or MSYS2 build of Python?
>
> It is a MSYS2 build of Python.
So it's not a native Windows executable, I think, and this could well
explain what you see. What does typing the below display?
M-: (w32-application-type (executable-find "python")) RET
Also, does setting w32-start-process-share-console to a non-nil value
help with interrupting the MSYS2 Python?
> I just tested with Emacs in my global path (so I can launch Emacs from
> Powershell/Command Prompt) and it "C-c C-k' works (using native
> Windows Python) but I still can't see the prints before killing the process.
Some kind of buffering problem, I guess? Try invoking "python -u" to
get unbuffered stdout.
next prev parent reply other threads:[~2024-07-02 12:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-30 2:57 bug#71853: 29.4; `kill-compilation` does not kill compilation process on Windows Tze Chian Kam
2024-06-30 9:07 ` Eli Zaretskii
[not found] ` <CABodVWXdfXUhjhJNb13hcndALq+7A+L8VBODod7vBbD77DW5Vg@mail.gmail.com>
2024-06-30 17:53 ` Eli Zaretskii
2024-07-01 2:53 ` Tze Chian Kam
2024-07-01 11:27 ` Eli Zaretskii
2024-07-02 6:26 ` Tze Chian Kam
2024-07-02 6:36 ` Tze Chian Kam
2024-07-02 12:43 ` Eli Zaretskii
2024-07-02 12:41 ` Eli Zaretskii [this message]
2024-07-03 3:26 ` Tze Chian Kam
2024-07-03 11:17 ` Eli Zaretskii
2024-07-04 4:30 ` Tze Chian Kam
2024-07-04 6:18 ` Eli Zaretskii
2024-07-20 9:50 ` Eli Zaretskii
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=86o77gc6f5.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=71853@debbugs.gnu.org \
--cc=tze.chian.kam@gmail.com \
/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).