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)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 03A931F5CB for ; Mon, 16 Sep 2024 19:29:03 +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=Wdb2NShX; 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=jMullXyF; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1726514911; bh=9EXxDObdc61VvoACjAxw6aCBj1ag4+BK6KPlm+WBuSM=; 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=Wdb2NShXGNe/QLreEGadnOq7N6sozv6BmWJxu0xJ4KyqrLREzJLQa8cH79sewiKHO JHrOY7Ke1XQCiWc3mrlTkQH0QjsiAhN9rQqwJ01JpfIlaWFieMb4uPleyG27cSCOa/ VS2ef1e2LbhkDwQKaLFa9YSLiFt8+JzxmbcYuTs8= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 7D0BB43DAB for ; Mon, 16 Sep 2024 19:28:31 +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=jMullXyF; dkim-atps=neutral Received: from s.wrqvtvvn.outbound-mail.sendgrid.net (s.wrqvtvvn.outbound-mail.sendgrid.net [149.72.120.130]) by nue.mailmanlists.eu (Postfix) with ESMTPS id C4E9243D71 for ; Mon, 16 Sep 2024 19:28:20 +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=tHzF78sRQfsUiQSSK5CHHZnJdRkRCAtZaZ30tbxB7hE=; b=jMullXyFAUPTtBkXAQ1CF06unobK14B70d3Nw+g+h9ZzvN/isPKSkuQ1UOOnA6T4WrbY /3eJznuSFSakTZ2oqUW3i/hvq7uI+BuaTAf32pIOQWZWoVdYY00+i1mrp6PtrH6SEbuSf3 jQThBjoOfGtvqpdGZ/D98UxUlkq/UuGOAuT7nin+LgWsikcdS2bsNe720N22IMrJdd29hh r37JpyniQPhDNDFsjY1q8oFjMNGlg0aZ9cg84XGDMcQo5iQvYyyn8g+EB60OhnU2ibAuDm MWSxwmPaEWsWYtebWSenxlxwCa45vpDefphVQh4jkuZVkx651AERUdnKtHwudwWg== Received: by recvd-76b48cd7f5-45wck with SMTP id recvd-76b48cd7f5-45wck-1-66E886D3-35 2024-09-16 19:28:19.657485751 +0000 UTC m=+350997.993694375 Received: from herokuapp.com (unknown) by geopod-ismtpd-9 (SG) with ESMTP id wnQO8D1bRnKr82ajgR1b0g for ; Mon, 16 Sep 2024 19:28:19.600 +0000 (UTC) Date: Mon, 16 Sep 2024 19:28:19 +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: kddnewton 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: 95864 X-SG-EID: =?us-ascii?Q?u001=2E41nWPij=2FD1kdGmpgWeHScbb9X8tZePZrQQx3bl8Vy2odBuMhLMhId2kIq?= =?us-ascii?Q?I4MmMJ43lNHfKPNNds=2Fb3JsTYpYoWyQb3+sPV4d?= =?us-ascii?Q?vscaSKwkBzXtfR=2FoCNavFo9fYvuAibspKz0ITtC?= =?us-ascii?Q?NnBNnwbxTLZYLCgjX9+BzYfTi55f9oToCqN6jLw?= =?us-ascii?Q?WKruP56xsfFcllzARcplUMzkunYg34KDy2ylbfi?= =?us-ascii?Q?CXQ1PNckV4mBWpmyNyXFmu7RVK9QsXAn1xKhpUf?= =?us-ascii?Q?qv+s=2FDnd6vTiDeZ85R1gVZRwrA=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: KUBQAFJXMAQYCULSJX3Y7BXXEGMBSJ6P X-Message-ID-Hash: KUBQAFJXMAQYCULSJX3Y7BXXEGMBSJ6P 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:119229] [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: "kddnewton (Kevin Newton) via ruby-core" Cc: "kddnewton (Kevin Newton)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20747 has been updated by kddnewton (Kevin Newton). I have opened a PR to fix this: https://github.com/ruby/prism/pull/3073. ---------------------------------------- Bug #20747: [prism] regression in retry precedence https://bugs.ruby-lang.org/issues/20747#change-109810 * 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/