From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#71853: 29.4; `kill-compilation` does not kill compilation process on Windows Date: Tue, 02 Jul 2024 15:43:19 +0300 Message-ID: <86msn0c6c8.fsf@gnu.org> References: <86plryhk91.fsf@gnu.org> <86zfr2fhb5.fsf@gnu.org> <86h6d9fj3m.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37830"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71853@debbugs.gnu.org To: Tze Chian Kam Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 02 14:44:22 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sOcrt-0009gl-SC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Jul 2024 14:44:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOcrq-0007o4-Gr; Tue, 02 Jul 2024 08:44:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOcrc-0007jW-Eg for bug-gnu-emacs@gnu.org; Tue, 02 Jul 2024 08:44:04 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sOcrZ-0000x5-E5 for bug-gnu-emacs@gnu.org; Tue, 02 Jul 2024 08:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sOcra-0007ph-BW for bug-gnu-emacs@gnu.org; Tue, 02 Jul 2024 08:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Jul 2024 12:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71853 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 71853-submit@debbugs.gnu.org id=B71853.171992421130047 (code B ref 71853); Tue, 02 Jul 2024 12:44:02 +0000 Original-Received: (at 71853) by debbugs.gnu.org; 2 Jul 2024 12:43:31 +0000 Original-Received: from localhost ([127.0.0.1]:36215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOcr5-0007oZ-9U for submit@debbugs.gnu.org; Tue, 02 Jul 2024 08:43:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOcr3-0007oJ-50 for 71853@debbugs.gnu.org; Tue, 02 Jul 2024 08:43:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOcqw-0000ru-NK; Tue, 02 Jul 2024 08:43:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=eTsUoEXx2J/GzIcd5hOKXr7UyHBjJFuPNulxbug0z0g=; b=V0kn1o6BeIQd NpeN8X0Svd5jQRdPLb/F74LEiEY8tRupVgiMGDbvZxIaadSYR+OWErE6+4dTYR4IUkh5MVr7ZHwN9 osTMtT1o4ksTAW513UOQXc+dW29yhNK4DSRVvcgUMbOrAsGhGgJcixmYglog1A8lE1/AHa2KejYoA bfv/gRY6JwMlXpwy1vQwtb044GBYBybma6gwyOpUGUA+QtAc/Fd57DH7xh24zDWHQsUddEhEbwY8Q fP9h8mkSBTkA6XcGo6fauko8PMSLc864LR5znbCG7U9gYTyUVLxoiRG/u8xcPsNq23e+dGRqM0oN+ Gfeh+KGAlMJTxYOzlKHM0g==; In-Reply-To: (message from Tze Chian Kam on Tue, 2 Jul 2024 16:36:38 +1000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:288285 Archived-At: > From: Tze Chian Kam > Date: Tue, 2 Jul 2024 16:36:38 +1000 > Cc: 71853@debbugs.gnu.org > > > 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 > > > > 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? Something like that, yes. But I don't understand why it happens for you with "emacs -Q" and the native Windows Python; it doesn't happen for me.