From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Re: Explain a bit more on how to configure language server in Eglot's manual Date: Mon, 06 Mar 2023 11:34:12 +0100 Message-ID: <87cz5mqicb.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16078"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Emacs developers , =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= , Pedro Andres Aranda Gutierrez , Stephen Leake To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 06 11:36:06 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pZ8CK-0003u5-PF for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Mar 2023 11:36:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZ8BQ-0007Nc-An; Mon, 06 Mar 2023 05:35:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZ8BO-0007Hs-Th for emacs-devel@gnu.org; Mon, 06 Mar 2023 05:35:06 -0500 Original-Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZ8BM-0006gT-Ep for emacs-devel@gnu.org; Mon, 06 Mar 2023 05:35:06 -0500 Original-Received: by mail-ed1-x534.google.com with SMTP id i34so36434793eda.7 for ; Mon, 06 Mar 2023 02:35:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678098902; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AaDZ4xrujwvnXCEwP044PPX3sDdc891zI9MH64cw9E0=; b=hENINRo68Jhs/Uri8FMs3DF79Tn2j6Q81BY6Rd+2b82e1raf8I74vuPj/ZBqrdgLmn Kw1NsGVrlVlgdU20O2SCp1wrUFeWeFnKeF5jqTLBfnzFD/jQZzDF5yBHcP2QTD2FYjLD dRc7ShWg1WtvbjrY+ONsjrt3OfokqkLySF4UMdG9C3TSSs309VSPxlwef9OcgMfCLkT5 1u4IVxNhsiJ/NJCVKpvQ73W4A3c8HOblnyAZGJfMwtgnhfcXOLKCykAi72qquPvi8d2V DJ3+6nnWnC501txucy4ps2IlErklUrAM9ST94yc6ZBi8D+UGN3BDFdyeGF3odWuxTt5a zEQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678098902; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=AaDZ4xrujwvnXCEwP044PPX3sDdc891zI9MH64cw9E0=; b=SvL/KjSldU4EDxdZbY9a5BpP9rvAHwqKLRF8Gr5gRAgelXrF/mJ2ziDb6XvvsS7fZl E/WJoZjCZMYe5M7fgR1mlGywC6lZ6Wvgoecjk2fqAPy+BrXJqdglbfCISiaM2dcnqxvp mM4B1pP9x88TeDH5aaT8X7UNUZUhQGRtBMTH8e0K/0W9rK9yFOgDwkASFe9nWlNi0WEZ gC4GMP7CtT4FZXI/0BfOm+6p66da5wRYyeD+8S96L1ZiM8pIaQjE1hUhMLBedeZ4JFHw 05c9Q7+N5EneODnZugTkS+J/tLom6fX45deGQCfqwLYRPNy514VhNvmUP53y2YhCVIem g6NQ== X-Gm-Message-State: AO0yUKVdENKWwPTrH3QvpCy+dYZ6CcKtgkvz96bBqEFzIGYO4VxDbz9i 7HDzKJjn4J5DCKy8Y1bsV2g= X-Google-Smtp-Source: AK7set8B4cV9oSVWqadxm1B/+Y7xi7OlXNXH3Nz9y6jkgI9ruvfK3omJksCZHgYz/xm2ojIW3zm6Ag== X-Received: by 2002:a17:907:7d8d:b0:8b1:387b:c0c8 with SMTP id oz13-20020a1709077d8d00b008b1387bc0c8mr11532364ejc.15.1678098901719; Mon, 06 Mar 2023 02:35:01 -0800 (PST) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::8b3a]) by smtp.gmail.com with ESMTPSA id o18-20020a170906769200b008dedf1359a0sm4397932ejm.104.2023.03.06.02.35.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Mar 2023 02:35:01 -0800 (PST) In-Reply-To: (Yuan Fu's message of "Sat, 4 Mar 2023 20:45:17 -0800") Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=arstoffel@gmail.com; helo=mail-ed1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304022 Archived-At: On Sat, 4 Mar 2023 at 20:45, Yuan Fu wrote: > Recently I was trying to use eglot with rust-analyzer and configure > rust-analyzer. It turns out more confusing than it should be, and I > think we can add a paragraph to eglot=E2=80=99s manual to help others lik= e me. I gave a suggestion in bug#61868 to make the eglot-show-workspace-configuration buffer editable so that you can commit changes with C-c C-c, fetch old configuration with M-n/M-p, etc., a bit like VC or Magit commit buffers. > This is not something only rust-analyzer does. I surveyed a bunch of > language servers, all the servers that support LSP=E2=80=99s > workspaceConfiguration (typescript, rust, python, OCaml, Haskell, > perl, Java) describe their configuration in the xxx.xx.xxx > format. Because this is the format one can copy and paste into > VSCode=E2=80=99s setting file. I've argued in favor of that in the past, but now I think loc. cit. is a better idea. The best solution IMO, thought, would be if the server could announce the schema of configurations it accepts, including types and docstrings. Then one could construct an easy Customize interface. But unfortunately there is no such thing in the LSP spec.