From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#65763: Error opening a file from a Git working directory if Git is not installed Date: Wed, 6 Sep 2023 09:29:59 +0200 Message-ID: References: <831qfc4d7h.fsf@gnu.org> <83y1hk2g29.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ad5a860604abb6f6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34412"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65763@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 06 09:31:25 2023 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 1qdn0X-0008n6-5Q for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Sep 2023 09:31:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdn0K-00029H-8M; Wed, 06 Sep 2023 03:31:12 -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 1qdn0C-00026q-Mx for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2023 03:31:06 -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 1qdn0B-0002m6-0y for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2023 03:31:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qdn0A-0003Iq-Tn for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2023 03:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Sep 2023 07:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65763 X-GNU-PR-Package: emacs Original-Received: via spool by 65763-submit@debbugs.gnu.org id=B65763.169398543012636 (code B ref 65763); Wed, 06 Sep 2023 07:31:02 +0000 Original-Received: (at 65763) by debbugs.gnu.org; 6 Sep 2023 07:30:30 +0000 Original-Received: from localhost ([127.0.0.1]:60685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdmzX-0003Ha-Nr for submit@debbugs.gnu.org; Wed, 06 Sep 2023 03:30:30 -0400 Original-Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]:54379) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdmzT-0003HI-7z for 65763@debbugs.gnu.org; Wed, 06 Sep 2023 03:30:23 -0400 Original-Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-5009d4a4897so5658196e87.0 for <65763@debbugs.gnu.org>; Wed, 06 Sep 2023 00:30:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693985411; x=1694590211; 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=wfiIO7nFbnw+ybauTzuzb5CM7LfozWJ3o8P2/PTPL/o=; b=V51BwrKhys66k7gLEu28etBBFA1jgTSi9Kyg9vUGy4ilo2XOVOvfB05t1n1nbOYsvw zMNjmWnQqV3/+I7MVtYtb6HQw/COychPdZPx0FVC3IZuWOIkFHK1MhvKf3SoR/Sm8Bth XkU1K+3QaYIuMrQsoZU50+GW8uXb4ueEdqFwBQ+zBmtYpiI4ozszxjUuwAFZlKxeRyEf QSfO8VM0yiVqvxz7t2y7rL7WQ39T+iDnIcVEt4/IXFP6mdHljOu3azZgmfY6lwwDSFsc LiSsjOidzN0FAPL7rweF0mLTzQbR58lU8+PP6hyv2Nqx6jijMDnIKXckFVr6fylcIH41 02pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693985411; x=1694590211; 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=wfiIO7nFbnw+ybauTzuzb5CM7LfozWJ3o8P2/PTPL/o=; b=fj6vfPkzyuc3TAF5FwLiOgzyqb2M+C5XojODWLfmK2D5mJT2UiQZezPi1Q6F6HElQX 2usbMdzrGsXjZlsn1qbiwhai+UiEYQnzMS5+E37vmIDdHCdh7Q3JFp1jhvoD3jY5EPdd sUehHSBROuF5rohOWqXny8fCkSrnJFRYKI/1LPeW4MZOx4AVoHLDWWWCERLBfFjSnjIQ a1E215DhzYHY1sM2SDgY7t6yGTnRbUJpQ+u0sgdcUMCl6n9oZHsP2xoq1Y8i/pwJVtF2 t6Yb6HL/kTbbheCDCKe7fuGQOEXmC2mtaIpY5QpOTE5KwUk8hIMr7ih4iHJC83ZFJRkk TdZw== X-Gm-Message-State: AOJu0YxN6YlQ6gQtqwd+0jTgc/NrNu8jM+WGT6Q/KnTxUZHZvK5BA6st YF5+4tPIouPM3L+kDtoRMf3KFNStX17lYrOg+Q== X-Google-Smtp-Source: AGHT+IEKUcSk4I1P8i/sCEQNwOY62vtrX7M1x26a0tUkJtZkpj1dAP4HjS6Zj1I31rdhzRKKPTYCeR4322gAKXtNy0s= X-Received: by 2002:ac2:4ecc:0:b0:4f8:586a:8af6 with SMTP id p12-20020ac24ecc000000b004f8586a8af6mr1447163lfr.4.1693985410995; Wed, 06 Sep 2023 00:30:10 -0700 (PDT) In-Reply-To: <83y1hk2g29.fsf@gnu.org> 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:269488 Archived-At: --000000000000ad5a860604abb6f6 Content-Type: text/plain; charset="UTF-8" The problem appears to be only with `debug-on-error'. However, there are cases where you cannot control it at all, e.g. with ERT (probably also Buttercup or any other testing framework). In effect, an ERT test fails for a "random" reason, depending on which machine it is executed, i.e. it fails inside that Docker container. Paul On Wed, 6 Sept 2023 at 04:26, Eli Zaretskii wrote: > > From: Paul Pogonyshev > > Date: Tue, 5 Sep 2023 22:14:15 +0200 > > Cc: 65763@debbugs.gnu.org > > > > Ah, `debug-on-error' makes `with-demoted-errors' not demote it. > > Yes, exactly. > > > It seems in my case `debug-on-error' is let-bound in > `ert--run-test-internal'. I.e. when file is failed to be > > opened inside a ERT-based test, there is no warning, it's a hard error. > I happen to run ERT tests > > inside a Docker container. > > > > I'm not sure if it is a bug, but it does cause problems. > > Are the problems it causes happen only when debug-on-error is non-nil > for some reason? Or did you see it cause problems in other cases as > well? > --000000000000ad5a860604abb6f6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The problem appears to be only with `debug-on-error'. = However, there are cases where you cannot control it at all, e.g. with ERT = (probably also Buttercup or any other testing framework). In effect, an ERT= test fails for a "random" reason, depending on which machine it = is executed, i.e. it fails inside that Docker container.

Paul

On Wed, 6 Sept 2023 at 04:26, Eli Zaretskii <eliz@gnu.org> wrote:
> From: Paul Pogonyshev <pogonyshev@gmail.com>
> Date: Tue, 5 Sep 2023 22:14:15 +0200
> Cc: 65763@d= ebbugs.gnu.org
>
> Ah, `debug-on-error' makes `with-demoted-errors' not demote it= .

Yes, exactly.

> It seems in my case `debug-on-error' is let-bound in `ert--run-tes= t-internal'. I.e. when file is failed to be
> opened inside a ERT-based test, there is no warning, it's a hard e= rror. I happen to run ERT tests
> inside a Docker container.
>
> I'm not sure if it is a bug, but it does cause problems.

Are the problems it causes happen only when debug-on-error is non-nil
for some reason?=C2=A0 Or did you see it cause problems in other cases as well?
--000000000000ad5a860604abb6f6--