From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dario Gjorgjevski Newsgroups: gmane.emacs.bugs Subject: bug#72696: Track-changes errors out when file is overwritten using Node.js's fs.writeFile (at least on macOS) Date: Thu, 19 Sep 2024 00:02:34 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37948"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72696@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 19 00:05:04 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 1sr2nI-0009kO-15 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Sep 2024 00:05:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr2n3-0001jS-Jm; Wed, 18 Sep 2024 18:04:49 -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 1sr2mz-0001jF-Ko for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2024 18:04:45 -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 1sr2mz-0007T5-Af for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2024 18:04:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=P28BB4H3L0l5HUQaHnoo2uCSFu5eorwJAhVGbqPH3oc=; b=gGW0paWZfPcp2+3cXhqxF3bcqQmySYdijrm3ImvvyKCvWqk87J179S8E994D8yCdr3WF9F38cCTIGImCD0WGGJEAiHnNuOJE+0rW/rH36W3lQxSKrixDW60SI/pPi1FhP9EITWn4UGo5PAbZrFfU6bpd3ST9e5K/kIbI/8HG2hDYR3JzbwSOGnl/JtzMVvzBEphpDpsAy4lznjZMnZyKpavsL4MFGGBMEZSR3WkVeKo4C7NM/Q9aFgbG4B3v05FVE7fGe4vnBQXzg0XGzmXaD9o254JKIzrOzFohwzdIeA5rZnDlWwj+IBS+oo6HDi7cxFg0tPWCRn1hBPyeE7Fm+A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sr2nF-0007Vj-Qo for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2024 18:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dario Gjorgjevski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Sep 2024 22:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72696 X-GNU-PR-Package: emacs Original-Received: via spool by 72696-submit@debbugs.gnu.org id=B72696.172669707828827 (code B ref 72696); Wed, 18 Sep 2024 22:05:01 +0000 Original-Received: (at 72696) by debbugs.gnu.org; 18 Sep 2024 22:04:38 +0000 Original-Received: from localhost ([127.0.0.1]:59339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sr2mr-0007Ut-Lh for submit@debbugs.gnu.org; Wed, 18 Sep 2024 18:04:37 -0400 Original-Received: from mail-lj1-f172.google.com ([209.85.208.172]:45311) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sr2mo-0007Uc-Lt for 72696@debbugs.gnu.org; Wed, 18 Sep 2024 18:04:35 -0400 Original-Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2f75129b3a3so1436421fa.2 for <72696@debbugs.gnu.org>; Wed, 18 Sep 2024 15:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726696992; x=1727301792; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=P28BB4H3L0l5HUQaHnoo2uCSFu5eorwJAhVGbqPH3oc=; b=fC1U1wc5XL3y1ibZ6LfCBQN8k/Qi4UEXs07evejFcUMoURWH8anNQg6ONAbrNNX8tZ xz/GVj/CFpCkh8FFPMKO6QiOge/YPprGqopODr1c5kgbzyrpx+NguDSWx0RpanwNnHob OMTBVZtpGXYLXB3pgUdqGKOOtEO9AcQ+stmA4MQmQKZGG6ZvYSUlxDbP1I2kthuf915O wo2JSpgueDWfQ4SceHM3wlXZho3sPYAsfQ1Ypk95sYXvrfLXDl+xpOr0eswmuyoxz41T VDaoG5SOs3Q1jgI20GDnHtdtVnciIp5vXtO0e+KaFSWS0eIaix3kaYd9E4mBY32stEhR SKig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726696992; x=1727301792; h=content-transfer-encoding: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=P28BB4H3L0l5HUQaHnoo2uCSFu5eorwJAhVGbqPH3oc=; b=i1q3aqY2HXCKgYR6TqXREExqz6s6Gcw9qTLiUfWDFzmnyVDcppPhDiPMlUjx0L/w1i dVAA+saXP1nj2i1/ed2ByHzPp3p9Q/GkzpJYFbOZE4eeWKB3BuNcX/paEtZidImRXZzT J9wVT02qVJU8aUne7kEtWkMOxOoDXDG+yBaNT6zX2uuDClotBMHmBNWmRAaOG+8mUY9j qVsbsslqgfFKAxSkIgkiqE3oaF7by6zJ7P7e7rANTl2403oWpbVrY3pjFked2DAJSAZT gbCbECn0Zy77tOua+cw5hWkLg50zzemXqnj/JH//KIb8xVKXCfS42mEPV1689mb5JpIr x8kw== X-Gm-Message-State: AOJu0YzHASsWtmIBObzOuUl/l6LXwTFDUb9bpkjMmqhROf6jPvzt6YBt eweas79g6LRgv0nkoAsniDIGhvDkWoEFSYHW8rY/ppKrE2J8+pXgPbAkvF9RiO8ebnmgJRAQw6n 0ZG6fxOh3MlqxfLZS1bpZrQizhF8= X-Google-Smtp-Source: AGHT+IEx8MeAkwAkKAHtaw6s6YJYQItftX0Gp4BUmoOmyYMwnllhawRJcMc6ApatoVOeH2iLAhDSWEpTShhdFGHq/VE= X-Received: by 2002:a2e:a99d:0:b0:2ee:7a54:3b08 with SMTP id 38308e7fff4ca-2f787dabdd6mr134552171fa.3.1726696991391; Wed, 18 Sep 2024 15:03:11 -0700 (PDT) In-Reply-To: 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:292017 Archived-At: Hi, Stefan, On Mon, Sep 9, 2024 at 1:06=E2=80=AFAM Stefan Monnier wrote: > > > As far as I can see, the testDocument/didChange request should not be > > there. > > Either the `didClose/didOpen` should not be there, or the `didChange` sho= uld > not be there. The problem is that we have both. > > Can you try the patch below, which I suspect should fix your problem? > It should get rid of the `didChange` in your recipe. I gave your patch a try and it indeed fixes the issue. Thank you very much for looking into it! Best regards, Dario