GNU bug report logs -
#67682
30.0.50; M-u M-x eglot localhost:4567 doesn't connect
Previous Next
Reported by: Helmut Eller <eller.helmut <at> gmail.com>
Date: Thu, 7 Dec 2023 09:28:02 UTC
Severity: normal
Found in version 30.0.50
Done: João Távora <joaotavora <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 67682 in the body.
You can then email your comments to 67682 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#67682
; Package
emacs
.
(Thu, 07 Dec 2023 09:28:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Helmut Eller <eller.helmut <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 07 Dec 2023 09:28:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
When I try:
M-u M-x eglot localhost:4567
then I get:
No such file or directory, localhost:4567
ISTR, that this worked in the past.
In GNU Emacs 30.0.50 (build 196, x86_64-pc-linux-gnu, GTK+ Version
3.24.38, cairo version 1.16.0) of 2023-12-07 built on caladan
Repository revision: e4e1e268c8e9f7de6fe5d4b05beb595a1781c02c
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101007
System Description: Debian GNU/Linux 12 (bookworm)
Configured using:
'configure --enable-checking=yes --with-xpm=ifavailable
--with-gif=ifavailable 'CFLAGS=-g -O1''
Configured features:
CAIRO DBUS FREETYPE GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBSELINUX
LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND
SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XINPUT2 GTK3
ZLIB
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#67682
; Package
emacs
.
(Fri, 08 Dec 2023 11:21:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 67682 <at> debbugs.gnu.org (full text, mbox):
On Thu, Dec 7, 2023 at 9:28 AM Helmut Eller <eller.helmut <at> gmail.com> wrote:
>
> When I try:
>
> M-u M-x eglot localhost:4567
>
> then I get:
>
> No such file or directory, localhost:4567
>
> ISTR, that this worked in the past.
Confirm. Broken in
commit 523547321e4caca6fc966bd71ecd7b60a6e98f73
Author: João Távora <joaotavora <at> gmail.com>
Date: Sat Sep 17 21:40:34 2022 +0100
Allow :initializationoptions in eglot-server-programs
...for more than one year, probably means very few people
are using this. May I ask what your LS is? . Please try
the untested patch after my sig.
João
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index d410367f902..248199641e3 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -1280,14 +1280,21 @@ eglot--guess-contact
(concat "`%s' not found in PATH, but can't form"
" an interactive prompt for to fix %s!")
program guess))))))
+ (user-input (and prompt
+ (read-shell-command
+ prompt
+ full-program-invocation
+ 'eglot-command-history)))
(contact
- (or (and prompt
- (split-string-and-unquote
- (read-shell-command
- prompt
- full-program-invocation
- 'eglot-command-history)))
- guess)))
+ (cond ((and user-input
+ (string-match
"^[\s\t]*\\(.*\\):\\([[:digit:]]+\\)[\s\t]*$"
+ user-input))
+ (list (match-string 1 user-input)
+ (string-to-number (match-string 2 user-input))))
+ (user-input
+ (split-string-and-unquote user-input))
+ (t
+ guess))))
(list managed-modes (eglot--current-project) class contact language-ids)))
(defvar eglot-lsp-context)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#67682
; Package
emacs
.
(Fri, 08 Dec 2023 13:32:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 67682 <at> debbugs.gnu.org (full text, mbox):
On Fri, Dec 08 2023, João Távora wrote:
> ...for more than one year, probably means very few people
> are using this. May I ask what your LS is? .
I'm writing my own server.
> Please try the untested patch after my sig.
Yes, works.
Helmut
Reply sent
to
João Távora <joaotavora <at> gmail.com>
:
You have taken responsibility.
(Fri, 08 Dec 2023 19:16:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Helmut Eller <eller.helmut <at> gmail.com>
:
bug acknowledged by developer.
(Fri, 08 Dec 2023 19:16:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 67682-done <at> debbugs.gnu.org (full text, mbox):
On Fri, Dec 8, 2023 at 1:31 PM Helmut Eller <eller.helmut <at> gmail.com> wrote:
> > Please try the untested patch after my sig.
>
> Yes, works.
Pushed a variant of this patch to master in
50bab2a9f7a3a07c0aa24355e1d3cde547be90b9.
Could probably be backported to emacs-29.
Closing.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#67682
; Package
emacs
.
(Sat, 09 Dec 2023 11:10:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 67682 <at> debbugs.gnu.org (full text, mbox):
> Resent-To: bug-gnu-emacs <at> gnu.org
> From: João Távora <joaotavora <at> gmail.com>
> Date: Fri, 8 Dec 2023 19:17:56 +0000
>
> On Fri, Dec 8, 2023 at 1:31 PM Helmut Eller <eller.helmut <at> gmail.com> wrote:
>
> > > Please try the untested patch after my sig.
> >
> > Yes, works.
>
> Pushed a variant of this patch to master in
> 50bab2a9f7a3a07c0aa24355e1d3cde547be90b9.
>
> Could probably be backported to emacs-29.
It's okay to backport this to emacs-29, but "git cherry-pick" failed
when I tried it. Feel free to backport manually, and thanks.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 06 Jan 2024 12:24:11 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 125 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.