From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#42088: [feature/native-comp] Lockup on opening TypeScript files Date: Mon, 29 Jun 2020 22:33:02 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="118507"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 42088@debbugs.gnu.org, Sebastian Sturm To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 30 04:34:16 2020 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 1jq66B-000Ugh-JK for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Jun 2020 04:34:15 +0200 Original-Received: from localhost ([::1]:56454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jq66A-0000Ed-9H for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jun 2020 22:34:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jq65y-0000EL-Ip for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 22:34:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38344) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jq65y-0008HE-5s for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 22:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jq65y-0008Lv-1q for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 22:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Jun 2020 02:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42088 X-GNU-PR-Package: emacs Original-Received: via spool by 42088-submit@debbugs.gnu.org id=B42088.159348439332049 (code B ref 42088); Tue, 30 Jun 2020 02:34:02 +0000 Original-Received: (at 42088) by debbugs.gnu.org; 30 Jun 2020 02:33:13 +0000 Original-Received: from localhost ([127.0.0.1]:49889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jq65B-0008Kr-Ac for submit@debbugs.gnu.org; Mon, 29 Jun 2020 22:33:13 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:42361) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jq658-0008Kc-JG for 42088@debbugs.gnu.org; Mon, 29 Jun 2020 22:33:12 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 01AA2440B5F; Mon, 29 Jun 2020 22:33:05 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 61782440B5C; Mon, 29 Jun 2020 22:33:03 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1593484383; bh=4bwISuauO70hOYMHhuWBN3musBR34pvr+uFCnK8t1N4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Yz3JNtqtpIDn9wm+IPvnyPxVl6fZbTLVJVTMsdEK/oxaIRjsxvmzGuKAF35UHP0yq /luxoLAOecWPOlAxHIka21qnrc5XMun8Lr9jTNSr38e2ygT5UwxpZXbadjcoEzaA8p pZ7K14T14ltF9VlscgTo0pOv9zUd77fIWxSdwb3CstIBB3+E5J3rF0IwlE1BWltC79 qaye8Pzr3R59+2QWA5z/gGGYhVOWhj3opspSalSbMfYM1YLehhZZRzWkyfRi6COdQW kiXFNrD2HH+YCu/IN+x1XNv6zGq7fkX14wuwBYv1e93BGYCBBmY0gu2PS+URDbhkiJ rsDXkBMRW9D5g== Original-Received: from alfajor (unknown [157.52.0.200]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0DB981202CE; Mon, 29 Jun 2020 22:33:03 -0400 (EDT) In-Reply-To: (Andrea Corallo's message of "Sun, 28 Jun 2020 10:43:22 +0000") 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" Xref: news.gmane.io gmane.emacs.bugs:182550 Archived-At: > Okay after some digging I think I've an idea of what is going on: > > the code was hanging in `typescript--ensure-cache' in the loop > > (cl-loop while (re-search-forward typescript--quick-match-re-func nil t)... > > This because typescript--quick-match-re-func is not set correctly going > back and back this is because `typescript--available-frameworks' is set > to nil. Hmm... I'm afraid I can't follow this. Could you provide some details? > IIUC the reason for that is: cl-macs is expanding cl-loop using various > `--cl-var--', these looks the same but each of this is a separete > uninterned symbol. The native compiler squash them all toghether having > to pass them through the reader and a simple testcase like this fails to > behave as expected. How/where exactly do they get squashed? The printer is normally able to preserve this info (printing #: instead of for uninterned symbols and using #= and such the refer to exactly that symbol) when printing code into the .elc file, so I'm wondering why it gets lost when going through the native compiler. Stefan