From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 175BC1F5CB for ; Mon, 16 Sep 2024 14:41:19 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=WdIs5PF3; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=JyGliXLz; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1726497677; bh=/5xjD9lsoMCRpYIZjph2sLpUI+IeWaGPsvXeW8MuzLA=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=WdIs5PF380r2sNh/E9UPWNLEOoDWL7ErLnJBbLDgKpBKDNBCMr2ocWLFeeDd2qRT+ s8WceJ7BfiUKjfSnQR5cyWoOAtotxucqNJr8KGtfZuTDAwA+rxNla4b9ASfNlHQJQO HyLR8DW0/uLYdGif9e6f9J+ZFat6JyqBHa6r/y/w= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 89F5943DE7 for ; Mon, 16 Sep 2024 14:41:17 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=JyGliXLz; dkim-atps=neutral Received: from s.wrqvtzvf.outbound-mail.sendgrid.net (s.wrqvtzvf.outbound-mail.sendgrid.net [149.72.126.143]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 5F88A43D88 for ; Mon, 16 Sep 2024 14:41:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=ahSF8rB8uydX1CV9332jo2726IoMa1Y2FVH2ubFQ+uY=; b=JyGliXLzlTUqHWYWZbJcNTFHmVn2DdKVjUnucWvUMy8LxbxZxiDOuBGeYK7APc/9S5Cl EayYcAu3rhaYZ9xpICfpHGkLvxncdzpFkJX6jxtOjl4ZON327gIA0dOhwJElzQnifQnp0F 1Rih1+bVqpmDDFaCoOIumfMngraSHgQkaHIxLB+NuF7Bm2lsGzs3zmZqDg8bqcsWO2epfA cRSU0KEzsrrQTLwLaerxipp1/fEZgwP41ZzTlT0hCLNh4iIP4ylneusTEDTCW0HeF576yP Im/lOb1rnxJCogN+zq+3+AMlX/t3lHiCeDA8dR5JOJvB6BzTBxzxR0UtmzLo/B9w== Received: by recvd-76b48cd7f5-frqx6 with SMTP id recvd-76b48cd7f5-frqx6-1-66E84381-4 2024-09-16 14:41:05.123511285 +0000 UTC m=+333857.566948250 Received: from herokuapp.com (unknown) by geopod-ismtpd-25 (SG) with ESMTP id wS81dtxGSZqjJCLRu5vY6Q for ; Mon, 16 Sep 2024 14:41:05.111 +0000 (UTC) Date: Mon, 16 Sep 2024 14:41:05 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20747 X-Redmine-Issue-Author: byroot X-Redmine-Issue-Assignee: kddnewton X-Redmine-Issue-Priority: Normal X-Redmine-Sender: luke-gru X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 95856 X-SG-EID: =?us-ascii?Q?u001=2Eu2jV1cZCX3JeC9XuCMpKrPL8QYex4qqdacL0+MyIJYZ8T98+Yamf0oq9z?= =?us-ascii?Q?aSwYa9OgKS1yrZArj33QXc1KJqA8PopG+kgVPq9?= =?us-ascii?Q?cjRbGB5G3hfiMi7x+cKs35BMHCKR5Hv3RCxFSVn?= =?us-ascii?Q?FdGFvj=2FZ2ubyyBPMrLxz8XbvF5ewCKGUNtp9qr8?= =?us-ascii?Q?sq4=2FahMona88I1njX5qFMblAvBvTAlRpB5q8RQY?= =?us-ascii?Q?ZNKO0Fkf3rW+VDJxAp5LVj6AAc=2Fg+Fu4o8xFG=2Fw?= =?us-ascii?Q?bM3uJMVCCbMX0+GF6AcDqmI++Q=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: LXJW2QEH6RLHN4PZRCDMBWRTWE67JLIU X-Message-ID-Hash: LXJW2QEH6RLHN4PZRCDMBWRTWE67JLIU X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:119221] [Ruby master Bug#20747] [prism] regression in retry precedence List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "luke-gru (Luke Gruber) via ruby-core" Cc: "luke-gru (Luke Gruber)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20747 has been updated by luke-gru (Luke Gruber). PR here: https://github.com/ruby/ruby/pull/11631 ---------------------------------------- Bug #20747: [prism] regression in retry precedence https://bugs.ruby-lang.org/issues/20747#change-109798 * Author: byroot (Jean Boussier) * Status: Open * Assignee: kddnewton (Kevin Newton) * ruby -v: ruby 3.4.0dev (2024-09-15T01:06:11Z master 532af89e3b) +PRISM [arm64-darwin23] * Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED ---------------------------------------- Since prism has been made the default, our test suite now fail to boot with the following error: ```ruby syntax error found (SyntaxError) 298 | raise e 299 | else > 300 | retry | ^~~~~ Invalid retry after else 301 | end 302 | end ``` Here's the code in question, that reproduce the error: ```ruby def retry_thing(times: 1) retries ||= 0 begin yield rescue RuntimeError => e raise if (retries += 1) > times begin refresh! rescue raise e else retry end end end ``` -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/