From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tze Chian Kam Newsgroups: gmane.emacs.bugs Subject: bug#71853: 29.4; `kill-compilation` does not kill compilation process on Windows Date: Mon, 1 Jul 2024 12:53:51 +1000 Message-ID: References: <86plryhk91.fsf@gnu.org> <86zfr2fhb5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1054"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71853@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 01 07:42:19 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 1sO9nu-000Aaz-IW for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Jul 2024 07:42:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sO9nh-00021r-4t; Mon, 01 Jul 2024 01:42:05 -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 1sO9nf-0001vh-E0 for bug-gnu-emacs@gnu.org; Mon, 01 Jul 2024 01:42:03 -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 1sO9nf-0006m2-5V for bug-gnu-emacs@gnu.org; Mon, 01 Jul 2024 01:42:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sO9ne-0005MR-Hq for bug-gnu-emacs@gnu.org; Mon, 01 Jul 2024 01:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tze Chian Kam Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Jul 2024 05:42: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.171981249620572 (code B ref 71853); Mon, 01 Jul 2024 05:42:02 +0000 Original-Received: (at 71853) by debbugs.gnu.org; 1 Jul 2024 05:41:36 +0000 Original-Received: from localhost ([127.0.0.1]:59774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sO9nD-0005Lj-H4 for submit@debbugs.gnu.org; Mon, 01 Jul 2024 01:41:36 -0400 Original-Received: from mail-ed1-f44.google.com ([209.85.208.44]:44152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sO7CF-0000Qi-2K for 71853@debbugs.gnu.org; Sun, 30 Jun 2024 22:55:15 -0400 Original-Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-57d203d4682so2845653a12.0 for <71853@debbugs.gnu.org>; Sun, 30 Jun 2024 19:55:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719802448; x=1720407248; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tyBk7Zut0BEdBL1YnjanZX4liQSpLN4gBPcH7q3DdIc=; b=bSuiYOx/opODlV3/M9GWYdEZ1fe2W6+2UPqdYEGt+NGfo5lq7OrvPaNYUWLgMzCbUJ 6v9G1orpqXYOiavFhAlzsM3X1uVhJJtyIDpYEEMMGGou+Muwb+xJePj/itzayFvYJPyB NCMyNGdQoJGEjHTtgagCk94JWW5EvJwnMt97f3fcWMpDARz9wEgNNArGMYkbg88zrlK1 eZ6nilPk3q7M3Iou4Fu164ar+K+vhCvBWJlTufI2pT5vyOLUhxKeJqVZZ1W5B3s4XHs+ lHfKXCJWbNAtzIlW+P9qQlTyYCx8AUodNBnBDQw7H1xkZnAdK1P6rCrb029PQG9rqNqq jnsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719802448; x=1720407248; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tyBk7Zut0BEdBL1YnjanZX4liQSpLN4gBPcH7q3DdIc=; b=VSizKapM8gOrEMavc6tjrrrpo2TkE74XFjBAYjZl54ii6fWGNpylBhIXsckfO7zc+c C4895FFfaLyG/DtsyUbqzy2QrbkpLQr5YjGmSPg7b7XLgLabtENKYd+/NYGAuNfPIXRy SMH68mYFDD2GVgR9vhxNlJru+6X3hksr+wuISoxz3DL8O37Qk/EYVe4qObp4lbcq/Y7y IanXXoHkKM3u6tI0zbUeyQimStej4CBJKuYvHv/d+AXa10JSoWN8IS5JViUd/LhNy9Hs E23ZZTWoMLSHvgMfbzpRkFeM3JrwQK2xnBLrhAp0b5de5SaDCBBc9VeNUXWUnUQqlbVO o4IQ== X-Gm-Message-State: AOJu0YzIEZS7tBDdZDQAtMZueytJH+PIuOgtagYXG37jFnCkKvScyanp ig70vIDNMBvZdzz3cSUWaygEBEya3cbvmDrAiuZxNYugW1puxQOUbpNa5GNVZ5qNJgIYRakFG0k jIPh4m6sy0h8jTYXg9p6Vvx0UvsAFyxHc X-Google-Smtp-Source: AGHT+IG81jiXQx54pJJYwZMi9kzC/KxXqx4/4lUjYIKfz/Ymi9+2oDFdgcpt2j153tXXSk1U+8wvGF+orA++wEGsZgw= X-Received: by 2002:a05:6402:2116:b0:57d:1e27:65ea with SMTP id 4fb4d7f45d1cf-587a0635e7amr2994114a12.34.1719802448239; Sun, 30 Jun 2024 19:54:08 -0700 (PDT) In-Reply-To: <86zfr2fhb5.fsf@gnu.org> X-Mailman-Approved-At: Mon, 01 Jul 2024 01:41:33 -0400 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:288234 Archived-At: > From: Eli Zaretskii > Date: Sun, 30 Jun 2024 20:53:34 +0300 > > > From: Tze Chian Kam > > Date: Mon, 1 Jul 2024 01:58:30 +1000 > > > > > From: Eli Zaretskii > > > Date: Sun, 30 Jun 2024 12:07:06 +0300 > > > Please show the exact file you used as the compilation command, > > > because I cannot reproduce this with a few programs I tried, see > > > below. > > > > 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). > Also, can you interrupt the same program if you run it from the > Windows command prompt window and then type Ctrl-C? Yes. > I tried to run this program (without knowing how exactly did you do > that). Here's what I did: > > . saved this program to a file loop.py > . in "emacs -Q" typed the Emacs command > > M-x compile RET python loop.py RET > > I then got an error: > > python loop.py > active > Traceback (most recent call last): > File "loop.py", line 5, in > sleep(1) > NameError: name 'sleep' is not defined > > Compilation exited abnormally with code 1 at Sun Jun 30 > 20:47:35, duration 0.12 s Sorry for the wrong program. On Mon, 1 Jul 2024 at 03:53, Eli Zaretskii wrote: > > [Please use Reply All to reply, to keep the bug tracker CC'ed.] > > > From: Tze Chian Kam > > Date: Mon, 1 Jul 2024 01:58:30 +1000 > > > > > From: Eli Zaretskii > > > Date: Sun, 30 Jun 2024 12:07:06 +0300 > > > Please show the exact file you used as the compilation command, > > > because I cannot reproduce this with a few programs I tried, see > > > below. > > > > 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. > > Also, can you interrupt the same program if you run it from the > Windows command prompt window and then type Ctrl-C? > > I tried to run this program (without knowing how exactly did you do > that). Here's what I did: > > . saved this program to a file loop.py > . in "emacs -Q" typed the Emacs command > > M-x compile RET python loop.py RET > > I then got an error: > > python loop.py > active > Traceback (most recent call last): > File "loop.py", line 5, in > sleep(1) > NameError: name 'sleep' is not defined > > Compilation exited abnormally with code 1 at Sun Jun 30 20:47:35, duration 0.12 s > > I then modified the program as follows: > > import time > > while True: > print("active") > time.sleep(1) > > and ran the same compilation command again, then typed C-c C-k into > the compilation buffer. The result: > > python loop.py > active > active > active > active > active > Traceback (most recent call last): > File "loop.py", line 5, in > time.sleep(1) > KeyboardInterrupt > > Compilation interrupt at Sun Jun 30 20:49:10, duration 4.37 s > > which is what I would expect. > > My Python is version 3.4.4, for native MS-Windows, installed from > python.org. > > So bottom line: it works for me, even with your test program. I'm > puzzled why it doesn't work for you.