all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Gillespie <epg@pretzelnet.org>
To: 73736@debbugs.gnu.org
Subject: bug#73736: 31.0.50; project and therefore eglot don't work without git
Date: Thu, 10 Oct 2024 11:44:39 -0500	[thread overview]
Message-ID: <878quv29hk.fsf@hassadar.pretzelnet.org> (raw)

(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))





             reply	other threads:[~2024-10-10 16:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-10 16:44 Eric Gillespie [this message]
2024-10-10 18:42 ` bug#73736: 31.0.50; project and therefore eglot don't work without git Dmitry Gutov
2024-10-10 18:52   ` Jim Porter
2024-10-10 21:59     ` Dmitry Gutov
2024-10-11  8:53       ` Joost Kremers
2024-10-11 14:43         ` Dmitry Gutov
2024-10-11 17:40           ` Ship Mints
2024-10-11 21:19             ` Dmitry Gutov
2024-10-12 14:32               ` Ship Mints
2024-10-12 20:30                 ` Dmitry Gutov
2024-10-13 16:10                   ` Ship Mints
2024-10-11 21:49       ` Jim Porter
2024-10-11 22:29         ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878quv29hk.fsf@hassadar.pretzelnet.org \
    --to=epg@pretzelnet.org \
    --cc=73736@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.