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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 744 invoked from network); 20 Aug 2021 10:56:21 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 20 Aug 2021 10:56:21 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob1.topicbox.com (Postfix) with ESMTP id 2ACFC354D4 for ; Fri, 20 Aug 2021 06:56:18 -0400 (EDT) (envelope-from bounce.mM15ec62c316baf8b49043cae2.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id 2475A325C699; Fri, 20 Aug 2021 06:56:18 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=M4rYzzkS header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=ole.hjalmar.kristensen@gmail.com smtp.helo=mail-lj1-f175.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:list-help:list-id:list-post :list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1629456978; bh=Nn8Z8DW/E2uSb/HR WlnTeVgJM1TeLE7YUkBioKmkubU=; b=CJ35dLnhlsRn0PE/wSBEUkLBfN8Z83nO bwZbn29qaV4o+OdVE/R058XtDpCs1WXs12exsAqHXsEZfZGEOROvjZ+mwYlPw30j q1mdtmKzMlpb2FJJEZQYngL3gyZDAVVwq2uWrQiYFxWxLfrm5rG9fGZbb6pquPKZ eRyorymlGPM= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1629456978; b=QlssPKbl9CHkqGwajq3RAVAGH1C8BOPrY9gmULTcSinhduBavO 6dlf29Ki9s1uC+BjEAPvx/yi8McW7WrZWW6QyS+hLzc0bO+WXy6hWmL7nC3gDboe c00fHzfCCn5EEXHN5m7AbjELAGx4GUVM7w8ThZk/iA4RK3G0NDTlATfxg= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=M4rYzzkS header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=ole.hjalmar.kristensen@gmail.com smtp.helo=mail-lj1-f175.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=M4rYzzkS header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.208.175 (mail-lj1-f175.google.com); spf=pass smtp.mailfrom=ole.hjalmar.kristensen@gmail.com smtp.helo=mail-lj1-f175.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=dVg8yaDB; x-me-sender=none; x-ptr=pass smtp.helo=mail-lj1-f175.google.com policy.ptr=mail-lj1-f175.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.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= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; bh=oq75yTzxXLYxTS9jnOvgtl2yCPTp6OFB1B+B426yAG8=; b=OAyGqXMbjdnh jGxwhv/JEZaix4ZOha+ZGfsm4iz1iRA9Ic2eVgWFyQtP3otNhHEpB+9paGbFFn0L 0vSzoy9SjmDFWKo89+3oywoGruYkEi+JYi5eS6qpFfflSGLhov3TMykQaZN8JMk4 9jgdg8GUWlhT5qF4X3ufePkW1mL3JOo= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 40FAB325C08D for <9fans@9fans.net>; Fri, 20 Aug 2021 06:56:02 -0400 (EDT) (envelope-from ole.hjalmar.kristensen@gmail.com) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id F5EE69BB06E; Fri, 20 Aug 2021 06:56:02 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1629456962; b=pcsw/nKM/wBDw8VOHcIgyeZLcq4vykIN7ivcjMFwhlnfugPbsd 3fzp9fEAgWw/RGgCD/CtwwJix+18GPwZEEA1BH7mJYPAqWh/yM1mgG5Cm8iwXK7D QDC+mT/OzuTOLQIUdUlBP+Q032TTIqPOue04S2+xirp4l/Qp32HRqysc2ElmHd/z f37ZBVcnUM5bwUETXqQumfs8q10aBWoFjPiQWOvbGq9FVtJ6hQef4jsll3yXpBB8 cyOui+LxVIthZnmLPvubZNsOlF+eyv8m3HbkaFLhHLnSZ0u8VYssspHZo4rMYORk b3XVRV5FTXLZDHWwAOUcn2EqjENzeH16MtOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=arcseal; t=1629456962; bh=UFpAMArD+xHIlWac51ux6aW+wYfo+7ce0hmx6N9izN4=; b=HHAouqLHC3ch vjXK+m7oiw74iffWsW71i16xtVlEvaD4Y/V3nDK0ye0z9GaMYoDQon/8Ky0kaMm7 Y1f3acoJfJVFZNTLdb9Noz+tdmLvdeTwtBLCf+Dl7797OFrwdwmLgOFDjlkSY8YQ SlZQSUBKbhBE+V9CdxSW9yTX2GZ86XF2dxns/1PrDxERqnMhi/eVl9B/uRwKxmQd iHQeBxnBdtpmtAJqVAeQutTaPHoUW3g75svf0re9JFVdnZIRJVC/suFMM/4W+64d 9QkJoVQ2ymg5m42beD90LFp2ckYm/F7qJKmv2FTHc5g0G034jjgPvzomrzOTCFx6 B7J7rxZhrg== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=M4rYzzkS header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.208.175 (mail-lj1-f175.google.com); spf=pass smtp.mailfrom=ole.hjalmar.kristensen@gmail.com smtp.helo=mail-lj1-f175.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=dVg8yaDB; x-me-sender=none; x-ptr=pass smtp.helo=mail-lj1-f175.google.com policy.ptr=mail-lj1-f175.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.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: gggruggvucftvghtrhhoucdtuddrgedvtddrleelgddvheculddtuddrgeduledrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghn shhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtne cunecujfgurhepgghfjgfhfffkuffvtgesrgdtreertddtjeenucfhrhhomhepqfhlvgdq jfhjrghlmhgrrhcumfhrihhsthgvnhhsvghnuceoohhlvgdrhhhjrghlmhgrrhdrkhhrih hsthgvnhhsvghnsehgmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpedvheeguedv ffeggfektdekheegudefueetteegfeegfffgudejhfeltdetveejfeenucffohhmrghinh eplhgrnhhgshgvrhhvvghrrdhorhhgpdhkrhhishhtvghnshgvnhdqrghtqdhgmhgrihhl rdgtohhmpdgsvghnghhhrghntghotghkrdgtohhmpdhtohhpihgtsghogidrtghomhenuc fkphepvddtledrkeehrddvtdekrddujeehnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehinhgvthepvddtledrkeehrddvtdekrddujeehpdhhvghlohepmhgrihhlqd hljhduqdhfudejhedrghhoohhglhgvrdgtohhmpdhmrghilhhfrhhomhepoeholhgvrdhh jhgrlhhmrghrrdhkrhhishhtvghnshgvnhesghhmrghilhdrtghomheq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'ole.hjalmar.kristensen@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="ole.hjalmar.kristensen@gmail.com"; helo=mail-lj1-f175.google.com; client-ip=209.85.208.175 Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Fri, 20 Aug 2021 06:56:01 -0400 (EDT) (envelope-from ole.hjalmar.kristensen@gmail.com) Received: by mail-lj1-f175.google.com with SMTP id f2so16663628ljn.1 for <9fans@9fans.net>; Fri, 20 Aug 2021 03:56:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=UFpAMArD+xHIlWac51ux6aW+wYfo+7ce0hmx6N9izN4=; b=dVg8yaDBcX9NBDoW3bEGrsNr1k1BtIteRu+x+3CxtdakdUct96KTGyNm/dyNMyXXkK oU+ncMXRIv/cfkCHyn3iNL2EiD5ddmQXCjCPLfSPIbfe7j3VXsuuCwK0+JdBJ+pPehEm 9uGymag4AItJccjMGsB/ddGNX3WGPs8nL6WAUANfghUBIF22mH6tBGa1aTEtnj4k9Yov lo3gkJXGBHFptxzc13RGAvulIqnWfJErGL4cvz72Ut8hIQdyxgDr1j7J6/HNX83HPPNo IC/r6BUkwd3fQOk5xw75JBBJC1+ZGoYwWgB9oHU3U3RKH90eBeZ6dnkpxYlL0hcnQpKX YV2A== X-Gm-Message-State: AOAM533llTxOTWg5IDPSnsIfpTMSCSxjRPsj3mGJhk+HfY+qz1hHjAVu f+m9DBTc8Ui+V3LCLIYB7AQWAxVTEnvbhU6kPelrjKvRZQE= X-Google-Smtp-Source: ABdhPJxgo6UC4/a+d4WqPOhYIwg3XPB2Gus98LJKHV/ly3OGDp+ktlASk/9s++e9MMzNuGnwpG8HP8I46XmwSdMZ80Y= X-Received: by 2002:a2e:95c1:: with SMTP id y1mr15480816ljh.71.1629456960023; Fri, 20 Aug 2021 03:56:00 -0700 (PDT) MIME-Version: 1.0 References: <848-1629345074-357948@sneakemail.com> In-Reply-To: <848-1629345074-357948@sneakemail.com> From: Ole-Hjalmar Kristensen Date: Fri, 20 Aug 2021 12:55:49 +0200 Message-ID: Subject: Re: [9fans] Codebase navigation and using tags files in acme To: 9fans <9fans@9fans.net> Content-Type: multipart/alternative; boundary="00000000000047713a05c9fb83ae" Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 38ffccf2-01a5-11ec-9c31-e1300ed88767 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZjhjZWFjMTJkZjlkYTY3NC1NMTVlYzYyYzMxNmJhZjhiNDkwNDNj?= =?UTF-8?B?YWUyPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: 7bit List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M15ec62c316baf8b49043cae2:1:wNzdQt3ROSwdLx8bj0VACouE8m7erO3mxyyhPRh0cw4 --00000000000047713a05c9fb83ae Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I use clangd. Works very well in general. Using it is simple, you launch clangd via acme-lsp like this: acme-lsp -server '(\.h)|(\.cc)$:/home/ole/bin/clangd_10.0.0/bin/clangd --clang-tidy --background-index --cross-file-rename' -workspaces /home/ole/xcomtest On Thu, Aug 19, 2021 at 5:51 AM <6o205zd02@sneakemail.com> wrote: > I had never heard of acme-lsp and LSP (except as a Microsoft internal > thing) until gabi mentioned it earlier in the thread. I'm interesting in > playing with acme-lsp for C++. Which LSP server do you use for C/C++ (I > see several listed at https://langserver.org/)? > > thanks, > Peter > > On 2021-08-18 02:26, Ole-Hjalmar Kristensen > ole.hjalmar.kristensen-at-gmail.com |9fans| wrote: > > On linux, you can run ctags -x and postprocess the file to append the line > number to the file name instead of having i as a separate field. That way, > you can locate the symbol in the tags file, and right-click on the > file:linenumber. > > Also, on linux, we have acme-lsp, which in principle works with any LSP > server. I have tested it with go and C/C++. > > On Tue, Aug 17, 2021 at 10:22 PM Ben Hancock wrote: > >> Hello 9fans, >>=20 >> I've just recently started using the acme editor and am really enjoying >> it, and trying to get the hang of the "acme way" of doing things. One >> bit of functionality that I'm familiar with from other editors is the >> ability to easily look up a function or symbol definition within a >> codebase. In Emacs and vi, this is done by generating tags files (etags >> or ctags), which those editors can parse and allow you to easily jump to >> a definition of the symbol under the point/cursor. >>=20 >> What's the preferred method or workflow for achieving this in acme? I >> have tried passing a selected symbol to 'g -n' in the window's tag, >> using the Mouse-2 + Mouse-1 chord. That gets me part of the way there >> but isn't effective if the file where the symbol is defined happens to >> be in another directory. I feel like I'm missing something. >>=20 >> Many thanks! >>=20 >> - Ben >>=20 >> -- >> Ben Hancock >> www.benghancock.com > > *9fans * / 9fans / see discussions > + participants > + delivery options > Permalink > > ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tf8ceac12df9da674-M15ec6= 2c316baf8b49043cae2 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --00000000000047713a05c9fb83ae Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I use clangd. Works very well in general. Usin= g it is simple, you launch clangd via acme-lsp like this: 
acme-ls= p -server '(\.h)|(\.cc)$:/home/ole/bin/clangd_10.0.0/bin/clangd --clang= -tidy --background-index --cross-file-rename' -workspaces /home/ole/xco= mtest

On Thu, Aug 19, 2021 at 5:51 AM <6o205zd02@sneakemail.com> wrote:
I had never heard of acme-lsp and LSP (except as a Microsoft internal thing) until gabi mentioned it earlier in the thread.  I&= #39;m interesting in playing with acme-lsp for C++.  Which LSP server do you use for C/C++ (I see several listed at https://langserver.org/)?

    thanks,
    Peter

On 2021-08-18 02:26, Ole-Hjalm= ar Kristensen ole.hjalmar.kristensen-at-gmail.com |9fans| wrote:
=
On linux, you can run ctag= s -x and postprocess the file to append the line number to the file name instead of having i as a separate field. That way, you can locate the symbol in the tags file, and right-click on the file:linenumber<= /a>.

Also, on linux, we have acme-lsp, which in pr= inciple works with any LSP server. I have tested it with go and C/C++. 

Hello 9fans,

I've just recently started using the acme editor and am really enjoying
it, and trying to get the hang of the "acme way" of doi= ng things. One
bit of functionality that I'm familiar with from other editors is the
ability to easily look up a function or symbol definition within a
codebase. In Emacs and vi, this is done by generating tags files (etags
or ctags), which those editors can parse and allow you to easily jump to
a definition of the symbol under the point/cursor.

What's the preferred method or workflow for achieving this in acme? I
have tried passing a selected symbol to 'g -n' in the win= dow's tag,
using the Mouse-2 + Mouse-1 chord. That gets me part of the way there
but isn't effective if the file where the symbol is defined happens to
be in another directory. I feel like I'm missing something.
Many thanks!

- Ben

--
Ben Hancock
www.benghancock.com

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tf8ceac12df9da674-M693d75f3d4f4= ad66ecaa27e0
Delivery options: https://9fans.topicb= ox.com/groups/9fans/subscription
<= br />
= --00000000000047713a05c9fb83ae--