From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel =?UTF-8?Q?Mart=C3=ADn?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64099: Emacs 29 - Eglot hint display issue on macOS Date: Wed, 21 Jun 2023 22:17:51 +0200 Message-ID: References: Reply-To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29997"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cc: 64099@debbugs.gnu.org To: Milan Jovanovic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 21 22:19:16 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 1qC4IO-0007dJ-8j for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Jun 2023 22:19:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qC4IC-00039H-3F; Wed, 21 Jun 2023 16:19:04 -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 1qC4IA-00038a-PP for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2023 16:19:02 -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 1qC4IA-0000Vk-Gt for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2023 16:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qC4IA-00027z-0m for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2023 16:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Jun 2023 20:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64099 X-GNU-PR-Package: emacs Original-Received: via spool by 64099-submit@debbugs.gnu.org id=B64099.16873786858046 (code B ref 64099); Wed, 21 Jun 2023 20:19:01 +0000 Original-Received: (at 64099) by debbugs.gnu.org; 21 Jun 2023 20:18:05 +0000 Original-Received: from localhost ([127.0.0.1]:34279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qC4HF-00025i-0g for submit@debbugs.gnu.org; Wed, 21 Jun 2023 16:18:05 -0400 Original-Received: from sonic308-18.consmr.mail.ir2.yahoo.com ([77.238.178.146]:35492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qC4HC-000257-LF for 64099@debbugs.gnu.org; Wed, 21 Jun 2023 16:18:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1687378676; bh=fkQN8Tuq9lcNZZ7gc8Cc3r3a6vNFiiOpmnIxkT0eIfI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=rrH4b+dXHhhIPBNXyZdIaM/1cdgzs/mpPTRlsIyDowLIopzlkLcxZXxm8aNlWGc0AOLnj21Mner8sC1BKnp3YZc2FvetlVMbAvf/A9Ba36xhSdZiRAjJ0SaNbZsZKF1rTEPdZySYuGkPJ+zce+YNvN+FF5LLooRHKkQ2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gnxr9ybXjgAajKypik1hGRdejwIQQZxqgBHdYcPr1vWU2AovpNC74ihE oF2B6kNqw8PmYB6KObjk1jLcsDWU.HZbPjSEn03clBYD20wwq7zDGlVh3GBBWsTEYOtTB.6Y5jyJ Y2q0WQQAJge9urJqEs0v3McXrkJttIckpw.9KPEYgEjJIRK7mXUn5jHTLVX_JMQYiLqXgf4Hx8qx 0E_GKWKVKG0Dkmtdys68TtwX98r0daP1_x1E9HC0nr5zcxABSHsAXqC.28bkQ4ZHwgnPukFhTYh5 Z4TopTks_c9pN1OLHs68Glp_VfB3Jap8f0Bp7T4coVnrqf1jhg0t.AnZkHMHPY.bQB7fduZXpRV9 9seZXEImKfSPdjH39_k6AumKQCryO.QTFwMCbcaBCJEiCFVkSrzDBff._1pS3y9RuCT0x6HEYPDx _Ko5KDQKdPswHFN6ltG0eWfIP4M7DpKYSnxnBx6dYK X-Sonic-MF: X-Sonic-ID: 15ae7fb9-8ed5-450e-84e9-979746ffbc2d Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ir2.yahoo.com with HTTP; Wed, 21 Jun 2023 20:17:56 +0000 Original-Received: by hermes--production-ir2-7867f454fc-s6g4r (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID cf2bf00bb41f134761c647b77754f4fe; Wed, 21 Jun 2023 20:17:52 +0000 (UTC) In-Reply-To: (Milan Jovanovic's message of "Thu, 15 Jun 2023 18:41:14 +0200") X-Mailer: WebService/1.1.21557 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:263847 Archived-At: Milan Jovanovic writes: > 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 I can reproduce the issue with a build from https://emacsformacosx.com, concretely: 29.0.91 (Build 21G217) of 2023-05-14 But I can't reproduce the issue if I build Emacs from the emacs-29 branch, concretely: 29.0.92 (Build 22A380) of 2023-06-21 It could be a bug related to how https://emacsformacosx.com packages Emacs, but the fact that it also fails in another Emacs distro (Emacs-plus), I'd say that this is probably a problem in Eglot that may have been recently fixed. Could you try an Emacs build from the tip of the emacs-29 branch?