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#66646: 29.1.90; No tsx syntax highlithting in typescript-ts-mode Date: Fri, 20 Oct 2023 16:32:59 +0300 Message-ID: <83pm19s9kk.fsf@gnu.org> References: <83r0lpshva.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22409"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66646@debbugs.gnu.org To: rrudakov@fastmail.com, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 20 15:33:46 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 1qtpdK-0005ZY-Nk for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Oct 2023 15:33:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtpdC-0005T6-1C; Fri, 20 Oct 2023 09:33:38 -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 1qtpd9-0005Ov-Q6 for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2023 09:33:36 -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 1qtpd9-0005ma-BG for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2023 09:33:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtpda-0004vL-4P for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2023 09:34: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: Fri, 20 Oct 2023 13:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66646 X-GNU-PR-Package: emacs Original-Received: via spool by 66646-submit@debbugs.gnu.org id=B66646.169780882318903 (code B ref 66646); Fri, 20 Oct 2023 13:34:02 +0000 Original-Received: (at 66646) by debbugs.gnu.org; 20 Oct 2023 13:33:43 +0000 Original-Received: from localhost ([127.0.0.1]:38962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtpdH-0004uo-4o for submit@debbugs.gnu.org; Fri, 20 Oct 2023 09:33:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtpdD-0004ua-82 for 66646@debbugs.gnu.org; Fri, 20 Oct 2023 09:33:41 -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 1qtpcf-0005Wg-V3; Fri, 20 Oct 2023 09:33:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=mtJOg5QzEaI9uOMb+7bFLlYD0B7tWfLYMvcgQf6luj8=; b=XIM4ngQBB5Fwy6Oa1JZd CLl/w9hDr9EyRS6NMugpBqc7qopnZfajdMDICENc/F49lXkLycFYyLLWmUrcXsq3g39VA3/HQFnfv sdASpA1xQcFoG8neNz/WaM8pG1+3sKSHCwTcQGGl6o/zdFRzoRUKYput0PATPMhCCWICWpcf+3197 hBawd73i7sFsBvSrtrU2nijaGBxCZzLY0OupsIcTFQrZg0KMLe5E8PpC7b5TTxI2vAiGF+B/E8TbT rLsyxQ5feOnIrpm72/IZ3P/HHKLHq1ox55k1qulBKenr/5fEXPrpxwkyfrsScCPajed2rFTKzf/wK diM6dsgjsTR4MQ==; In-Reply-To: (message from Roman Rudakov on Fri, 20 Oct 2023 15:17:01 +0200) 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:272794 Archived-At: > From: Roman Rudakov > Cc: 66646@debbugs.gnu.org > Date: Fri, 20 Oct 2023 15:17:01 +0200 > > > I cannot reproduce this. I used a random *.tsx file on my system, > > and > > didn't get any error. So please post the file you used, and also > > describe step by step what to do to reproduce the problem starting > > from "emacs -Q". > > > > Thanks. > > After some debugging I figured out that it can be only reproduced when > `eglot-ensure` is added to `typescript-ts-mode-hook` and > `tsx-ts-mode-hook`. So, steps to reproduce are the following: > - Optionally install `typescript-language-server` (if it's not > installed there will be eglot error, but the original issue will > still be reproducible). > - `emacs -Q` > - evaluate the following: > > (require 'typescript-ts-mode) > (require 'eglot) > (add-hook 'typescript-ts-mode-hook #'eglot-ensure) > (add-hook 'tsx-ts-mode-hook #'eglot-ensure) > > - open attached tsx file. Thanks, but in that case I cannot debug this because I don't have a Typescript LSP server installed. Someone else will need to do that. Adding Joćo in case he has some inputs or suggestions.