From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#67682: 30.0.50; M-u M-x eglot localhost:4567 doesn't connect Date: Fri, 8 Dec 2023 11:19:48 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7769"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67682@debbugs.gnu.org To: Helmut Eller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 08 12:21:20 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 1rBYv2-0001s1-95 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Dec 2023 12:21:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBYub-0008Qe-Eb; Fri, 08 Dec 2023 06:20:53 -0500 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 1rBYuY-0008QK-6a for bug-gnu-emacs@gnu.org; Fri, 08 Dec 2023 06:20:51 -0500 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 1rBYuX-0003ic-V2 for bug-gnu-emacs@gnu.org; Fri, 08 Dec 2023 06:20:49 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rBYuk-0002kd-KG for bug-gnu-emacs@gnu.org; Fri, 08 Dec 2023 06:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Dec 2023 11:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67682 X-GNU-PR-Package: emacs Original-Received: via spool by 67682-submit@debbugs.gnu.org id=B67682.170203442310467 (code B ref 67682); Fri, 08 Dec 2023 11:21:02 +0000 Original-Received: (at 67682) by debbugs.gnu.org; 8 Dec 2023 11:20:23 +0000 Original-Received: from localhost ([127.0.0.1]:43941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBYu6-0002ii-LL for submit@debbugs.gnu.org; Fri, 08 Dec 2023 06:20:22 -0500 Original-Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:47189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBYu3-0002iF-L3 for 67682@debbugs.gnu.org; Fri, 08 Dec 2023 06:20:20 -0500 Original-Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-50bf26b677dso1870681e87.2 for <67682@debbugs.gnu.org>; Fri, 08 Dec 2023 03:20:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702034400; x=1702639200; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=DDrvtJWRCRzuv+IrmP0Yyj9y83EwY0Co96pYQKgk/Qw=; b=Yw5zV3+ENXXdvBL5HriwJ55nYH1HBh9XogwYsIvO9sj6On43R99Awo/cuKQX8jWQiT qV0Qujr68mnXwEpZJgP9Lc53B6/8n27RWWw6MIKbCGiGLcSR2sz8uv4yS5FtI7vmsEfJ S6xl/ktcVA0McRYETweqEXOsNi7NxnQ78WyOXutuMQ5NHJnKUTsSisdhagsnKr2LBGzi HGZA82e4OMXpN9waCf9sonL+3hdLAL39oi+58zFhohltupcZXGuYGQsXyjbHPz1jRqIE uJUOipHs446PssrHip3jQQy1Dy3D000tEBfVIYpRjidR6FTc+UfK5Z1G8PqjGHRmSeh2 aMZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702034400; x=1702639200; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DDrvtJWRCRzuv+IrmP0Yyj9y83EwY0Co96pYQKgk/Qw=; b=f8N7i5JpM0UrMDXQ4DGpcW2poU9cro+4PO3wdq4X4LnA7S7RcsnPXexvZf8L/8Qzcj k1gWHe3VKhNxcbuKu991Bh5Oh+4rCP6IAQF02/wecPKa9h/i2sJ9zeu8+mEtDeApjERN QlwJBwpZlNswEB5kz+WNlBDh8BtAwWpqbazc+jyPBuf9a5oZSu4I/goV2gdVuU3pBk9w b0aQJzsPdlOtHuWqM+mCCYpwGYRLZVMcHJb5JZ6pBi1EGZ9lFuHsg6pAXSSrTep/qcmg /q3q2q+gsr6traT8R9BIQYoe7/RhfUfFPtIZ5lNq6dlwCNsl4dG/kiDDF17Qmlvo1OLl 8ohQ== X-Gm-Message-State: AOJu0Yy1fPNR4QCJcEeVP2FrNbtA182CY1lCDF76XIj/ZKWhq5YnFl4B do02j/NwBvIEIIHqajum6qSe6ATKjyl5OzreM4a9HGL1eFo= X-Google-Smtp-Source: AGHT+IFfw/JiH8/mvrxrDuXfXdg6IyaNuOcTHRwBQcwlbG9xVI3mjv9TpVEK4eOMelnrqjhnUw049SyER95nD4kkoE8= X-Received: by 2002:ac2:4adc:0:b0:50c:11:473d with SMTP id m28-20020ac24adc000000b0050c0011473dmr1415889lfp.85.1702034400178; Fri, 08 Dec 2023 03:20:00 -0800 (PST) In-Reply-To: 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:275753 Archived-At: On Thu, Dec 7, 2023 at 9:28=E2=80=AFAM Helmut Eller 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=C3=A3o T=C3=A1vora 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=C3=A3o 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-id= s))) (defvar eglot-lsp-context)