From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Eglot "inlay hints" landed Date: Thu, 23 Feb 2023 12:03:13 +0000 Message-ID: References: <83edqqaf8c.fsf@gnu.org> <2B284D77-97DF-4B3E-89FB-13F0CA93D240@gmail.com> <87356xv65z.fsf_-_@gmail.com> <83fsawriye.fsf@gnu.org> 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="26177"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Chinmay Dalal , Eli Zaretskii , emacs-devel@gnu.org, luangruo@yahoo.com To: Dimitri Belopopsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 23 13:02:13 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 1pVAIf-0006bk-As for ged-emacs-devel@m.gmane-mx.org; Thu, 23 Feb 2023 13:02:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVAI3-0007Fa-5r; Thu, 23 Feb 2023 07:01:35 -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 1pVAI2-0007EK-4j for emacs-devel@gnu.org; Thu, 23 Feb 2023 07:01:34 -0500 Original-Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVAI0-0006Cj-Jm; Thu, 23 Feb 2023 07:01:33 -0500 Original-Received: by mail-oi1-x22d.google.com with SMTP id w7so12304373oik.13; Thu, 23 Feb 2023 04:01:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=j+nB+7Okgd8y278lajSfsdEboKzYexq/ltF20q3GGcE=; b=OH+x96IXiaaWHxZ3awKJaWrL2PAwTmufHWQx4W9P8yEO4GWSa4uVWb6ff/x4lS/An1 t8jzjWck1K5U0Sk9ajyylvXL8wtcpzlAwUeO70HOaU1ctibvmX/nMVaM5uxN5c+CrG3M I5d5jISJJhFApHF6SGz4cd6vehrLK3TefNBZbyr0/m+w6ehe2o8zuo9Geou4hEQ7Ka51 CWOLA1y/h3B6wlOGLyCj0BpLuCprskbOXAKTHPYl+fUiNTXrBimyJSMkK1KvTghnhHGC CEDBYfSjnstahb6ZCJVIXSLxqFxWFy/6vzU5MQ/62X2yM+b3Pyp2b4Ll5wxxMlB5xLkn Huww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j+nB+7Okgd8y278lajSfsdEboKzYexq/ltF20q3GGcE=; b=CLrvaagnEhKdwjDEROMX4UNaUD6NeNed7ShbSgRsSndLZQIB1SP4L1GeNEir8rQX8h jX414QGTZmGZ2HHu2pTpxct/Kqq8y//U+78dTVmP/b/nXCg/JS+Vi7NikHAHIpyV/lQG VNk5fYySMxDOSFlPC1vJzXMVnNEqHxrdP7+cDfvaruTtvgeH5RUv+XR42fSIG/KhOfu/ AqWg/9+WdO8Kr1XPjDFocjEjA8Lgr9686t0pRsqL72kLoOJMlb2Di+4FuADihtxSEpUe Yk5syejIQRm9lxzwk+sexHlLZFyzUSiyc8IRG4sr4rHtT20uEBf2RdGeBDDjWqCsMI4L jtrA== X-Gm-Message-State: AO0yUKX/UMGHfl3O7WcT3ZIM8tt2x5cTg4TBOfkRuy5b6GLB/6ZuLBuQ GGvokFqddpQ+bIezXoH5ov5u9D0QFELboBmWhtc= X-Google-Smtp-Source: AK7set/4O07zk33J4uD/2oJylzxM5FXZfTG7w+wDuTs6F5c2UPK/fUNGzs2w8kMTgI2L9FLzyPcrxQ90f0UIZImMY70= X-Received: by 2002:a05:6808:13c9:b0:37f:84bc:b095 with SMTP id d9-20020a05680813c900b0037f84bcb095mr673485oiw.215.1677153690811; Thu, 23 Feb 2023 04:01:30 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::22d; envelope-from=joaotavora@gmail.com; helo=mail-oi1-x22d.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:303701 Archived-At: On Thu, Feb 23, 2023 at 10:55 AM Dimitri Belopopsky wrote: > > Inlay hints are working well on my end! > The only issue I seem to be having is when the server doesn't support inl= ay hints, and I have " (add-hook 'eglot-managed-mode-hook #'eglot-inlay-hin= ts-mode)" in my config. > > It keeps erroring in this case and the connection to the lsp server seems= to terminate in some cases. In any case it causes interference with other = things, like completion which can stop working. > > You can try it with pylsp, and add "(add-hook 'eglot-managed-mode-hook #'= eglot-inlay-hints-mode)" to your config. Trying to write a simple main func= tion will show issues. I can't reproduce this with this server. All I see is a warning: Warning (eglot): No :inlayHintProvider support. Inlay hints will not work. which is how it's supposed to work. Jo=C3=A3o