unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Tze Chian Kam <tze.chian.kam@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 71853@debbugs.gnu.org
Subject: bug#71853: 29.4; `kill-compilation` does not kill compilation process on Windows
Date: Tue, 2 Jul 2024 16:36:38 +1000	[thread overview]
Message-ID: <CABodVWXtRB-+-a89yT8vYgz2oW9ZNo1t=DKZx6yLEw1tLCx7zw@mail.gmail.com> (raw)
In-Reply-To: <CABodVWUL-Hhk+AJ3Sw6PdrF+K_+e6aMRTOEh_6wacn6B47EgXA@mail.gmail.com>

> From: Tze Chian Kam
> Date: Tue, 2 Jul 2024 16:26:32 +1000
>
> > 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.
>
> 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.

I can see the prints if I do "print("active", flush=True)". Does that mean
there is a flushing problem on my Emacs?





  reply	other threads:[~2024-07-02  6:36 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 [this message]
2024-07-02 12:43               ` Eli Zaretskii
2024-07-02 12:41             ` Eli Zaretskii
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='CABodVWXtRB-+-a89yT8vYgz2oW9ZNo1t=DKZx6yLEw1tLCx7zw@mail.gmail.com' \
    --to=tze.chian.kam@gmail.com \
    --cc=71853@debbugs.gnu.org \
    --cc=eliz@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).