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 641A91F4CC for ; Thu, 12 Dec 2024 18:45:46 +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=E3A+Hhqu; 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=YPgq0Llc; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1734029113; bh=6fHOHSSJJsXmeYyyGZyfnz6FoYPpGdf2UhiKksTWSE4=; 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=E3A+HhquzkOo/2PVxWGVs4/X1ZnswU5lmXydZdthkcvxCxSko6DD8tnabrXzAzGm+ 6Cd0Vca9iGE/3OfvDjAnLleIJWuQvLCTW3IcmTF2QR0Su0u9YNyha16c9DpP8BGsrW Isx+JT788dN8sk2r8zIgvP3DAJb1479oFqi2+53M= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id A056044DB0 for ; Thu, 12 Dec 2024 18:45:13 +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=YPgq0Llc; dkim-atps=neutral Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 2EC1544B9C for ; Thu, 12 Dec 2024 18:44:58 +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=9bVaMHZpu4BAdXOUBG9BEAiDjrD842WTRq4B+cFkQ9w=; b=YPgq0Llccc0UA7KUfBTsYRH2fJWx6cTZPPkEIsH1gmBGvGPmHD6A06NlTchVXhznY6fS n4oNhdqMj7/RuZIewyNX09zIehZK1jnBh/Z49LM3O/MBABrIdymhQ7tHcplki4U6ziJ8UD hclXMPki8AjNKEDOzNRUVeOUeJXbZLdqgtSq+dVhEbbMke5kpRqGviFTJThi4ZkmZSSWgH Ich/BxEwYZLGhvYw1s+59F77LqBKdiIvMHeaQDaZYg0B5ecZhiUhFhjAj8BEkeiwzgTagG tvoNx5KziE5ojIKjOEsz/3DikBcPfoKL1M135TN6V2MWpyHQxcCOLmd2cSsEYyGw== Received: by recvd-5f9ffdf494-8pdl8 with SMTP id recvd-5f9ffdf494-8pdl8-1-675B2F29-C 2024-12-12 18:44:57.186862599 +0000 UTC m=+2410014.658838056 Received: from herokuapp.com (unknown) by geopod-ismtpd-38 (SG) with ESMTP id 8m5Mlh9ETd2O3994pF25KQ for ; Thu, 12 Dec 2024 18:44:57.131 +0000 (UTC) Date: Thu, 12 Dec 2024 18:44:57 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20918 X-Redmine-Issue-Author: mame X-Redmine-Issue-Assignee: Group (prism) X-Redmine-Issue-Priority: Normal X-Redmine-Sender: tenderlovemaking 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: 96899 X-SG-EID: =?us-ascii?Q?u001=2ElWMe69GVkz6xHw8adpMU6eTKSGZqJ7+E1FrjckpA7cvWAPDyDX2cAv9Do?= =?us-ascii?Q?wZtGRg2vsYQLU1U4jx+ljWd9jTs=2FpZn02mllaZG?= =?us-ascii?Q?4g2CkB4nYTDqlZCD29d9gIrxwr6BIdy9eJqSuT2?= =?us-ascii?Q?Ezz4dIRtMk4zrjYiESiwKON=2FVqaJWymsK8yUpa1?= =?us-ascii?Q?cZjXyOfXD8HjecHRYfuieU6AlFczXt2kY2qP0hD?= =?us-ascii?Q?BRISjf00dUa03amibbWKLj5Ri8UVKTKvai72xhF?= =?us-ascii?Q?bt4lOjDzyJst=2FEzBK9mataS1vg=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: PZ3ITQP63CPUAILLSX5YI2OPXYVNN2XA X-Message-ID-Hash: PZ3ITQP63CPUAILLSX5YI2OPXYVNN2XA 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:120222] [Ruby master Bug#20918] Prism error indicates line number of `-e` that does not exist List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "tenderlovemaking (Aaron Patterson) via ruby-core" Cc: "tenderlovemaking (Aaron Patterson)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20918 has been updated by tenderlovemaking (Aaron Patterson). mame (Yusuke Endoh) wrote in #note-6: > @tenderlovemaking Thank you for fixing the issue, but it still shows line 2 in the code snippet. > > ``` > $ ruby -e "foo(" > -e: -e:1: syntax error found (SyntaxError) > > 1 | foo( > | ^ unexpected end-of-input; expected a `)` to close the arguments > 2 | > ``` > > I don't think ` 2 |` should be printed. Strange. Thank you, I'll try to figure it out! ---------------------------------------- Bug #20918: Prism error indicates line number of `-e` that does not exist https://bugs.ruby-lang.org/issues/20918#change-110986 * Author: mame (Yusuke Endoh) * Status: Assigned * Assignee: prism * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- ``` $ ruby -e 'foo(' -e: -e:2: syntax error found (SyntaxError) 1 | foo( > 2 | | ^ unexpected end-of-input; expected a `)` to close the arguments ``` It says `-e:2`, but there is no line 2 in `-e 'foo('`. `eval("foo(")` reports line 1, so I guess this issue is only for `-e`. -- 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/