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=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 DCF401F4CC for ; Thu, 9 Jan 2025 11:51:17 +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=NDB6cvkE; 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=eVnCi7Kn; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1736423475; bh=o7fWYWjO1N7CFbZyqnW/VFswu2b9sObRY5J6JuWbD40=; 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=NDB6cvkEqEax0/KK8Wwfrj4YzrC7N1AU7HnuuNT8FIMqrSfVJA+WmF+kdMCfQ63OO ASnSx+f8jWHCFLoihq7+H6KhatEgN62WA7jwVc17oqtCb3x1FjscpKUK3R0UsUL+Cc S3z0MrXYR1U6sTzJnR/kmZzRU8QOrHrB+3RqTHl0= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 65DA64689D for ; Thu, 9 Jan 2025 11:51:15 +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=eVnCi7Kn; dkim-atps=neutral Received: from s.wfbtzhsw.outbound-mail.sendgrid.net (s.wfbtzhsw.outbound-mail.sendgrid.net [159.183.224.105]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 24AED4684C for ; Thu, 9 Jan 2025 11:51:10 +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=sY5mmiwv66LTALfChAN3l3WJo5SYUAD3QuzdcNiPAbg=; b=eVnCi7KntlJrv2DvdGyS0wqs6GP2pe5g9Rfne94SzAXz85mqN+69HOQV1TXe/kiqLsPY jnayLNKZZMXngfAHtT4rUgfP7wc/A+mYAYc4TLzmYc6/77TVQAuVGM20+6As9DU9tykjs/ YZfMhHhc0AIJXxxi+RqvAK6+L7Y9JFCfGBzGdyqltIfYC8zIn4QPSjniMTIc25TlNghqBY gLajXzJTfLa5kuGji1ZfaoRuDLh2DwGZ3LKsABVEZcXrXuuQ/E99UiHVh6mX4z5pvsHWQ2 B3lXdjbmljOuNdEcwK/B7+6/FN0Pi1clJtePSGO+N1CiO+FJXfRebNPnh2HU5Gzw== Received: by recvd-5f54b5d587-zdng7 with SMTP id recvd-5f54b5d587-zdng7-1-677FB82D-23 2025-01-09 11:51:09.600155915 +0000 UTC m=+4804023.902063407 Received: from herokuapp.com (unknown) by geopod-ismtpd-22 (SG) with ESMTP id Tx5K10ixT5Cw0hZIIkcmZA for ; Thu, 09 Jan 2025 11:51:09.522 +0000 (UTC) Date: Thu, 09 Jan 2025 11:51:09 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Feature X-Redmine-Issue-Id: 6012 X-Redmine-Issue-Author: rogerdpack X-Redmine-Issue-Assignee: nobu X-Redmine-Issue-Priority: Normal X-Redmine-Sender: mame 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: 97256 X-SG-EID: =?us-ascii?Q?u001=2Ep+ckLDtT+4Y5c+H0YCkEnsuWiCQmn3OZA=2F9FzjoR6ZZlPaMv54M7EFoSM?= =?us-ascii?Q?CX5Trc79ep2R5F+0oYS4n23jq1cv2sJ1ra1KIWg?= =?us-ascii?Q?1uSOyqa2bhPe0cJIqr0Knk+rt2Vn8f+sAKb8Cqh?= =?us-ascii?Q?1EjYIn8iZWAq2HZkosWCSpauclhqtkqjcjHQQjp?= =?us-ascii?Q?YTr9PxB5XSup=2F+dXAnOmL4bdKp2DCwh1dFSYPaU?= =?us-ascii?Q?aJxu3nX0dT0MjIDG5U4Z+AFfAHsdGECNmuqDGUn?= =?us-ascii?Q?03IM?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: HLO2TSNAKGWEXMERVAII4KF6PVF4M3ZD X-Message-ID-Hash: HLO2TSNAKGWEXMERVAII4KF6PVF4M3ZD 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:120572] [Ruby master Feature#6012] Proc#source_location also return the column List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "mame (Yusuke Endoh) via ruby-core" Cc: "mame (Yusuke Endoh)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #6012 has been updated by mame (Yusuke Endoh). This was discussed at the October 2024 dev meeting and @matz approved `source_location` to return `[path, start_line, start_column, end_line, end_column]`. https://github.com/ruby/dev-meeting-log/blob/28e0f45f334b31e60c7e07d25b6b6cb3655b2c75/2024/DevMeeting-2024-10-03.md?plain=1#L176 Matz was negative neither on adding a new class like Ruby::CodeLocation for this purpose, or adding offset information. We briefly re-asked matz about this at today's dev meeting, and he had not changed his mind. ---------------------------------------- Feature #6012: Proc#source_location also return the column https://bugs.ruby-lang.org/issues/6012#change-111396 * Author: rogerdpack (Roger Pack) * Status: Assigned * Assignee: nobu (Nobuyoshi Nakada) ---------------------------------------- As originally suggested in http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/42418 Suggestion/feature request: have #source_location also return the beginning column where it was defined. ["test.rb", 8, 33] Thanks! -roger- -- 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/