From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs Subject: bug#73324: 30.0.91; php-ts-mode: regression due to the latest patches for treesitter.c? Date: Tue, 17 Sep 2024 21:26:40 -0700 Message-ID: <23907479-DDAC-4960-9222-0025826BFAC5@gmail.com> References: <24215349.4csPzL39Zc@fedora> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) 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="17714"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73324@debbugs.gnu.org To: Vincenzo Pupillo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 18 06:29:06 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 1sqmJO-0004MV-Ai for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Sep 2024 06:29:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqmJ7-0000KG-HE; Wed, 18 Sep 2024 00:28: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 1sqmJ5-0000K8-4r for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2024 00:28:47 -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 1sqmJ4-0007RA-Rf for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2024 00:28:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:Date:In-Reply-To:From:Mime-Version:To:Subject; bh=07BbnPK/qcp301RXh4b27VtGV4K3g1atacitPBd1Y3s=; b=VQ8rJwJ2Jnh4soODrZ6ZSXQdUeF0qM6rZi9oQH7nH1oDBLbz3AID9dkWfVxuivaY8yb5fERc81yNxYQWBc8xDC3Rk/8TIYLSrPP2t4Rbj86GkbiWR+a7KBhO34B2dwBmI5Sg3hhe4vRm+BxanzGpauiKEfNvQDnVRvZLiGGsx0cfvFCs1hZnQ5xrLbWGT7KKhICU+siq9lmjmpYFOK/p0nzM4kwMokWb5z8sQnP29BJFtpu56N8Ms3Hfx/z0vzyAlvalgjwiVV6LLe154ndvNFtzhi9nijPwTmSuy8REO/kSAChC1xB2oky1e5aS2DrQ62LAf7c4NkekzHmjKvn98g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqmJK-0007Xl-2E for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2024 00:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Sep 2024 04:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73324 X-GNU-PR-Package: emacs Original-Received: via spool by 73324-submit@debbugs.gnu.org id=B73324.172663370728883 (code B ref 73324); Wed, 18 Sep 2024 04:29:02 +0000 Original-Received: (at 73324) by debbugs.gnu.org; 18 Sep 2024 04:28:27 +0000 Original-Received: from localhost ([127.0.0.1]:56866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqmIl-0007Vm-Gw for submit@debbugs.gnu.org; Wed, 18 Sep 2024 00:28:27 -0400 Original-Received: from [209.85.210.174] (port=46491 helo=mail-pf1-f174.google.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqmIj-0007VA-CD for 73324@debbugs.gnu.org; Wed, 18 Sep 2024 00:28:26 -0400 Original-Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-71788bfe60eso4769608b3a.1 for <73324@debbugs.gnu.org>; Tue, 17 Sep 2024 21:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726633614; x=1727238414; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=07BbnPK/qcp301RXh4b27VtGV4K3g1atacitPBd1Y3s=; b=W24bjOwgkgOzMnHpTUc8PfPu/nMV2NQjnNZLfaw5cn3d4JKlG9nWvsq+beoNe9WvLb pMD8CDI6uNl7Knk2UJ6YWoyqHLHZhQPhPy5jQtnbc9ZyAU7OcykCvV8LVgnaGPLuaB6n G4972g+UupwvzerPNVVUAG0b3L8E0Mc2Yo3T5GBvu3uo02yHgCAZQRkW1AZMLFSuekIH zfHKe7oFJTV2BrVzl59AtTYT6vGh83k0D+cFeKVpTXjZY+et7PLEp/UtW0GT3b2IBuno ab3P1yz0iBijRQzko72rGxrQlChaRwifAquM5e0yr35uIJ7PVpt8pN3VIkf0OaKn9VPs 7cJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726633614; x=1727238414; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=07BbnPK/qcp301RXh4b27VtGV4K3g1atacitPBd1Y3s=; b=FrEJR0h8qZ96xBhjtGIBIZKK+Hn54ovarBuMqTWRdPGI9s6XNptbLzrAsaC7nd6VMT q4A1P3rxVT57Fjw0bJO2wzInxqpNUITfuQT85QrbTNm4s9HspVFCV+/rV87sot3q+cgT 5JA7YGs3Y5tskIc7hpkTHB+JyZgMVH7oj1XNRhoL3g6wrp+QdT+VuOUh5AYChOLm/Q6q dgAHeFj5kWg1Y2bPmr8kdzvMY9iIY0k9flzVwR4N5zhA1C71UceaOPwxFTkwnCTwN34L 6z1a6Vfy2C6ILmnmE+1us6Ak8KJKcLsgOkSBqRGS5uotK8tq7ZTEXEYgUOMqPNsDoTpc CV4A== X-Gm-Message-State: AOJu0YzMaSlTAi9ZM99LNGFSFfvroJUW9aIyuZH0vW/a0RZMq+oEQn+9 AhdsFuecfZ5W+2JYDqB/RfY/Ij85ZMBVKeEQfCBYoxZqOke18jwI X-Google-Smtp-Source: AGHT+IEJknqvJu/j86jt90NK1QqNkOqwtzPH80E14yrQwsllagjQHQQw6tUNV8xHOCnaBH/xOMqjsQ== X-Received: by 2002:a05:6a00:6704:b0:714:3a4b:f78f with SMTP id d2e1a72fcca58-719261e1580mr20759640b3a.20.1726633613637; Tue, 17 Sep 2024 21:26:53 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:6934:42e0:534b:aff5]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944b970f6sm6081728b3a.143.2024.09.17.21.26.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Sep 2024 21:26:52 -0700 (PDT) In-Reply-To: <24215349.4csPzL39Zc@fedora> X-Mailer: Apple Mail (2.3776.700.51) 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:291994 Archived-At: > On Sep 17, 2024, at 1:29=E2=80=AFPM, Vincenzo Pupillo = wrote: >=20 > Ciao, > php-ts-mode no longer behaves as it used to. There seems to be some = problems=20 > with the calculation of ranges covered by the parsers. In the image I = attached=20 > you can see how the code is being parsed by both the php and = javascript=20 > parsers. The namespace declaration has some elements colored as if = they were=20 > escape sequences. > The php-ts-mode--get-parser-ranges function returns the following = ranges: >=20 > ((# nil) (# nil) = (# parser for javascript> nil) (# nil) = (# for phpdoc> ((368 . 426))) (# ((368 . = 426)))) >=20 > The range for 'jsdoc' is wrong, there should be only the range for = 'phpdoc'. > The attached gif screencast shows the strange behavior in updating the = font- > lock. > It doesn't happen all the time. I'm trying to isolate the problem. >=20 > Any ideas about this? > The parsers were installed with php-ts-mode-install-parser. >=20 > GNU Emacs 30.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, = cairo=20 > version 1.18.0) of 2024-09-17, libtree-sitter-0.22.5-1.fc40.x86_64 >=20 >=20 > Thanks. >=20 > Vincenzo I couldn=E2=80=99t reproduce this but I have some suspicion. I pushed a = change to emacs-30, please try to use that and see if you can still = occasionally reproduce. Thanks! And sorry for breaking it :-) Yuan=