From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4951 invoked from network); 31 Aug 2021 02:21:55 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 31 Aug 2021 02:21:55 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob0.topicbox.com (Postfix) with ESMTP id D21DD2010F for ; Mon, 30 Aug 2021 22:21:51 -0400 (EDT) (envelope-from bounce.mM07ba4887b2862957c74d6126.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id D4B563401B1B; Mon, 30 Aug 2021 22:21:51 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=benghancock.com header.i=@benghancock.com header.b=R8d7TWaG header.a=rsa-sha256 header.s=fm1 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=messagingengine.com header.i=@messagingengine.com header.b=lBUFTrAI header.a=rsa-sha256 header.s=fm3 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=benghancock.com; spf=pass smtp.mailfrom=ben@benghancock.com smtp.helo=out5-smtp.messagingengine.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:message-id:mime-version :content-type:list-help:list-id:list-post:list-subscribe :reply-to:subject:content-transfer-encoding:list-unsubscribe; s= sysmsg-1; t=1630376511; bh=fds1A6B1ons06KLZ2t2jx+SYnolQ1QmVEgBcs SZYONg=; b=hv0lSKxR/V+sHAyo2SD2UuvVCKCQsA77ibQJ/65o4RNjOxrrm3uVn Jpd/d8LTqDfhVVlaJQjiNaBp50MF18TPrs/khizYrh3g4RVzxrKSWpDvbhsRV7L+ ZC3hyzQ8g0gNX+eU4sYi01b5tgyVVhtf3ovf054TeRZXR19cbe9kes= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1630376511; b=l5Ons54lO/bGoa4S6L2S/x2a7DCovrO216a0Jd7Te2wjdxyIVy GJFvu+wh7hjiPcqz0Cnscg6OiFC5dfOzeQKx2/dw1xDbimfx+GNGvh7DIZwq3ol4 o6r3+nERi9al1YNROtFlWQhXEdMphMGYpaL2NT01yTVduvmyE1NYkbqR0= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=benghancock.com header.i=@benghancock.com header.b=R8d7TWaG header.a=rsa-sha256 header.s=fm1 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=messagingengine.com header.i=@messagingengine.com header.b=lBUFTrAI header.a=rsa-sha256 header.s=fm3 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=benghancock.com; spf=pass smtp.mailfrom=ben@benghancock.com smtp.helo=out5-smtp.messagingengine.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=pass (2048-bit rsa key sha256) header.d=benghancock.com header.i=@benghancock.com header.b=R8d7TWaG header.a=rsa-sha256 header.s=fm1 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=messagingengine.com header.i=@messagingengine.com header.b=lBUFTrAI header.a=rsa-sha256 header.s=fm3 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=benghancock.com; iprev=pass smtp.remote-ip=66.111.4.29 (out5-smtp.messagingengine.com); spf=pass smtp.mailfrom=ben@benghancock.com smtp.helo=out5-smtp.messagingengine.com; x-aligned-from=pass (Address match); x-me-sender=pass policy.xms= MZItYdeLphdlfXCwDmn7ODvVSVp07UcDnyEMAYmQiFK4NeeZv1gCyvoR6yZsjQpArS5LnB8oz7n6Mhrx5auyUrFjEqanT1HLOZh0fxllqHXD_fOhR8menb5Fb7gNHSE3UMaefqm6Vc7I2A; x-ptr=pass smtp.helo=out5-smtp.messagingengine.com policy.ptr=out5-smtp.messagingengine.com; x-return-mx=pass header.domain=benghancock.com policy.is_org=yes (MX Records found: in2-smtp.messagingengine.com,in1-smtp.messagingengine.com); x-return-mx=pass smtp.domain=benghancock.com policy.is_org=yes (MX Records found: in2-smtp.messagingengine.com,in1-smtp.messagingengine.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=date:from :to:message-id:mime-version:content-type:list-help:list-id :list-post:list-subscribe:reply-to:subject :content-transfer-encoding:list-unsubscribe; s=dkim-1; bh=meDxiU vUJsGdQ3IfOtgp56ArQC+c9OuENUJdGIfOpTc=; b=N6wudOa5gCMVERK5RpsyaG f4c1UfCMvV00gPbbty29545TgiENwY67Of/vMPGtIVKBqeTu48WNqE6laOTpygP1 VV3Et/bBh4W10edLT3RYjWbPJmi+Leb6i5EuDxkXUTEmIN9xr7B3zCvjCkYbOsF3 /+OwmHVtj/y4bVVBXiMeM= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 884023401721 for <9fans@9fans.net>; Mon, 30 Aug 2021 22:21:37 -0400 (EDT) (envelope-from ben@benghancock.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id 9A0D8AE9BFE; Mon, 30 Aug 2021 22:21:37 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1630376497; b=fyR+oquh5jM20KHkMB1OBl5Nhy2nQ/RBpln+TrZuT8jD/nkjqY Q+J/QdBJphtf1K5DQB4s9gmwdXC0lV4usBPn9YcX/Ob5mdGd7q0mcrbCZwQZ4huC VinUILqmWdhW75gF/GWQWFHTfKvua4xKb0bay3Z+rtjDEfn47ly/HVIWECEPqqTJ gaXx3/xq0P246YFdBQhLTsx8dI3vk6AYTQM9zdwPvqtHX3eUopCe2LPljnzU9jM5 pCTh+eAsi0KHRoK4X+B7wI6Bz2O2VFqKezT4hKn0/CXTPZmh50nvtPB30F4La4O4 CT5wAZNBZPiXrltU6kJ/GZZbrrvDgd0g1nag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:message-id:mime-version :content-type; s=arcseal; t=1630376497; bh=Inpn5ruK/bywiIoYbSSNy ZP2hSJaJzJq0N10Rq2TlRs=; b=ui1OOtoNgg4MGQCOJWctji1S4LPCFgAyk5kHW vB3ACFsyjfEv2o8r//y3G0QGkLPs8k2ddpZTV2b8AwOJo0nxedJAwF2ICP5OjEMU Cpmd5IdAOELXKr4FRY75RVDcy6rhqWtVmq/j1g32qhfREB0Qv2oAG8TX03pSQ1Qq BNeJ3+goVOG9+SInnLdwatN7EV3IfDQ65oUzwQlmPFw23Rq9nPMlJj6f3/T7Fn+Q Nri7Wi3yc76OygeCDnNweGRhkby35DmIuLZPEwuRw712i1LwZDq4ZtEio5ffTXSt jwZ9lozVaqKolMrQokCVGhcRhyeUvhfDtPmdK/YEGHJZbsdKw== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=pass (2048-bit rsa key sha256) header.d=benghancock.com header.i=@benghancock.com header.b=R8d7TWaG header.a=rsa-sha256 header.s=fm1 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=messagingengine.com header.i=@messagingengine.com header.b=lBUFTrAI header.a=rsa-sha256 header.s=fm3 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=benghancock.com; iprev=pass smtp.remote-ip=66.111.4.29 (out5-smtp.messagingengine.com); spf=pass smtp.mailfrom=ben@benghancock.com smtp.helo=out5-smtp.messagingengine.com; x-aligned-from=pass (Address match); x-me-sender=pass policy.xms= MZItYdeLphdlfXCwDmn7ODvVSVp07UcDnyEMAYmQiFK4NeeZv1gCyvoR6yZsjQpArS5LnB8oz7n6Mhrx5auyUrFjEqanT1HLOZh0fxllqHXD_fOhR8menb5Fb7gNHSE3UMaefqm6Vc7I2A; x-ptr=pass smtp.helo=out5-smtp.messagingengine.com policy.ptr=out5-smtp.messagingengine.com; x-return-mx=pass header.domain=benghancock.com policy.is_org=yes (MX Records found: in2-smtp.messagingengine.com,in1-smtp.messagingengine.com); x-return-mx=pass smtp.domain=benghancock.com policy.is_org=yes (MX Records found: in2-smtp.messagingengine.com,in1-smtp.messagingengine.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvtddruddukedguddvfeculddtuddrgeduhedrtd dtmdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggft fghnshhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftd dtnecunecujfgurhepfffhvffukfggtggusehttdertddttddvnecuhfhrohhmpeeuvghn ucfjrghntghotghkuceosggvnhessggvnhhghhgrnhgtohgtkhdrtghomheqnecuggftrf grthhtvghrnhepledvfeduveeljeejhfeuffetvddvgffftddvgfejtedtudeiudekueff ieevfedunecukfhppeeiiedrudduuddrgedrvdelnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehinhgvthepieeirdduuddurdegrddvledphhgvlhhopehouhhthedq shhmthhprdhmvghsshgrghhinhhgvghnghhinhgvrdgtohhmpdhmrghilhhfrhhomhepoe gsvghnsegsvghnghhhrghntghotghkrdgtohhmqedpmhgrihhlfhhrohhmpegsvghnsegs vghnghhhrghntghotghkrdgtohhm X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (benghancock.com: Sender is authorized to use 'ben@benghancock.com' in 'mfrom' identity (mechanism 'include:spf.messagingengine.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="ben@benghancock.com"; helo=out5-smtp.messagingengine.com; client-ip=66.111.4.29 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Mon, 30 Aug 2021 22:21:37 -0400 (EDT) (envelope-from ben@benghancock.com) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id B7FA35C019E for <9fans@9fans.net>; Mon, 30 Aug 2021 22:21:36 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 30 Aug 2021 22:21:36 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddvtddgheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugesthdtredttd dtvdenucfhrhhomhepuegvnhcujfgrnhgtohgtkhcuoegsvghnsegsvghnghhhrghntgho tghkrdgtohhmqeenucggtffrrghtthgvrhhnpeelvdefudevleejjefhuefftedvvdfgff dtvdfgjeettdduiedukeeuffeiveefudenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpegsvghnsegsvghnghhhrghntghotghkrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for <9fans@9fans.net>; Mon, 30 Aug 2021 22:21:35 -0400 (EDT) Date: Mon, 30 Aug 2021 19:21:34 -0700 From: Ben Hancock To: 9fans@9fans.net Message-ID: <20210831022134.GA25301@kestrel.bayshore.home> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 2e34c416-0a02-11ec-934b-88f7dd2a0265 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UOTY0OTkxNjZiOWVmMjI0NS1NMDdiYTQ4ODdiMjg2Mjk1N2M3NGQ2?= =?UTF-8?B?MTI2Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Subject: [9fans] Plumber rule for Python tracebacks Content-Transfer-Encoding: quoted-printable List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M07ba4887b2862957c74d6126:1:-WZ6NCcVUHbTUvSsnUAwoRbADBXHn86DSxwZZHPBngI Hi 9fans, I work with Python a lot, and after beginning to write code in acme, I thought it would be neat to have a plumber rule to easily jump to the origin of errors with Mouse-3. Here's what I came up with: # Easily jump to the origin of Python Tracebacks type is text data matches 'File \"([A-Za-z_\-\/]+\.py)\", line ([0-9]+)' arg isfile $1 data set $file attr add addr=3D$2 plumb to edit plumb client $editor This may be obvious to many who are more experienced with acme, but I figured I would share in case it's helpful. So far it works pretty well! I don't often come across modules with numbers in the filename, but one could add a 0-9 in the first regex to handle that as well. I put this in $HOME/lib/plumber and make sure to start the plumber before firing up acme. Anyone else have any good tips for working with Python in acme? Cheers, - Ben ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T96499166b9ef2245-M07ba4= 887b2862957c74d6126 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription