From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Gillespie Newsgroups: gmane.emacs.bugs Subject: bug#73736: 31.0.50; project and therefore eglot don't work without git Date: Thu, 10 Oct 2024 11:44:39 -0500 Message-ID: <878quv29hk.fsf@hassadar.pretzelnet.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31372"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 73736@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 10 18:45:14 2024 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 1sywHn-0007vG-Pu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Oct 2024 18:45:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sywHW-0006Js-Ve; Thu, 10 Oct 2024 12:44:54 -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 1sywHT-0006JN-Gd for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2024 12:44:51 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sywHT-0007ct-8e for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2024 12:44:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=wysbGJaUN2GGix3XReCzxlydMsQKIwFCvf86bOGZDCo=; b=JuFFn7yakhZRCBqvC1BB5EnDdUZlmGgeF9opwjI631120QLY5ufGP0bRI+wtipLExhD83FKEeQhgsUze4zPyvWRCQ4Kpra93mBNeZvrEc1Cm3Y+EHRptNZK7bZf42cgpC0YAvV9qgd6pSmzqr1KMF90xgWNqob7VXAc9ZGokXpuN6460AnfhVXkA48BB2llC8x62BSV0c5AujeFAbYaCoeJfjJYuW0XapsusnmsWyjiemHFgCI2momLbp0kBUNN/q2vakdzVEFnHtTSXgfbZItTctNMrwe8vfrl335THIzjOnRTyUxYut9T/Cocy2k/jXaB7V1cNRonQRipLsvct0w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sywHe-0003y1-P5 for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2024 12:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Gillespie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Oct 2024 16:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73736 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.172857869915224 (code B ref -1); Thu, 10 Oct 2024 16:45:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Oct 2024 16:44:59 +0000 Original-Received: from localhost ([127.0.0.1]:60372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sywHa-0003xR-Rf for submit@debbugs.gnu.org; Thu, 10 Oct 2024 12:44:59 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sywHY-0003xJ-Hc for submit@debbugs.gnu.org; Thu, 10 Oct 2024 12:44:57 -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 1sywHM-0006J0-JY for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2024 12:44:44 -0400 Original-Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sywHK-0007cT-I4 for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2024 12:44:44 -0400 Original-Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfout.phl.internal (Postfix) with ESMTP id 8AF681380231 for ; Thu, 10 Oct 2024 12:44:40 -0400 (EDT) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Thu, 10 Oct 2024 12:44:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pretzelnet.org; h=cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm3; t=1728578680; x=1728665080; bh=wysbGJaUN2GGix3XReCzxlydMsQKIwFC vf86bOGZDCo=; b=RcRQTWCz38KtygDYY4yR+ryzVqhahzLutoWp5zBLP/lOJBlW 8pLNyf9Dt3haP6ez5/rM/3CO9PlbAHuoWJSrbqifoiYJA/8Yi7+VCMsp38+naGdw x3HLwG58rBUnTFV0ML2E3d9LEdeNmhGegzk61TzTzYo8VIL67/psNybPAAIZKI2b F8anag8ZzT35sIMttqd4ZeuhOp8++L01rj0F0QlXV3rGIaJkrHyvSYflRuiCJYY8 YcnS5CDEn9NkXDO7DJU3fyNJGFMbZQ47qeA91E30pzVL3/PFjRh4DQLyBKFGUgnP SIIxiCpwEOg4ZmTXiVFivZeaqxEXvFEXW5+NVA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1728578680; x=1728665080; bh=wysbGJaUN2GGix3XReCzxlydMsQKIwFCvf8 6bOGZDCo=; b=Au14Rr9CN5fzm9Wfc24O479UhzHGHwP/pAQhX5M5us5B8ntSDRB mLm/j3UBNqMlED8NAOlooB3p5IWpGBcRTI+BBxRs7KlCs57JBd1FblI1LPMcuIjP s+S+wx21PXA8RWESLTBiu0em5S4xknq31rg0/8rDWOaxFSwwoc0NxDb4zXZzc50t rVEhygKasXS2/8wBCWJkeXtKB0fokHiyv/5HxUzhIbH8+4XuaBlnabdzx16fPXUt RNtmBJj1MYtqrP/6qy9dU5IDBweNMdPdlm/qBoF5gHVFq3zjwwjxJKL108zBnczb fgyffDVAxxdxfSy3zJ1g1fmDiC/KDnYRtHg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdefhedguddtjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecuogfuuhhsphgvtghtff homhgrihhnucdlgeelmdenucfjughrpefhvffufffkfgggtgesthdtredttdertdenucfh rhhomhepgfhrihgtucfiihhllhgvshhpihgvuceovghpghesphhrvghtiigvlhhnvghtrd horhhgqeenucggtffrrghtthgvrhhnpeefuedvtefgjeeiueegffdvgeefteevgfethfeg ueduledvffehveduheefudelheenucffohhmrghinhepghhithhhuhgsrdhiohenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegvphhgsehprhgv thiivghlnhgvthdrohhrghdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouh htpdhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: i58794908:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 10 Oct 2024 12:44:40 -0400 (EDT) Received-SPF: pass client-ip=103.168.172.146; envelope-from=epg@pretzelnet.org; helo=fout-a3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:293293 Archived-At: (I don't use project directly, but eglot requires it, and that's all I care about.) 1. cargo new foo 2. emacs -Q foo/src/main.rs 3. M-x rust-ts-mode RET 4. M-x eglot RET Expected: eglot activates. Actual: Error: [eglot] Server reports (type=1): Failed to discover workspace. Consider adding the `Cargo.toml` of the workspace to the [`linkedProjects`](https://rust-analyzer.github.io/manual.html#rust-analyzer.linkedProjects) setting. I think the problem here is that eglot needs to provide a project root to rust-analyzer, but 'project' only knows how to find .git directories, which I don't have in this case. This works in editors such as JetBrains Rover and VS Code presumably because you have to take an "Open project" step in those. And I'd be OK if I had to that first in emacs, but I could find no such option. The closest I can find is 'project-switch-project', but it doesn't accept arbitrary directories as input, instead only allowing me to pick from a list it found on its own, by scrounging around for .git directories! In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, cairo version 1.18.2) of 2024-10-04 built on dogato Repository revision: ef587bf6b46b2ea3ef91b260ac2542666081260d Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101012 System Description: openSUSE Tumbleweed Configured using: 'configure -C --prefix=/opt/emacs-master --disable-silent-rules --with-x-toolkit=no --without-gsettings --with-native-compilation=no' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LCMS2 LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY OLDXMENU PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM ZLIB Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting font-render-setting cairo xinput2 x multi-tty move-toolbar make-network-process emacs) Memory information: ((conses 16 39589 10289) (symbols 48 5375 0) (strings 32 12072 1444) (string-bytes 1 289442) (vectors 16 9304) (vector-slots 8 103508 8407) (floats 8 25 4) (intervals 56 260 0) (buffers 992 10))