From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Milan Jovanovic Newsgroups: gmane.emacs.bugs Subject: bug#64099: Emacs 29 - Eglot hint display issue on macOS Date: Thu, 15 Jun 2023 18:41:14 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000045e96105fe2dbd78" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12399"; mail-complaints-to="usenet@ciao.gmane.io" To: 64099@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 16 07:57:25 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qA2Sb-0002yG-2e for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Jun 2023 07:57:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qA2SH-0002kW-Ae; Fri, 16 Jun 2023 01:57:05 -0400 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 1qA2SF-0002k5-7s for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2023 01:57:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qA2SE-0007Wb-Us for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2023 01:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qA2SE-0006nq-Pr for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2023 01:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Milan Jovanovic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Jun 2023 05:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64099 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168689501026110 (code B ref -1); Fri, 16 Jun 2023 05:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Jun 2023 05:56:50 +0000 Original-Received: from localhost ([127.0.0.1]:48473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qA2S1-0006mx-Hg for submit@debbugs.gnu.org; Fri, 16 Jun 2023 01:56:50 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:52012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9q2U-0001Yt-HZ for submit@debbugs.gnu.org; Thu, 15 Jun 2023 12:41:39 -0400 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 1q9q2U-0005tG-2w for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 12:41:38 -0400 Original-Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q9q2Q-0001Cz-8U for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 12:41:37 -0400 Original-Received: by mail-oi1-x22c.google.com with SMTP id 5614622812f47-38dec65ab50so4960332b6e.2 for ; Thu, 15 Jun 2023 09:41:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686847290; x=1689439290; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=3iX6++ATweewe9Xhs6WvG6bYJrs0kyNSqL7K5pi56Sw=; b=HTKgKd2rOoUm5hKu+S0fm47n3fnUT+sZPi5MGitLbnjeW6QiCRhr80xFa1qyIgWf9F Hn2qx3JoT2WdqfuZy0EjthvJL3ZqeJvX25rWI9L6vUnCJdumo6qd3NQ3z2ErAS374Ds3 iDHF2b9jyibkjKKtUlD/s5dHKdXEYTR2qbf+I3HvMgZwF31Ib5+b/sIzzcsAj/Y1csQU y4Im8kddECevMFakBhKwwBcgFF6Refe5LVC4J70JxovAH3l9vjYvKL5pLxOdBrqgZFbR 2h9bWendzpIdrU1vdbj5406XQCJPC+fSpgGqpsyCCMPj2754kdIhdRfWJRg+ldML8WYx I2Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686847290; x=1689439290; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=3iX6++ATweewe9Xhs6WvG6bYJrs0kyNSqL7K5pi56Sw=; b=YmF7r1iynBpoGhdJf2SZX7PZTW7k/nJaTRsvq8JdHtQxr1y/F60POvyBIbV9nKnJbb LJ7GexYpAcBKqccfJYY7QLa10W4ztnGA92WBxL6gI3IlCcHTiCdw81lat+3UWyO2aODD ADlFvtdsTG4oonznWEZcwX8XSwYektOtszGogDLE8Dafys5yVxdUsq/LtT1b+At/088A uFSnnj6IGiAJbR+rpi3mduy0Na58FpqDJBRn6ohjyxN8ZOWRrofz4Quzbk/oAzaHQ5Uu PWGCk2bpuuAoapLGuKLgG2+4zXVTLxMJFWkMKmdYdqIjXS8SLBnm071Gohrn0Q5MHLwi LVGQ== X-Gm-Message-State: AC+VfDyaKIszVw9MYhxN2bO4uO1bZmULI1u/GfEH4RIRJ7XsX+X6BOm1 j9pVDduwgLeXlB/UImfZ6kwdtqil6RBl7kRzZE9ywV3gKDY= X-Google-Smtp-Source: ACHHUZ6ICCBQm7lVc5Pjp5sdXpSA2opvGedNmJ2eIBn+/5arY0h54afoiNWHCUHpVi7D9vlZ24nXznSE6L9TYrC/dfY= X-Received: by 2002:a05:6808:aa6:b0:398:10ef:c9d2 with SMTP id r6-20020a0568080aa600b0039810efc9d2mr13472449oij.36.1686847286010; Thu, 15 Jun 2023 09:41:26 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::22c; envelope-from=milanj@gmail.com; helo=mail-oi1-x22c.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 16 Jun 2023 01:56:47 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263453 Archived-At: --00000000000045e96105fe2dbd78 Content-Type: text/plain; charset="UTF-8" Hi all, There is an issue with how Eglot inlay hints are being printed on the macOS (both Intel and apple silicon). I've tried on Linux with the same versions and it works fine. Example of broken inlay hints: https://user-images.githubusercontent.com/3064500/245880108-a4f43db5-7ebb-43e6-8031-ebb403ee94b3.png How to reproduce: 1. install Emacs 29 from https://emacsformacosx.com or via brew https://github.com/d12frosted/homebrew-emacs-plus 2. install rustup/rustc/cargo/rust-analyzer - https://rustup.rs # curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh `rustup component add rust-analyzer` 3. create rust project # cargo new inlay-hints copy this code to inlay-hints/src/main.rs ================================== use std::error::Error; struct Foo {} struct Bar {} type MyResult = Result)>; fn get_vec_results() -> Vec { todo!() } fn main() { for result in get_vec_results() { match result { Ok(res) => todo!(), Err(err) => todo!(), } } } ================================== 4. open Emacs (no .emacs and no .emacs.d) # cd inlay-hints # /Applications/Emacs.app/Contents/MacOS/Emacs -Q src/main.rs -f rust-ts-mode -f eglot choose/type 'rust-analyzer' as the server ------------------------------------------------------------------------------ My Emacs: system-configuration-options: "--with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules --with-x-toolkit=no" ELISP> system-configuration-features "ACL GLIB GMP GNUTLS JPEG JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER ZLIB" P.S. I'm seeing the same thing with Emacs 28 --00000000000045e96105fe2dbd78 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

There is an issue with how Eglot inla= y hints are being printed on the macOS (both Intel and apple silicon).
I've tried on Linux with the same versions and it works fine.

Example of broken inlay hints:

<= /div>
How to reproduce:

2. in= stall rustup/rustc/cargo/rust-analyzer - http= s://rustup.rs
=C2=A0 =C2=A0# curl --proto '=3Dhttps' = --tlsv1.2 -sSf https://sh.rustup.rs | = sh
=C2=A0 =C2=A0`rustup component add rust-analyzer`

3. =C2=A0create rust project
=C2=A0 =C2=A0# carg= o new inlay-hints


copy this code to= inlay-hints/src/main.rs
=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D
use std::error::Error;

struct Foo {}
struct Bar {}

type MyResult =3D Result<Foo, (Bar, String, Bo= x<dyn Error + Send>)>;

fn get_vec_results() -> Vec<My= Result> {
=C2=A0 =C2=A0 todo!()
}

fn main() {
=C2=A0 = =C2=A0 for result in get_vec_results() {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 mat= ch result {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ok(res) =3D> to= do!(),
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Err(err) =3D> todo!(= ),
=C2=A0 =C2=A0 =C2=A0 =C2=A0 }
=C2=A0 =C2=A0 }
}
<= br>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=C2=A0
4= . open Emacs (no .emacs and no .emacs.d)
=C2=A0 =C2=A0# cd inlay-= hints
=C2=A0 =C2=A0# /Applications/Emacs.app/Contents/MacOS/Emacs= -Q src/main.rs -f rust-ts-mode -f eglot
=
=C2=A0 =C2=A0 =C2=A0 choose/type 'rust-analyzer' as the = server


------------------------= ------------------------------------------------------
My Emacs:<= br>

system-configuration-options:
&q= uot;--with-ns '--enable-locallisppath=3D/Library/Application Support/Em= acs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' = --with-modules --with-x-toolkit=3Dno"

ELI= SP> system-configuration-features
"ACL GLIB GMP GNUTLS JPEG JSON= LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCR= OLL_BARS TREE_SITTER ZLIB"



P.S. I'm seeing the same thing with Emacs 28
=


--00000000000045e96105fe2dbd78--