From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 24 02:39:59 2023 Received: (at submit) by debbugs.gnu.org; 24 Feb 2023 07:39:59 +0000 Received: from localhost ([127.0.0.1]:35900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVSgQ-0003ek-Li for submit@debbugs.gnu.org; Fri, 24 Feb 2023 02:39:59 -0500 Received: from lists.gnu.org ([209.51.188.17]:41548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVSgO-0003ec-By for submit@debbugs.gnu.org; Fri, 24 Feb 2023 02:39:57 -0500 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 1pVSgM-00071n-Ej for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2023 02:39:55 -0500 Received: from smtp5-g21.free.fr ([2a01:e0c:1:1599::14]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVSgJ-0006tV-BS for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2023 02:39:53 -0500 Received: from zimbra60-e10.priv.proxad.net (unknown [172.20.243.210]) by smtp5-g21.free.fr (Postfix) with ESMTP id 19DC75FFA1; Fri, 24 Feb 2023 08:39:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1677224386; bh=UuqbjoJqdzoioruXPzTQEODa19LYjNLp+jzZBHCFhqI=; h=Date:From:To:In-Reply-To:Subject:From; b=S2AT3RKWyFqX/KAIll++h0wVYKz0/2h/VcnP4SS+44UT3P4oX6qgch1kTk1IwGPdw mUBY5kxyBMfkK7PHL62QUiR7geztuRczHt2i9fHXcoOG7nxBHPXVHt5y0L+1CMr3Is RXq8TGRQqucLuqoLuMOp0WDMWb74umrMlAuWcJ1FBR+wt+uISGDGmoiLHJGANwKzrS Ndt/jpNtH0ENXMGGF4Y8DO7WEhW5gm9nc6hMvfEdjHi52T+g2087yeH2eesiKjxWjG /Yzh/MPBw+Zj3kITK5DtbVktS98p6WrIix4ptdPWOSDecJMCtcEQrp7+q32QKajbYd GxtkaGOsmVCSg== Date: Fri, 24 Feb 2023 08:39:45 +0100 (CET) From: jeberger@free.fr To: bug-gnu-emacs@gnu.org Message-ID: <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> Subject: 27.2; Eglot should use shell-file-name when launching the language server for a remote file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [193.240.154.120] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - NAV6 (Win)/7.2.0-GA2598) X-Authenticated-User: jeberger@free.fr Received-SPF: pass client-ip=2a01:e0c:1:1599::14; envelope-from=jeberger@free.fr; helo=smtp5-g21.free.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) >From https://github.com/joaotavora/eglot/issues/1175 # Steps to reproduce: - On the remote machine: - Install a language server in a non-standard path (e.g. `rust-analyzer= `, which installs in a subdirectory under `$HOME` and not `/usr/bin`) - Make sure that the server is in the path for a shell other than `sh` = (e.g. set the path in `.zprofile` for `zsh`). - On the local machine: - Open a file remotely through TRAMP - Set `shell-file-name` to the shell you're using on the remote (e.g. `= (setq shell-file-name "zsh")`) - M-x `eglot`. # Expected result: Eglot should start # Actual result: Eglot asks `Enter program to execute (or :):`, then when I type= `rust-analyzer` it fails with message `[jsonrpc] Server exited with status= 127`. Looking at `eglot-events-buffer`, it is clear that eglot tried to us= e `sh` to start the server. # Partial fix The server starts correctly if I change function `eglot--cmd` to use `(or s= hell-file-name "sh")` instead of plain `"sh"`, e.g.: ```lisp (defun eglot--cmd (contact) "Helper for `eglot--connect'." (if (file-remote-p default-directory) ;; TODO: this seems like a bug, although it=E2=80=99s everywhere. For ;; some reason, for remote connections only, over a pipe, we ;; need to turn off line buffering on the tty. ;; ;; Not only does this seem like there should be a better way, ;; but it almost certainly doesn=E2=80=99t work on non-unix systems. (list (or shell-file-name "sh") "-c" (string-join (cons "stty raw > /dev/null;" (mapcar #'shell-quote-argument contact)) " ")) contact)) ``` It still fails to autodetect the server and asks for the program to execute= though. ---- In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26 built on CIRROCUMULUS Repository revision: deef5efafb70f4b171265b896505b92b6eef24e6 Repository branch: HEAD Windowing system distributor 'Microsoft Corp.', version 10.0.19042 System Description: Microsoft Windows 10 Enterprise (v10.0.2009.19042.2604) Recent messages: Cleaning up the recentf list...done (0 removed) Quit Cleaning up the recentf list...done (0 removed) Timer #[257 "\303=01!\205!\0r\211q\210=08\203=1D\0=09\203=1D\0\304\305\306\= 307=09$\210\310\311!\210\312\211=12)\207" [flymake-mode flymake-no-changes-= timeout flymake-timer buffer-live-p flymake--log-1 :debug flymake "starting= syntax check after idle for %s seconds" flymake-start t nil] 6 " (fn BUFFER)"] ran for 00:00:17 from 08:15:39 to 08:15:56 Couldn=E2=80=99t find local shell prompt for C:/ProgramData/chocolatey/lib/= Emacs/tools/emacs/libexec/emacs/27.2/x86_64-w64-mingw32/cmdproxy.exe Cleaning up the recentf list...done (0 removed) Timer flycheck--handle-idle-trigger ran for 00:00:49 from 08:15:38 to 08:16= :27 Auto-saving... Configured using: 'configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: FRA locale-coding-system: cp1252 Major mode: Rust Minor modes in effect: flymake-mode: t flycheck-mode: t desktop-save-mode: t rainbow-delimiters-mode: t which-function-mode: t shell-dirtrack-mode: t recentf-mode: t global-linum-mode: t linum-mode: t global-hl-line-mode: t global-leerzeichen-mode: t yas-global-mode: t yas-minor-mode: t ws-butler-global-mode: t ws-butler-mode: t global-whitespace-mode: t tabbar-mwheel-mode: t tabbar-mode: t global-semanticdb-minor-mode: t global-semantic-idle-scheduler-mode: t global-semantic-idle-local-symbol-highlight-mode: t global-semantic-idle-summary-mode: t global-semantic-highlight-func-mode: t semantic-mode: t phi-rectangle-mode: t ivy-mode: t highlight-doxygen-global-mode: t global-dash-fontify-mode: t global-company-mode: t company-mode: t bar-cursor-mode: t override-global-mode: t show-paren-mode: t delete-selection-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: d:/home/.emacs.d/elpa/jsonrpc-1.0.16/jsonrpc hides c:/ProgramData/chocolate= y/lib/Emacs/tools/emacs/share/emacs/27.2/lisp/jsonrpc d:/home/.emacs.d/elpa/xref-1.6.2/xref hides c:/ProgramData/chocolatey/lib/E= macs/tools/emacs/share/emacs/27.2/lisp/progmodes/xref d:/home/.emacs.d/elpa/project-0.9.8/project hides c:/ProgramData/chocolatey= /lib/Emacs/tools/emacs/share/emacs/27.2/lisp/progmodes/project d:/home/.emacs.d/elpa/flymake-1.2.2/flymake hides c:/ProgramData/chocolatey= /lib/Emacs/tools/emacs/share/emacs/27.2/lisp/progmodes/flymake d:/home/.emacs.d/packages/mpuz hides c:/ProgramData/chocolatey/lib/Emacs/to= ols/emacs/share/emacs/27.2/lisp/play/mpuz d:/home/.emacs.d/elpa/seq-2.23/seq hides c:/ProgramData/chocolatey/lib/Emac= s/tools/emacs/share/emacs/27.2/lisp/emacs-lisp/seq d:/home/.emacs.d/elpa/eldoc-1.13.0/eldoc hides c:/ProgramData/chocolatey/li= b/Emacs/tools/emacs/share/emacs/27.2/lisp/emacs-lisp/eldoc Features: (shadow sort mail-extr emacsbug message rmc rfc822 mml mml-sec epa mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail tramp-cmds counsel-gtags minimal-session-saver css-mode sgml-mode eww mm-url gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr url-queue url url-proxy url-privacy url-expand url-methods url-history mailcap shr text-property-search url-cookie url-domsuf puny svg xml dom ffap eieio-opt semantic/sb speedbar sb-image dframe eglot external-completion array filenotify jsonrpc ert ewoc debug backtrace flymake-proc flymake warnings url-util cl-print help-fns radix-tree web-mode bitbake mmm-mode mmm-univ mmm-class mmm-region mmm-auto mmm-vars mmm-utils mmm-compat markdown-mode yaml-mode python sh-script smie executable semantic/bovine/make semantic/bovine/make-by make-mode toml-mode conf-mode racer f etags fileloop generator add-log semantic/tag-file semantic/imenu semantic/db-file data-debug cedet-files semantic/bovine/c semantic/decorate/include semantic/decorate/mode semantic/decorate semantic/bovine/c-by semantic/lex-spp semantic/bovine/gcc semantic/dep semantic/bovine semantic/analyze/refs semantic/db-find semantic/db-ref hideif hideshow jb-prog-licences jb-prog-font align jb-cc-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs flycheck-rust flycheck rust-utils rust-mode rust-rustfmt rust-playpen rust-compile rust-cargo tramp-cache vc-dispatcher vc-hg diff-mode desktop frameset thingatpt counsel xdg xref project dired dired-loaddefs swiper matlab matlab-scan matlab-syntax matlab-compat pulse rainbow-delimiters windmove s server ibuf-macs which-func imenu tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete parse-time iso8601 time-date format-spec recentf tree-widget linum hl-line leerzeichen yasnippet ws-butler cus-edit wid-edit whitespace tabbar smart-mode-line-light-theme smart-mode-line rich-minority semantic/db-mode semantic/idle semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn semantic/db eieio-base semantic/format ezimage semantic/tag-ls semantic/find semantic/ctxt semantic/util-modes semantic/util semantic pp semantic/tag semantic/lex semantic/fw mode-local find-func cedet phi-rectangle rect kconfig-mode derived ivy-hydra hydra lv ivy ivy-faces ivy-overlay colir color flx avy ht highlight-doxygen noutline outline dash company-oddmuse company-files company-capf company-cmake company-clang company-semantic company-css company-nxml company-bbdb company-keywords company-gtags company-template company-dabbrev-code company-dabbrev company pcase bar-cursor peg cl-extra help-mode advice use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core finder-inf edmacro kmacro compile comint ansi-color ring paren avoid delsel cus-start cus-load epg epg-config gnu-elpa-keyring-update rx info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 1041436 370370) (symbols 48 44596 7) (strings 32 219890 55700) (string-bytes 1 6131935) (vectors 16 115782) (vector-slots 8 2654593 430756) (floats 8 347 768) (intervals 56 50094 1190) (buffers 1000 168)) From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 24 03:16:12 2023 Received: (at 61748) by debbugs.gnu.org; 24 Feb 2023 08:16:12 +0000 Received: from localhost ([127.0.0.1]:35934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVTFU-0004Yq-03 for submit@debbugs.gnu.org; Fri, 24 Feb 2023 03:16:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVTFR-0004Ya-Kv for 61748@debbugs.gnu.org; Fri, 24 Feb 2023 03:16:10 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVTFL-0000aD-TB; Fri, 24 Feb 2023 03:16:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Vvc0YdBZfqNo2CBLfZKGIH2pi9iimvXYDSqCiG00olc=; b=oj6tAMpZJvUo 3oYNYEv+KHL0BOAhfuDRHQ99WQRP7fGhhKt6v7VBrLGcNO9bto6DBa7VbyBXC+er2Ul6IojOlZiQ1 HsnbUA8XReSjp5G6K+/2Ydc7Nw9FAotWOQh8v0KglKinDjwpPGflVS3obu25x2GfY1oIn+9VyHVeC dOQDVE0F+tUwMCLKn6dluKwO/BtUm0s5s4z9YTCwWyf9ZLrqEVtb2MouhPyCEHFC6SL+wIrpBh/MK jopIhCN20B0KknOU4BJcceMXErexZ72bvDPbtP+k7a58TBrJO2m3zSY0oLLAeXIy+Sr8XGbAhnfmI XrNBBXQoXu1zyeg1KKLRsw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVTFB-0000Xm-D4; Fri, 24 Feb 2023 03:15:56 -0500 Date: Fri, 24 Feb 2023 10:15:52 +0200 Message-Id: <83ttzbo4w7.fsf@gnu.org> From: Eli Zaretskii To: jeberger@free.fr, Michael Albinus In-Reply-To: <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> (jeberger@free.fr) Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file References: <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61748 Cc: 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 24 Feb 2023 08:39:45 +0100 (CET) > From: jeberger@free.fr > > >From https://github.com/joaotavora/eglot/issues/1175 > > # Steps to reproduce: > > - On the remote machine: > - Install a language server in a non-standard path (e.g. `rust-analyzer`, which installs in a subdirectory under `$HOME` and not `/usr/bin`) > - Make sure that the server is in the path for a shell other than `sh` (e.g. set the path in `.zprofile` for `zsh`). > - On the local machine: > - Open a file remotely through TRAMP > - Set `shell-file-name` to the shell you're using on the remote (e.g. `(setq shell-file-name "zsh")`) > - M-x `eglot`. > > # Expected result: > > Eglot should start > > # Actual result: > > Eglot asks `Enter program to execute (or :):`, then when I type `rust-analyzer` it fails with message `[jsonrpc] Server exited with status 127`. Looking at `eglot-events-buffer`, it is clear that eglot tried to use `sh` to start the server. > > # Partial fix > > The server starts correctly if I change function `eglot--cmd` to use `(or shell-file-name "sh")` instead of plain `"sh"`, e.g.: I don't think this is the correct fix. The literal "sh -c" is used in Eglot only for remote server invocations, and I presume this was done to avoid the problems with running Eglot on MS-Windows. Using shell-file-name is incorrect for this use case because shell-file-name gives you the name of the _local_ shell. I think we have better ways of dealing with this issue' I've CC'ed Michael in the hope that he will tell how to solve this properly. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 24 06:11:28 2023 Received: (at 61748) by debbugs.gnu.org; 24 Feb 2023 11:11:28 +0000 Received: from localhost ([127.0.0.1]:36058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVVz6-0003B9-FE for submit@debbugs.gnu.org; Fri, 24 Feb 2023 06:11:28 -0500 Received: from smtp5-g21.free.fr ([212.27.42.5]:2042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVVz4-0003B0-Ac for 61748@debbugs.gnu.org; Fri, 24 Feb 2023 06:11:27 -0500 Received: from zimbra60-e10.priv.proxad.net (unknown [172.20.243.210]) by smtp5-g21.free.fr (Postfix) with ESMTP id 112CF5FFB4; Fri, 24 Feb 2023 12:11:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1677237085; bh=w+oETT/qvKqOW3PeI8Um1F+znJAVJJH+eaGuYCKtQRE=; h=Date:From:To:Cc:In-Reply-To:Subject:From; b=fCdIIVxCbTLMsijhEs1O7N6ADRy7fhUQgW5kWEVVHvLvbAIVWOzjjMjrkyKcuBYn1 GgDf9umWcRSwPxwWOnbX8dVMdFPm28msn4x6O4BAHqNKFowHMQcENCvKzKquMKZgB9 9DMc3+od6qVGkj1Bm8QiqKhk8VIMZfkzlM0S1TGftzjuJABO62dM6fARcN5rDgy2UT XRAbCVMVgN/8VePLg6FnGBmeQCHTjvGdnE6w8Bsvs0FaLjsmJ4gyFDOHQd4Bi2b2u5 olVfVVmsmSUh2PPfKryDyAFlLnbnk3I5K6fIJqUcP7qXgHIz8CCa8tMzWM7/oa3uJW 8q63VlSM3D8sw== Date: Fri, 24 Feb 2023 12:11:24 +0100 (CET) From: jeberger@free.fr To: Eli Zaretskii Message-ID: <1059072250.16834484.1677237084935.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: <83ttzbo4w7.fsf@gnu.org> Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [193.240.154.120] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - NAV6 (Win)/7.2.0-GA2598) X-Authenticated-User: jeberger@free.fr X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: Michael Albinus , 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > De: "Eli Zaretskii" > =C3=80: jeberger@free.fr, "Michael Albinus" > Cc: 61748@debbugs.gnu.org > Envoy=C3=A9: Vendredi 24 F=C3=A9vrier 2023 09:15:52 > Objet: Re: bug#61748: 27.2; Eglot should use shell-file-name when launchi= ng the language server for a remote file > >> Date: Fri, 24 Feb 2023 08:39:45 +0100 (CET) >> From: jeberger@free.fr >>=20 >> # Partial fix >>=20 >> The server starts correctly if I change function `eglot--cmd` to use `(o= r shell-file-name "sh")` instead of plain `"sh"`, e.g.: > > I don't think this is the correct fix. The literal "sh -c" is used in > Eglot only for remote server invocations, and I presume this was done > to avoid the problems with running Eglot on MS-Windows. Using > shell-file-name is incorrect for this use case because shell-file-name > gives you the name of the _local_ shell. I think we have better ways > of dealing with this issue' I've CC'ed Michael in the hope that he > will tell how to solve this properly. > > Thanks. According to https://www.gnu.org/software/tramp/#Running-shell_002dcommand-= on-a-remote-host `shell-file-name` is also used for _remote_ command invocation and set to `= /bin/sh` by default. It can be configured using connection local variables. From the same source= , the fix should also use `(or shell-command-switch "-c")` instead of plain `"-c"`. Cordially. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 24 11:44:37 2023 Received: (at 61748) by debbugs.gnu.org; 24 Feb 2023 16:44:37 +0000 Received: from localhost ([127.0.0.1]:38096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVbBU-0003Ic-Ok for submit@debbugs.gnu.org; Fri, 24 Feb 2023 11:44:37 -0500 Received: from mout.gmx.net ([212.227.15.15]:55941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVbBS-0003IN-Se for 61748@debbugs.gnu.org; Fri, 24 Feb 2023 11:44:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677257066; i=michael.albinus@gmx.de; bh=ZR/Zon6WJy2UV1uWDdQ8IWSClI88a0F+V5oLcbYHBGo=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=lodBh/R+4NudSSivLt1P6hIxSyQvhk3EQCiw8Rma7FEItFeIqLn+sBXMtb4K468EW 0Xpmh2q8VhTNYvUGqhzAHoEM51n+8izrlnTqg2DLOF1XN8YX+zyBq63KcxKvgsPEhw DgdlflU+WQ9RMw+phLkiI5jWcN8Fqy2xBmOnvT+lir4WJS63Sa0hy/yZpa9Arkjyln s2u+yfPXG/ijLjfEwNQqR/4mMuSySNdERfyzQpXK/WA0VE+RA0OR1re+u+LUR06sHB nEZScBmcrrlyxUwC1TYg6qWAkOVCp1hifC+Y/l4dad/1ypioUFZ4oh4f1zx3Fbk75m sUv0RDpwvHeJA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mg6e4-1orKUB3ijW-00hcrB; Fri, 24 Feb 2023 17:44:25 +0100 From: Michael Albinus To: jeberger@free.fr Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: <1059072250.16834484.1677237084935.JavaMail.root@zimbra60-e10.priv.proxad.net> (jeberger@free.fr's message of "Fri, 24 Feb 2023 12:11:24 +0100 (CET)") References: <1059072250.16834484.1677237084935.JavaMail.root@zimbra60-e10.priv.proxad.net> Date: Fri, 24 Feb 2023 17:44:24 +0100 Message-ID: <87edqff1xz.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:SdOm0jk0OUrAuL9OCBv+8GV4bwc1iwL906jzaT1Wr1s8eJMeLkB u3k+TrOr3acVGdx30LiNcocoKuGEjYBhPlvR2NYr5EdqexSze+CQnfur60g/4CAcKqxTCpI ZNXPhBvrwDrmlUhpMvC1Jmg4RDju5FNJ2F3g6qbO2EM1dtEZelZgqI7ThMnah0tWjtfg+9V pGmqbDS3MLFOLfQZ5IL3g== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:9HohxmNH+qE=;soX1uAPOhrRCOWGANQ7vOKq10if FFxgNkePj/PrOEo2MNX8oVLJ11M4QnGus1QuwI6f42eKx68WTpOT+KB78GX+IvBRE0j9yYEHJ mwxn30/EriE3boDP8DasPbd8uKuaWRlKPhcB2EXfKubevmDXXyJ+6kxQ+IdGc7onaFbruynxP ZRz5gxXbynQ+Z68IAmD98u6g8Jj87BzrHUomH/9J/VK5voDvDIAbJbFYu1Pyq49b6ojxkwsMj iTeY7SiYxMxu8DO1+WKlBSDD2V2bM+9JJX8iPaFtAg/VZAoTl5gKQd4d4JBmbblXjQLwLfhuq bf8xk8SsBmlYl/m9QhM4UutGT3hrYbJN+eoJLKjsq2wu5yAPYw6dlCkyxQGbGPPN9zvEjPvR3 EMBUxVSjfL1M+v6uPRoN6Myu3hyF3SJ9GqE4UQ4Ijw9Y6+/D9T4Ea6pAPHbdSgWoR2+JZetJM AecQyJSP5+Xqt0Lv/yvUHfEpo/L8sOKIltirsvGjPXFPR4Nu7W2gDvk/Lvf7l84BWpjIXVL2q zEJd+6QIeNhr/L3jQpxpabVCp3yVCrr6bmsDgcf9j1PihIqC5qhOWbGwTmDq9HxGRfx0AfXf7 5vslY1+vIW4PFRxYjN21uyII5IoysKboGBa322qVl7c4USpq/leuBxAansFHvjAqJ/n8mpEiN GWQZB29hgr4aKcbMZumszrwk6ZjZ4Po3WlfjsSZe1q5xnGbo2xActGr8mZrnhgLx7LmSdfBM0 2KhXzz98Eu8E1o+zWoapa5w+H55nL/DxmMNI5KAIOr4cjIya0EewB+q+5/n/2Claueow6Ct2y 07kDh5pcAsQ235RayHe8oDEt12799pj/UUsL4DnNz1wjhXYVaFU2meQwOMhpnWV/tvV48mi2l PwaKGR0R/+2IP8slCpORUT6Ynry7YDa3Oa+LlKvO5IMwHmbYxLVRUqWp4eLU3KqyR3gyB+Y1W yJNJQI7oi+GrsYcFxmC/DZgTsu4= Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: Eli Zaretskii , 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) jeberger@free.fr writes: Hi, >>> # Partial fix >>> >>> The server starts correctly if I change function `eglot--cmd` to use `= (or shell-file-name "sh")` instead of plain `"sh"`, e.g.: >> >> I don't think this is the correct fix. The literal "sh -c" is used in >> Eglot only for remote server invocations, and I presume this was done >> to avoid the problems with running Eglot on MS-Windows. Using >> shell-file-name is incorrect for this use case because shell-file-name >> gives you the name of the _local_ shell. I think we have better ways >> of dealing with this issue' I've CC'ed Michael in the hope that he >> will tell how to solve this properly. >> >> Thanks. > > According to https://www.gnu.org/software/tramp/#Running-shell_002dcomma= nd-on-a-remote-host > `shell-file-name` is also used for _remote_ command invocation and set t= o `/bin/sh` by default. > It can be configured using connection local variables. From the same sou= rce, the fix > should also use `(or shell-command-switch "-c")` instead of plain `"-c"`= . Indeed. Since Tramp 2.4 (Emacs 27), Tramp provides both `shell-file-name` and `shell-command-switch' as connection-local variables. Per default, the former is "/bin/sh" (or "/system/bin/sh" on Android devices). When it is not known, whether a given remote buffer has expanded connection-local variables, the usage pattern might be (with-connection-local-variables shell-file-name) > Cordially. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 27 06:05:57 2023 Received: (at 61748) by debbugs.gnu.org; 27 Feb 2023 11:05:57 +0000 Received: from localhost ([127.0.0.1]:46217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWbKP-0002XW-JY for submit@debbugs.gnu.org; Mon, 27 Feb 2023 06:05:57 -0500 Received: from mail-ot1-f52.google.com ([209.85.210.52]:43752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWbKN-0002XI-4c for 61748@debbugs.gnu.org; Mon, 27 Feb 2023 06:05:56 -0500 Received: by mail-ot1-f52.google.com with SMTP id v17-20020a0568301bd100b0068dc615ee44so3292886ota.10 for <61748@debbugs.gnu.org>; Mon, 27 Feb 2023 03:05:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677495949; 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=J+439RfcR8jsh5bOsErLaFA8vMXwoSFjyDAqdu0dQLE=; b=oeZ8ZkcxHWgccfrNot/5mswNyNSUrx9t7GmoZ3lfrz7hAMH9kicjdN2rhj9tQRyYdN qkwBrlDvBHR0UpS5/EAcn/UTqY1FGKdpFv3iIvTI5EZCar1P5kfT/+IWYc3O9ECS6cOT 3PfJn9r1Ex/CebvrIQxxs4vXsv6ttKD+ZMBdE10gzZGFFxa3JBMcQjvlD335bb/ekWm1 //WHmtqNVRlRznxM2+ILTqcdk6kfTPt5RtqhpULGzQzY+Eq/SrDNwC6CD9th37DfO7Ac 0/zrqEwxOqHjVEnx1ujYI9wqkbLa5FNBl1jiz0/gL+RBbTejBrdacYeN8ODn81bren2h 8Uww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677495949; 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=J+439RfcR8jsh5bOsErLaFA8vMXwoSFjyDAqdu0dQLE=; b=FFMJf1YzXSSOh+ZtRW+etoWVcGz7lDGH8JkqWqTFD03I63acYCMDxoYz1h6RpBWEJK I4tby3+JdrnWcKn0omqRipUEEZDu0Qa38DF2GaP4POQWfMtOPN75aE4wwh88ZPwLosO/ Azh9Xl+HQIBpsQ48A1Lg/vGCNvNX8KatN8dWa+7ekEAdE2Mk7nNYgL1/ItVVCuBBQUIK 99ULY7nHqCnuQlc8A/C+7WochaYWpB+/7kWzrHA9p05sD8+TpUllerkGNg4cDYjXQV6V oWtZFJpKcb92wTfyqVKnWMPGx3pPPGB8NVYZUrqszbuKx+VQYEgRiroKIO/a9LojnxIM V+yg== X-Gm-Message-State: AO0yUKWRtB8iG+WkCOpZjYXLtlDEP5NNQYyhK3XgkOUFBPnO30NSrm3p 3l7mzceqtvmhWxbM39kMtDIxjTWX+xnBMfpx7A4= X-Google-Smtp-Source: AK7set9hO+hHwyb4dZxXxYquZe75hpezUyN5tzsaBn0NdVju4+cPoY8N3CnvVUm4FxsYsThZdbE/FIPIJPBjb2E+t2s= X-Received: by 2002:a05:6830:33d1:b0:68d:4b7f:e993 with SMTP id q17-20020a05683033d100b0068d4b7fe993mr4379138ott.3.1677495949295; Mon, 27 Feb 2023 03:05:49 -0800 (PST) MIME-Version: 1.0 References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Mon, 27 Feb 2023 11:07:32 +0000 Message-ID: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: jeberger@free.fr Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, I'm Eglot maintainer and, as of very recently, in analyzing bug#61350, also an Eglot-over-Tramp user. So I can now reproduce this bug. I have the `jdtls` script installed in `~/bin/jdtls` of my remote host user= 's HOME, and I too suffer from this bug. On the local host, I use zsh and shell-file-name is "/bin/zsh", although in Tramp-accessed buffers it is "/bin/sh". Bizarrely, this only happens sometimes. When it works, it works perfectly and, as expected, the remote PATH of the remote host user is consulted. Jo=C3=A3o From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 27 07:03:49 2023 Received: (at 61748) by debbugs.gnu.org; 27 Feb 2023 12:03:49 +0000 Received: from localhost ([127.0.0.1]:46280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWcEO-0004F5-TW for submit@debbugs.gnu.org; Mon, 27 Feb 2023 07:03:49 -0500 Received: from mail-oa1-f54.google.com ([209.85.160.54]:41855) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWcEM-0004Eq-Iq for 61748@debbugs.gnu.org; Mon, 27 Feb 2023 07:03:47 -0500 Received: by mail-oa1-f54.google.com with SMTP id 586e51a60fabf-172334d5c8aso7120111fac.8 for <61748@debbugs.gnu.org>; Mon, 27 Feb 2023 04:03:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677499421; 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=NiFa2jmjCAYKnnctP5v24IM202Onyb33lNQs38apvsg=; b=VajdTCPBLwxB6Dt9XJ0aXMrYP+h7YrtWa8+F6P0d3srNYQ7UQcF7hMaize2LxpSQLD iLFjgvhDTlww3Stapac++XGRKYjpo1MeHYebAtsENvAMPRp4BLGg3DjR6IHMfbBrx8IH UEO8kmZEugn1BlsQvx1YK8QWKtQolgpO6MdkB3MWeu4Sto0e/emqr0fzOzQNas941j0o YEnDtzZZ8ZXOKpw3HRYDBVSV+IOF1CIvJ5WcdBkcH9ppG2t3fGOBK0+Gko3xlN2ugsnb z1En8PgqqHkWNDCR4tkz8k3xpEzIPg4kgszAV9rtPb/u7Rnki+J/Q7q4taeZNkEWvnCo vk8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677499421; 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=NiFa2jmjCAYKnnctP5v24IM202Onyb33lNQs38apvsg=; b=yJbeUOfvLhNa7STT33jYDu6lW5gAoyGa/ZEN8cWSQBc9DI7EqYvPFk39aJenUTCRY+ Mkp0Y+5k2abXpfMv8CEtXl0Sj9YjSZvoSjUVooRtHFuXktCObbBLGvUqpfnmwq3vweQT pRXxhOIxnGVaAIE+GU8kipGKeYHX29Ybj4JroZ7SVNm2Ikx1RhjTONVW8oN/KWSU3W5y /OWYbtpbA+534n0D0GE71x7hu5AA8DN7DIYuuDD1PuXt3ezyZ9f4vDJfnQq+ZFLc6RYM d2MFZe5Sou2s/79OoYgcLbxM6p+duEvze8dCbfoROJk02Y5kat5sO62kP2kXIHN8zRnF AHkw== X-Gm-Message-State: AO0yUKUoe81m+ZYe9mLiyvWKBaISD300lMmUKnH5bXpKA6Iqm4emdWtc DbbtBCPTXYpl8lYeWIJMmnT0b3RzYn+P/YOynqo= X-Google-Smtp-Source: AK7set+vOrzKx5XMgmXQmPB+I6pfFLTOQnV9nQCnBvasTKW2XQeSO/SJCFohlqCTvnNPKnOAXJhp36XL2OBMCk4vDKg= X-Received: by 2002:a05:6870:f80e:b0:169:ce1c:d7c2 with SMTP id fr14-20020a056870f80e00b00169ce1cd7c2mr3789922oab.5.1677499420811; Mon, 27 Feb 2023 04:03:40 -0800 (PST) MIME-Version: 1.0 References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Mon, 27 Feb 2023 12:05:23 +0000 Message-ID: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: jeberger@free.fr Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) After a bit more investigation, I'm not sure this is a bug after all. It might be. My symptoms were the same as jeberger's but my setup is slightly different (I'm not using zsh on the remote). At least in my case, I was able to make Eglot/Tramp work successfully by adding 'tramp-own-remote-path' to the 'tramp-remote-path' list. If I do that, everything works as expected. In my case I was using simply a /bin/sh on the remote server and the user had a ~/bin directory that her ~/.profile adds to PATH. But without the 'tramp-own-remote-path' fix, the shell used by Tramp is not interactive and thus won't consider ~/.profile at all. It's a bit unfortunate that in such a simple case, there is this hoop to jump over. But since at least it can be jumped over, I will add this to the Eglot manual section on Tramp-related troubleshooting. Jo=C3=A3o On Mon, Feb 27, 2023 at 11:07=E2=80=AFAM Jo=C3=A3o T=C3=A1vora wrote: > > Hello, > > I'm Eglot maintainer and, as of very recently, in analyzing bug#61350, > also an Eglot-over-Tramp user. So I can now reproduce this bug. > > I have the `jdtls` script installed in `~/bin/jdtls` of my remote host us= er's > HOME, and I too suffer from this bug. On the local host, I use > zsh and shell-file-name is "/bin/zsh", although in Tramp-accessed > buffers it is "/bin/sh". > > Bizarrely, this only happens sometimes. When it works, it works perfectl= y > and, as expected, the remote PATH of the remote host user is consulted. > > Jo=C3=A3o --=20 Jo=C3=A3o T=C3=A1vora From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 27 12:59:05 2023 Received: (at 61748) by debbugs.gnu.org; 27 Feb 2023 17:59:05 +0000 Received: from localhost ([127.0.0.1]:48719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWhmD-0007gl-3k for submit@debbugs.gnu.org; Mon, 27 Feb 2023 12:59:05 -0500 Received: from smtp3-g21.free.fr ([212.27.42.3]:42620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWhmA-0007gR-Co for 61748@debbugs.gnu.org; Mon, 27 Feb 2023 12:59:03 -0500 Received: from wraith.localdomain (unknown [78.198.27.247]) by smtp3-g21.free.fr (Postfix) with ESMTP id 431BF13F87E; Mon, 27 Feb 2023 18:59:01 +0100 (CET) Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by wraith.localdomain (Postfix) with ESMTP id E74694FB2CF; Mon, 27 Feb 2023 18:59:00 +0100 (CET) To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> From: =?UTF-8?B?SsOpcsO0bWUgTS4gQmVyZ2Vy?= Subject: Re: [informatique] Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file Message-ID: Date: Mon, 27 Feb 2023 18:59:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0sTRtzKfblRxx3UZkBIw8rcgM76ELbGeK" X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: 61748 Cc: 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --0sTRtzKfblRxx3UZkBIw8rcgM76ELbGeK Content-Type: multipart/mixed; boundary="V6AkByZqhanQRKeYvKOWu2pKbTcMpQzK8"; protected-headers="v1" From: =?UTF-8?B?SsOpcsO0bWUgTS4gQmVyZ2Vy?= To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Cc: 61748@debbugs.gnu.org Message-ID: Subject: Re: [informatique] Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: --V6AkByZqhanQRKeYvKOWu2pKbTcMpQzK8 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: fr-FR On 2/27/23 1:05 PM, Jo=C3=A3o T=C3=A1vora wrote: > After a bit more investigation, I'm not sure this is a bug after all. > It might be. My symptoms were the same as jeberger's but > my setup is slightly different (I'm not using zsh on the remote). > > At least in my case, I was able to make Eglot/Tramp work successfully > by adding 'tramp-own-remote-path' to the 'tramp-remote-path' list. > If I do that, everything works as expected. > > In my case I was using simply a /bin/sh on the remote server > and the user had a ~/bin directory that her ~/.profile adds to PATH. > But without the 'tramp-own-remote-path' fix, the shell used by Tramp > is not interactive and thus won't consider ~/.profile at all. > > It's a bit unfortunate that in such a simple case, there is this hoop > to jump over. But since at least it can be jumped over, I will add thi= s > to the Eglot manual section on Tramp-related troubleshooting. =C2=A0=C2=A0=C2=A0 I already had `tramp-own-remote-path` in my `tramp-re= mote-path`.=20 But I don't use `~/.profile` to setup my path so it doesn't help for=20 Eglot. Note that Eglot is the only tool which has this issue: others=20 (e.g. `counsel-rg`) work fine over Tramp and pick up the path from `zsh` = correctly. =C2=A0=C2=A0=C2=A0 J=C3=A9r=C3=B4me --=20 mailto:jeberger@free.fr http://jeberger.free.fr Diaspora*: https://framasphere.org/u/jeberger --V6AkByZqhanQRKeYvKOWu2pKbTcMpQzK8-- --0sTRtzKfblRxx3UZkBIw8rcgM76ELbGeK Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wmMEABEIACMWIQRJ/HHBGK/E2suu5UN3SRYzgkbeTwUCY/zvZAUDAAAAAAAKCRB3SRYzgkbeT4t0 AJ46/vVc+xrSglYgntn7XWTA+X2QWgCfe585nqNNTHULDz6ERWVZLhF6XyE= =d6Tw -----END PGP SIGNATURE----- --0sTRtzKfblRxx3UZkBIw8rcgM76ELbGeK-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 27 14:57:40 2023 Received: (at 61748) by debbugs.gnu.org; 27 Feb 2023 19:57:40 +0000 Received: from localhost ([127.0.0.1]:48881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWjcy-0001UV-73 for submit@debbugs.gnu.org; Mon, 27 Feb 2023 14:57:40 -0500 Received: from mout.gmx.net ([212.227.15.15]:34175) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWjcx-0001UF-1a for 61748@debbugs.gnu.org; Mon, 27 Feb 2023 14:57:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677527851; i=michael.albinus@gmx.de; bh=gJKVFnx5+/e4yf3HVgOZ9N4qVlwsQgXKR+hi7PRX+xI=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=n1HK/Yu+baQxiFuGXlipe4e4RQCvyV4P4UXJDgoteSgdJVIV+V8b3t8/MoCfG7LDz HfdPWy5scuOeg3ExpoTQCBgqGg70eM2vT3KJizdGGlHh1toHMxWv6OtQpQJCKJEOsF /nv29cD4EpMKT4QaIfB1Jb7uu9UDJTsbUDy0F8Ergito7FMjpGkKUcnQqNKqomCeu8 gteHP/vUYtn7i85lzYhfVWS5nTA2JkN23ph8XJvbpw9ZNKNjLJr5QJrVIaE0Xwb1T7 UgvNn8KFiDKeI/hO/Yh9eWQdCI3c7In9eVBUEimvE5WZldRN64tTLGYckaW2mPvBTJ QLq7qJ3Foy9tg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MGhuK-1pK8Qz31gQ-00DmKe; Mon, 27 Feb 2023 20:57:31 +0100 From: Michael Albinus To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Mon, 27 Feb 2023 12:05:23 +0000") References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> Date: Mon, 27 Feb 2023 20:57:30 +0100 Message-ID: <87cz5uop91.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:JQQnPRouT2y9EyDITqi5+opS/XTbyN10NlS8YA2lt4pke6VVHhs HphtPQs0r+AXEs0qGSo46qn51k2mkgPtrMCC4FbPJqQseuzDh3ikCaXSm+sKZIQ7usrnA2S JO6UVUz2wGGCii2wTVqiqKutU+aXwE6brPZ7zUaqSWrsIJpjCT+wsrnIrov7L3rfnBbYJ6e Ga3QTu6sETPnLAXRKV0vQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:8KwaN18Vavg=;r7UW5EMArqq2vwK/o1zlIHs8iNU bXikr6V1ns1I5ERx7u/CunpecIkn9wHETbLkvepl27iS0k/YaGbAIJ3Q8sjadxtPSy5QmpdYF z9kOtisDf2T2JwiERM9hQE48JPghOila0Yocj7aHYWO6c7Gdm2ju/7oCEThcGUhg34k9+4hwI KZ6cpM/RIFTqYEkPcPNmvi8qO9Ne9O6usuVQbH5IvPpd5LrRKclxqpdhmj0IpyqaO9wEOATrz 2Bf59IpL4Up/+NkUKUr98vhkS2B0MdzFad6nJThu2Sii9FetCpbkFe6yVRnUOC9CT+oEc/1wg KO8EvJSdPhtX8rrw3n9kKLwkT+/TOK01gI9MdzBE3BCMMfgn/MfBCU3Tqw1MvR4HbVG7h23Ac oQKwqhR43kHSbp7CjGwqiDaTb5xwhHcGaFG8kbj76j03yhmHyZnvF9VWp30KoSdRtDhlGJIbL ZLEhKSYIEOme0hlK93P5Lrk9Q7vgpyq76C4koFOXSdNSlnbfl+Y1X0ve5Qgtw0xvT4hEgt9Id NBVAZLPFg6psSxBJOUJjq745hKcxzH20yMshwVXU+JCYgmTelmu1SXEqfB6MwnrtWOarDHbyI Y5ywB7EHzjSlSnx69o8CVRbIa1yN0jno3x7cO8aUOHvS5sCFyJRL6oUeYyHVAnIq7qqFaIBzd cebkxZKr3NdJQRdmoH0DYKuRIxmshCt6lwmuqXmT8guE93QN71erJDpiwKx+y5QBD/qoKT9s3 cY1VjXIHYUdBBObhOVEPLwtMx8VPPohX4MGLuFq4ego0V4q6LU6GA9yiWUMT2LYYbzHpBwouZ wKUt2asxWvw3EampYg1ZtegAfLx/dPBlxFDXtoLCRMss8QaqvKHMHQ87bvsSd9+MuagbQZQfT 4+2+jDqfcIGwBPGF2MzbcfLmBS5y3skEZfNcjcMmjCDdgYqWJjibX45eQDL62gphtlwVRb4Ba Mfaz5lKaEH3/YgH37iUr+jsS0y8= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Jo=C3=A3o T=C3=A1vora writes: Hi Jo=C3=A3o, > At least in my case, I was able to make Eglot/Tramp work successfully > by adding 'tramp-own-remote-path' to the 'tramp-remote-path' list. > If I do that, everything works as expected. > > In my case I was using simply a /bin/sh on the remote server > and the user had a ~/bin directory that her ~/.profile adds to PATH. > But without the 'tramp-own-remote-path' fix, the shell used by Tramp > is not interactive and thus won't consider ~/.profile at all. Why don't you add (the expanded) ~/bin to tramp-remote-path? > Jo=C3=A3o Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 27 15:07:45 2023 Received: (at 61748) by debbugs.gnu.org; 27 Feb 2023 20:07:45 +0000 Received: from localhost ([127.0.0.1]:48895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWjmj-0001lB-0R for submit@debbugs.gnu.org; Mon, 27 Feb 2023 15:07:45 -0500 Received: from mail-ot1-f50.google.com ([209.85.210.50]:44712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWjmg-0001kw-B7 for 61748@debbugs.gnu.org; Mon, 27 Feb 2023 15:07:43 -0500 Received: by mail-ot1-f50.google.com with SMTP id l13-20020a0568301d6d00b0068f24f576c5so4231803oti.11 for <61748@debbugs.gnu.org>; Mon, 27 Feb 2023 12:07:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677528456; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tzh7zna7ifbV64MlJede1ZxCwJq0CSzpWk9oRta15p8=; b=ZaIsaVusiEo3cUT7RLs+d6iVJcQlkdaz3S+sHixW6ABPKbH8gqXVoTCutDKdCqt+Kr UX31856YMtTxwtFzB1B3I9gnsY7aO7rxqvBRTiMjn66TQYk+QbUozMl9vil04CC6AN9h EwqzHe5H9TvWuFMT3r0Ij61pa8Cj+jaev0VNplptOykOYM/l7DrnqucXqiVTSrrSwF2A Yoq8RfmSCWS4G16oVZgFCSxLJKzMaF2ECmIfGUtMQMJMdV+tkbk/XKzUmjPNygTApW4K eybHfXGYcJW880kSZYbHDgaJ/y9Ll+EIjtZjKOZxwL7rEnDyDpJ90Y0TCLuAS7+T8Y6c IYPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677528456; h=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=tzh7zna7ifbV64MlJede1ZxCwJq0CSzpWk9oRta15p8=; b=jeMoL69HeN0Ffxnad25RoSxFiHJFuDq5fy4Bcyl1rx7W75WkJIgAvTUH6HaUeo6nHO P7mq4wKuT2YTvOQ/5jeUjmwcvdG27CBpGDX38PUBy2PEVvRxCcJv4pw69g/lOyUITpO1 A7hrPs7r4qBlhmqDDSBQ2TLBvkZ2/DySAH47io6P9mHJbRA5e1NL1GZPobpwswgLrS8f gHSDhgZzWi8eMbybJGIz9a7JVxK96esCoJcIAeXK84ev519CJh+G+iYhLSa1yOS3/Is7 j7nj3QiHT2LZ8ie2JnDWh2tjvtGKP1Vw7QAAgwdSbOIq2xu5jpnh0j/ypJRkrleEnThS lZxg== X-Gm-Message-State: AO0yUKX78eqXHRhVMoqLjxibcE65cZ8lhlmPPFIO4DuqQTsHiipXQA5Y Ot+WDeZHcXkRNb9kig1AbaaR6CpO0GlNfx0oQyE= X-Google-Smtp-Source: AK7set/2qJXG+UWtqIZn2alEeDzKR944MDXBDuKHpyiCdtUPrOkJRP+GkCctVobOiY9cde+yOr2/3FPdCpSFWGsnTbk= X-Received: by 2002:a05:6830:6210:b0:693:ce5a:7a72 with SMTP id cd16-20020a056830621000b00693ce5a7a72mr412166otb.0.1677528456626; Mon, 27 Feb 2023 12:07:36 -0800 (PST) MIME-Version: 1.0 References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> In-Reply-To: <87cz5uop91.fsf@gmx.de> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Mon, 27 Feb 2023 20:07:24 +0000 Message-ID: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: Michael Albinus Content-Type: multipart/alternative; boundary="000000000000c2067005f5b407b7" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000c2067005f5b407b7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 27, 2023, 19:57 Michael Albinus wrote: > > > In my case I was using simply a /bin/sh on the remote server > > and the user had a ~/bin directory that her ~/.profile adds to PATH. > > But without the 'tramp-own-remote-path' fix, the shell used by Tramp > > is not interactive and thus won't consider ~/.profile at all. > > Why don't you add (the expanded) ~/bin to tramp-remote-path? > I did, but it did not work reliably, Michael. Only sometimes. I will try again though. Jo=C3=A3o --000000000000c2067005f5b407b7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Feb 27, 2023, 19:57 Michael Albinus <michael.albinus@gmx.de> wrote:
=

> In my case I was using simply a /bin/sh on the remote server
> and the user had a ~/bin directory that her ~/.profile adds to PATH. > But without the 'tramp-own-remote-path' fix, the shell used by= Tramp
> is not interactive and thus won't consider ~/.profile at all.

Why don't you add (the expanded) ~/bin to tramp-remote-path?

I did, but = it did not work reliably, Michael. Only sometimes.
<= br>
I will try again though.
=
Jo=C3=A3o
--000000000000c2067005f5b407b7-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 27 15:13:27 2023 Received: (at 61748) by debbugs.gnu.org; 27 Feb 2023 20:13:27 +0000 Received: from localhost ([127.0.0.1]:48908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWjsF-0001ua-CQ for submit@debbugs.gnu.org; Mon, 27 Feb 2023 15:13:27 -0500 Received: from mout.gmx.net ([212.227.17.20]:59237) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWjsD-0001uN-7l for 61748@debbugs.gnu.org; Mon, 27 Feb 2023 15:13:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677528798; i=michael.albinus@gmx.de; bh=zXslB/7BCoHQfehF9qm4eJW/8oTCKqtpmTyHq9jIo9c=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=CmcDPHLSUF4TInFkOdKSZKRyGR+JlEmjeUzGZfj24as2F4SD/9irdkN60wzLcSQpD Xyx0LzOd8FEj31sMJ1vs8syf8wj0R/D9R1XatNx6IpP/8MB2mR3gvnmzHBu9nkQjZl SSRA76K5QaHl47xbIDVCBU9uQzH/ZEvpalt2bNF+IaafG1zCpA8Ww7pblOSw/H+3Bz Cg3b9C8y2bMTuzE9G94F3+dFhIP9Yry3rsxNpus+GYo8543kJkvram4mao8YTCbx4a 2ay2H1T0H5wgGujGndzM4OpiRriHTfKzKtgZZsMHHFQGGDj5kIwb5MUzHPS9ciE6OF vj6ApnKA36tuQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MVvLB-1p547E3sqD-00Ro3l; Mon, 27 Feb 2023 21:13:18 +0100 From: Michael Albinus To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Mon, 27 Feb 2023 20:07:24 +0000") References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> Date: Mon, 27 Feb 2023 21:13:17 +0100 Message-ID: <87v8jmn9ya.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:hlvV/GjGEyaFpo3o29esnI2Eqq+kpbcadkpZyU45XTpKabr5nPR EmNugzSWjJWUrAoPU+MtZGoCarRa5PiGHAPkJeMhfnnYmaZxtmZlkgYKaSdizSHKgy7Sxgz ZXsa6tywILgBqwqZazzAZFQjP550apJlnZD/Qm8mdAgvDgQgWgCc9oonMMG7R7ry/5fslVc 5vKneCH95u3ngfHTSbiuw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:uvGat7sxT8o=;F85iiadfV5avXX5+XlhK5kDwn2X AiasNmL+eOAZkFvK8mZSgtTYB21Utr0VMfvsnsDvLCaHAkWumPwAgqVR2YrD1rmlvIQt9vZje /Wl84ikXBgkW8+NsoV4dSGGzt/PBstZbhyLqVDk0sgjSEjOGddUPdlYpt1V1Rc5OuJiQP5uJp 8QcA7xbyNG0mOmozKWMnhi6DKScpwAGjbyJZZ+cvNFR/VJvOI+QJy26fWixWfNaag1bs0rqdr OZTa3cQAWCP5gJdvf7h9XzHQ7mC5wgi2ApMaqJUsbqattZ7FY5OMTypI1UPkMhLx8hQccKNkm ZgFN8MB/G6w72up5la0SNGl6M7jMK2CO9yRY+fLP34sPflQ2JnmWE3wKmzVsPOEw0MYW+o1l/ QQyCreuOgSOro8Wzp9X5i8WRNaPzdFFTweJgyEMq34RWwibysF3Hx+zDPe4e+ZAV9X/hJJaEi rJn/mbUMnjryyy0U4gvSrb/xVTg2k351oDD5oi24Lptusvm5inmCn0fstfR2NorgPjDCYFQEF vQnPQMNEzscWLcwIt4KDnf960MVAXrsqTI2m7I9YiQ6UZsSWqQhR2cQL7eVNDwISBuxihTge1 dnABHu4ybpjAQa0ZkNOb44SfquYrAFgeSn51BaUPJC0ZE03Xl9GuDr9o9Gx73wsjcdyir8RSL VnvjQISBId6ad40ibDXNPrH/4GhFiQdMtLbmyHtQPEsQH55RD8mqUwp2JJQPPozOBtYb9tU3r 18r2HTNHDFDHxQeGXsVrNZocHdGw8ZePpcQQovQQ0PrrPQ/HaUj02G9lA7rvJu+eIndFWFMvT jsv+iQ/sCfLPGqZBE2M8MJqUYInhMsmx/szETbKOPZ/0JqLRhZ86JNZt4FTimQvVmNWEt/AuO GP10WkDcrUjeGsjIviEIKHM4RcmdIj4xpJUnjjLicTrWZ55rZp9xUvocWD6++f43PEo1RgkV/ hYXfOst49kcejITNYfWV8kS3k98= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Jo=C3=A3o T=C3=A1vora writes: Hi Jo=C3=A3o, > Why don't you add (the expanded) ~/bin to tramp-remote-path? > > I did, but it did not work reliably, Michael. Only sometimes. > > I will try again though. Show me your settings, we'll fix it together. > Jo=C3=A3o Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 27 18:39:45 2023 Received: (at 61748) by debbugs.gnu.org; 27 Feb 2023 23:39:45 +0000 Received: from localhost ([127.0.0.1]:49213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWn5t-0004Rk-6D for submit@debbugs.gnu.org; Mon, 27 Feb 2023 18:39:45 -0500 Received: from mail-wm1-f54.google.com ([209.85.128.54]:44991) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWn5o-0004RU-Nn for 61748@debbugs.gnu.org; Mon, 27 Feb 2023 18:39:44 -0500 Received: by mail-wm1-f54.google.com with SMTP id m25-20020a7bcb99000000b003e7842b75f2so4825638wmi.3 for <61748@debbugs.gnu.org>; Mon, 27 Feb 2023 15:39:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677541174; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yw2xnYSy8iOxUmlMdJzH3kvv5HMbyrHV8YX+HZSyq+Q=; b=flAR2izCmLTAduE8dx+m7cl5wStc9AfNLHDx0FJ6O0scmNJYlQgR7eQUKT0WWr092o b20rbWmSigpNXg/ekoKGfYyM1g72llfeX7ZX+EbSmenFv6CtqfeownxufVyA6koMgkz6 dnJ16mqgv+deeD2/sRsRYQJURCto/XxpmjrHS3gYXQ+ld4GS9n6noTaNpb1B98q08pys y5mL9PyTeUw16WsddSdyEdLYIPPk4o/ILnfz0fYognFz3GJNdwHhiXp25LBBfLFI0B8O exEgl6OnFNrnWOAAWijgWnPzGhac3ozlIzkM3hcn+pVvLa9knqaaNSzcasWmugkce0cC Dehg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677541174; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=yw2xnYSy8iOxUmlMdJzH3kvv5HMbyrHV8YX+HZSyq+Q=; b=c51vs3gyEPjsiYtFAVdYYFVFTxyPRqD0xAVrukH41YmaJ5gy6WB2DwYmAqGwFUl1pn N2uu648VQXVbjJ3DYf85H8MrGr6dpzO2OQ0O6h8n7fr1d5GQ2MRmJ6GPcZz0Rei+l5Vg eASemGa8VIbcFnjqiSn+J4rrfufgcF6u/rCg3hfzkypj+XFYhUv/n7gJzryT5hbGkxwt pTd+2hR/M905RRNmAI0jtKK97G3Fg//ho1zuQSkFrHIIh1btXrq+b3NAiBJv/5ynqqyC H1W+0JdY5qq95umeWLBqp/S+PHq2epOJq2jRKd1E3hjyXYMWRpOFbUxdxxf0irl2/4YR K5LQ== X-Gm-Message-State: AO0yUKWtbyDONpp75F+N75jHhYpEeqy8XQYHmXa2u7YESL4ttjkvpa67 tx1gVh1KpHm5YUMhYt98imvcghM/O78= X-Google-Smtp-Source: AK7set+V18JsW0I63Pr9+GOsj9RKcB0wcRW9o3ajlBY6BvMB7G/diFhIapC1llZ0cX7B3X4piBA+gQ== X-Received: by 2002:a05:600c:4450:b0:3dc:16d2:ae5e with SMTP id v16-20020a05600c445000b003dc16d2ae5emr567049wmn.32.1677541174345; Mon, 27 Feb 2023 15:39:34 -0800 (PST) Received: from krug (87-196-72-142.net.novis.pt. [87.196.72.142]) by smtp.gmail.com with ESMTPSA id l3-20020a05600012c300b002c5694aef92sm8173166wrx.21.2023.02.27.15.39.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 15:39:33 -0800 (PST) From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= To: =?utf-8?B?SsOpcsO0bWU=?= M. Berger Subject: Re: [informatique] Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: (=?utf-8?B?IkrDqXLDtG1l?= M. Berger"'s message of "Mon, 27 Feb 2023 18:59:00 +0100") References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> Date: Mon, 27 Feb 2023 23:41:28 +0000 Message-ID: <87356qekwn.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) J=C3=A9r=C3=B4me M. Berger writes: > On 2/27/23 1:05 PM, Jo=C3=A3o T=C3=A1vora wrote: > =C2=A0=C2=A0=C2=A0 I already had `tramp-own-remote-path` in my > `tramp-remote-path`. But I don't use `~/.profile` to setup my path so > it doesn't help for Eglot. Note that Eglot is the only tool which has > this issue: others (e.g. `counsel-rg`) work fine over Tramp and pick > up the path from `zsh` correctly. I don't know what counsel is or how it deals with this issue, but feel free to share any relevant code here. Even though "make it work" hacks abound, Eglot promotes separation of responsibilities. Being is core is great for figuring out exactly where fixes should go. Eglot's business is LSP. TRAMP accesses remote files. Eglot knows close to nothing about TRAMP or how it does its file access job. After all the 'T' in tramp stands for "transparent". Not ruling out changes to Eglot, but it look like what is needed here for things to work out-of-the-box (or nearly so) is a way to tell Emacs something like: "Whevever I'm working on files of this remote server, find executables in the remote PATH. Calculate PATH to be the same as if I had just logged in interactively as the user I'm accessing this file with." Whether this can be a good default or something you set in your configuration is not up to me, but often what works for you does not work for someone else. Jo=C3=A3o From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 27 18:58:21 2023 Received: (at 61748) by debbugs.gnu.org; 27 Feb 2023 23:58:21 +0000 Received: from localhost ([127.0.0.1]:49223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWnNt-00050q-Ab for submit@debbugs.gnu.org; Mon, 27 Feb 2023 18:58:21 -0500 Received: from mail-wm1-f51.google.com ([209.85.128.51]:52844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWnNp-00050a-3q for 61748@debbugs.gnu.org; Mon, 27 Feb 2023 18:58:20 -0500 Received: by mail-wm1-f51.google.com with SMTP id j3so5328618wms.2 for <61748@debbugs.gnu.org>; Mon, 27 Feb 2023 15:58:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677542291; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=gaSInsvatnEM9FugaobYZf89bZfv2+ZkPQ6th3vgDmg=; b=qPNOsWWR7s73I1i8AYInwcXynPFz9r1xLByG5p7vKDvDkS0pyGfBaPFNdmNZw3ORan pLGJ+IxbzLPFJuKfPY9lCbDuz8A02K2oGOx9do79Tg1dOm5WFjBb4zQ8UGWFfHJ+Y5RC US0aGaOCVttVk651yHsDwc6aNBlFeT14Tnl2u4reF/3dKqSkfws0sG/xmSHpk7feE5WV 5nWBFRq82r+6y2y+NTSlEoePtRdXmmKDoK3dZ3B1R+RS4Arndyo2bAhbK95r/pKhyMvT +gsVLc75RiKj1780M2P09ZBeXKVVtHMe7TGkO8yfVuetU44LM217n27ZYKzB4gMayUSF VUzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677542291; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=gaSInsvatnEM9FugaobYZf89bZfv2+ZkPQ6th3vgDmg=; b=bEKJvUVHx4OYSKXuJnA0SF7i3UD/tNfJWp0zI4cHDZQkqs9FsUWEyQmydwvbeSOuN3 b3Q1citdwtpBOK25Mfer9mjLN6ovEvcD6tMZFgiVulcEg33NAploEDSyooQ4WFINYo/b MrZ8IPm0dxNYNmAz9LP4R0yES63/g1bGpDjEJU2sh2kVZ4OrhbcMAnRFcz2DW9UdciKw 2n5gWTNIuVTmnadoLpZQL6MEQ7BzMDLdupYiHQ/z/Rk999Wf844ziBRe3zMZ7xNUBgag 9adlp3VZ8mdfZtQq5xcSxn7kc34O0mHW2LPGbREFeKDXsPIpt4Z7r/4krjY23d8D917v +l8A== X-Gm-Message-State: AO0yUKVIOdvU0vbkcSUb+X89kGgQTQDMbCg3o7T4I4rKSY6iWKOzg4bK Y5hR90G8vEnNUZhQ+3dJ23t4S87LBjE= X-Google-Smtp-Source: AK7set/RDx2Q/q8+xQ/wBj0JHpGlpkdHhYTrIvcRnNY52I5ncG20uiJsXzDjRIaDjDFnQ7PFnDPPkA== X-Received: by 2002:a05:600c:997:b0:3eb:432d:8279 with SMTP id w23-20020a05600c099700b003eb432d8279mr729661wmp.13.1677542290782; Mon, 27 Feb 2023 15:58:10 -0800 (PST) Received: from krug (87-196-72-142.net.novis.pt. [87.196.72.142]) by smtp.gmail.com with ESMTPSA id l4-20020a5d4804000000b002c59c6abc10sm8201125wrq.115.2023.02.27.15.58.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 15:58:10 -0800 (PST) From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= To: Michael Albinus Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: <87v8jmn9ya.fsf@gmx.de> (Michael Albinus's message of "Mon, 27 Feb 2023 21:13:17 +0100") References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> Date: Tue, 28 Feb 2023 00:00:04 +0000 Message-ID: <87y1oid5h7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Michael Albinus writes: > Jo=C3=A3o T=C3=A1vora writes: > > Hi Jo=C3=A3o, > >> Why don't you add (the expanded) ~/bin to tramp-remote-path? >> >> I did, but it did not work reliably, Michael. Only sometimes. >> >> I will try again though. > > Show me your settings, we'll fix it together. I use the attached dockerfile that I used for the reproduction of bug#61350. It installs a Java LSP server and has a Java project. I build and run this Docker container with: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline; filename=dockerfile Content-Transfer-Encoding: quoted-printable FROM ubuntu:latest RUN apt update && apt install openssh-server sudo openjdk-17-jdk openjdk-1= 7-jre git wget -y # Create a user =E2=80=9Csshuser=E2=80=9D and group =E2=80=9Csshgroup=E2=80= =9D RUN groupadd sshgroup && useradd -ms /bin/bash -g sshgroup sshuser # Create sshuser directory in home RUN mkdir -p /home/sshuser/.ssh # Copy the ssh public key in the authorized_keys file. The idkey.pub below = is a public key file you get from ssh-keygen. They are under ~/.ssh directo= ry by default. COPY id_rsa.pub /home/sshuser/.ssh/authorized_keys # change ownership of the key file.=20 RUN chown sshuser:sshgroup /home/sshuser/.ssh/authorized_keys && chmod 600 = /home/sshuser/.ssh/authorized_keys # Start SSH service RUN service ssh start # Expose docker port 22 EXPOSE 22 USER sshuser WORKDIR /home/sshuser RUN git clone --depth 1 --no-tags --single-branch -b eglot-tramp-freeze-rep= ro https://github.com/thkoch2001/yacy_search_server RUN wget https://download.eclipse.org/jdtls/milestones/1.19.0/jdt-language-= server-1.19.0-202301171536.tar.gz RUN mkdir jdtls RUN tar xvfz jdt-language-server-1.19.0-202301171536.tar.gz -C jdtls RUN mkdir bin RUN ln -sf ~/jdtls/bin/jdtls ~/bin/jdtls USER root CMD ["/usr/sbin/sshd","-D"] --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable docker build -t sshubuntu . docker run -d -p 2022:22 sshubuntu In a directory where I have the attached dockerfile and a id_rsa.pub which is the public key to my default ssh key.=20=20 After this ssh access works with the user 'sshuser' on localhost port 2022 mapped to the server's 22. The LSP server executable 'jdtls' is linked to this user's $HOME/bin, or /home/sshuser/bin. The default shell for user 'sshuser' is '/bin/bash' (though Tramp seems to access it with '/bin/sh'). The local shell is '/bin/zsh'. In the local machine I launch Emacs -Q sessions in slightly different ways. This fails: export REMOTE_FILE=3D/home/sshuser/yacy_search_server/source/net/yacy/y= acy.java ~/Source/Emacs/emacs/src/emacs -Q = \ /ssh:sshuser@localhost#2022:$REMOTE_FILE = \ --eval '(add-to-list (quote tramp-remote-path) "/home/sshuser/bin")'= \ -f eglot Even if it worked, I would be suboptimal. I think I would like to avoid the hardcoding of "/home/sshuser/bin" in my config. This also fails. ~/Source/Emacs/emacs/src/emacs -Q = \ /ssh:sshuser@localhost#2022:$REMOTE_FILE = \ --eval '(add-to-list (quote tramp-remote-path) "~/bin")' = \ -f eglot And the following works. Eglot is started correctly. ~/Source/Emacs/emacs/src/emacs -Q = \ /ssh:sshuser@localhost#2022:$REMOTE_FILE = \ --eval '(add-to-list (quote tramp-remote-path) (quote tramp-own-remo= te-path))' \ -f eglot Jo=C3=A3o --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 03:42:05 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 08:42:05 +0000 Received: from localhost ([127.0.0.1]:49669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWvYj-0005df-H1 for submit@debbugs.gnu.org; Tue, 28 Feb 2023 03:42:05 -0500 Received: from mout.gmx.net ([212.227.15.18]:35699) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWvYe-0005d7-AQ for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 03:42:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677573709; i=michael.albinus@gmx.de; bh=PeWTrmlhtRLH/i1a7+kfI7QIbwmoaq7fBDcATgbNsjk=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=V/5CZdQvUeUFYhvfvU6OYwpbRWgRj3yQqb8iUcWT+V3mUeKPQ3PKhk5C6xQr5M5jc pKaiW+zsED6VLKE3H451iOyPTQ/cU4XrJPCUKzLi77ZpiXAQGf1SoQRdz8tvncGrn2 aIpCA6gsdpOA00gze/sqKRO50QU1ry13kQwWdEeeQV5FRh60W8suEwAd0S7lhR8rsC 3agKKKIKEkpnWYIkLLOvlypyPXVCk3zL7IVvYjcnPcEzLncdtq0nvam2sK0M5XZXuZ HXNPCFP5YeMh+CxaGYh+kNHY1pfvJV7IpPeJlX63VMVuXXvtJrV/WZS5C7mMfSVO07 B7iCnZ1yNZJgg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N2E1M-1oUSo70noE-013gJR; Tue, 28 Feb 2023 09:41:49 +0100 From: Michael Albinus To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: <87y1oid5h7.fsf@gmail.com> (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vor?= =?utf-8?Q?a=22's?= message of "Tue, 28 Feb 2023 00:00:04 +0000") References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> <87y1oid5h7.fsf@gmail.com> Date: Tue, 28 Feb 2023 09:41:48 +0100 Message-ID: <87pm9umbar.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:k9LUJBNAIWg3DhVf6RGJW811KdOprIpqQxzmT6GbZfX8xI6SKb6 m1k6s1pcP5yog2zeTutrggkNioyHsIScrrX1LIr2wo8zyYYpM2yFgn1joWJ+vK2VwVy1VUI qaXsKRflA+30kMWxGmil0kNvBSaq39rdnqZC9r9ajG5cq3NNhsTIKDga5eQ+CVXqJUlP4yd ccmZJEImN2tFo9mGr0jbg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:Gdani7Nd1fk=;6k5aMsgGCCFpACuDbH4H8Y6I+0S vPn08Y1ul4k6PBDUjiW3X/XjZ0LFdX3aT06FMoPEZDC4PXPqUUSOVzT87eDHl8/gVRN2IrF7A ATfKXRZXVc4H/uK23tQnK3l4vmoP1tXey2Y79UGM9Hu8AC/AHxqO9xgDTWNIRQLXcrPrxqqO5 M5UPTIQUziX23OErXEQFU6nzn5yW6mXltNGTK7IQPRWfbNxpeO/FsX0a6NzgjxDyzY91pmUBO tJ08EDJ0aJ6/3RFuCNqoxYZ3oDb38tah78xEhAxIbiwkRzr63iRiS3NDIMCIahHRKfwgSrIfN JaO5lBBwSddrfwhr2f923wGqLkioOfsDGj6hJB07a9TOkUDSHo8iWqz2W654GykHrG0sb2Ibw 52LbYKmuzaeKYVgIYu05XySKWAU3lPIZLL36IC5rBbi82fK75cy6OPk2jznoVysJaPord9zBx Kr6N3FKmCJLPCWHJWPyyhhhKCIpClMtanFRo5xrYK6tai6Dacx7w2thAAjeMiZNXnqQZpeKFt jO0L8dPJTyEO3nUQom8T2HTU3YycRSZwIlcYlys4OH7Rx7RTFH8UHU81SQRq1bbdCdHhebY9K HH5/fQvKHNqMTQ48yaOxe+4v49Foknl9ZU88X/jYrlGqI05nS43J9iYJ2EagJgKl/XQGVFklk XFQUGn6sxEiNlmq9pnSgJ04wbYI8qjrIeuk0cKrzOlJfxQSADr7s7Wnek6djSG+bu4qawZ7wK KN2kBd79Zl/0fNGckLI5qcpqnmxYp5caAb/tj/6jxP4mDwCipEOL5J0Is+WMYKlOxWzn/FuS9 V8TJ3lrtPOjanepl3OEwP/oclZwT8Bkjp8rGgSL2R/i0HfLihN/a+gBYhn3cdd4LGobpFF2a5 0RRSSFzlpcfF2tl2UlWQ2GJWTBpDSTWNpXg8cMbX0Op9PXSENNQHdSqZ8XP3kiEg7fFiSao54 AAJ5hES8J8mIfoMHlGLZTMPwC24= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Jo=C3=A3o T=C3=A1vora writes: Hi Jo=C3=A3o, > ~/Source/Emacs/emacs/src/emacs -Q = \ > /ssh:sshuser@localhost#2022:$REMOTE_FILE = \ > --eval '(add-to-list (quote tramp-remote-path) "~/bin")' = \ > -f eglot You must set tramp-remote-path before accessing the remote server. Try this: ~/Source/Emacs/emacs/src/emacs -Q -l tramp = \ --eval '(add-to-list (quote tramp-remote-path) "~/bin")' = \ /ssh:sshuser@localhost#2022:$REMOTE_FILE = \ -f eglot > Jo=C3=A3o Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 04:50:46 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 09:50:46 +0000 Received: from localhost ([127.0.0.1]:49755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWwdC-0007YU-Ep for submit@debbugs.gnu.org; Tue, 28 Feb 2023 04:50:46 -0500 Received: from smtp3-g21.free.fr ([212.27.42.3]:31798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWwd6-0007YE-FY for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 04:50:45 -0500 Received: from zimbra60-e10.priv.proxad.net (unknown [172.20.243.210]) by smtp3-g21.free.fr (Postfix) with ESMTP id 3939713F8E2; Tue, 28 Feb 2023 10:50:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1677577839; bh=zkIxcWWWgwpVQ6DiqXSFAYGGitFM8Gr/SIrYC9bkCgg=; h=Date:From:To:Cc:In-Reply-To:Subject:From; b=rQ7Lm5I9GXwlB0yDEqJDVzIkijbq4RNVEpy7f1eK/+yRWG1yi/oqd2eq3rtow8qiQ xwELcmdbZI3u1xt10rulC/NYYJpRs553bV9HLzhkjqSbsgQ9O/ZXK+pKeq5bntZnv7 biYKCwFjbenTWqkVpLquRNVDyHon1CatRRJ9X8Y9R+ZyVudCioytbR4H8sOpq25aGZ j3LOStIXyuDG4ksdA72OPkoGK+bSg31GH8Y2Cp3fGuxq+IQ0WRSvIvzgWDJjyA4E3w 9G2f7CLGbMZuAhgc/8zllHiSQd+ocUu3zMQrfVVVGaTXpft6sNzn2I8T9p2lbXWotw JuVHNyuYrk/Ag== Date: Tue, 28 Feb 2023 10:50:39 +0100 (CET) From: jeberger@free.fr To: =?utf-8?Q?Jo=C3=A3o_T=C3=A1vora?= Message-ID: <1618583304.5683560.1677577839048.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: <87356qekwn.fsf@gmail.com> Subject: Re: [informatique] Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [193.240.154.120] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - NAV6 (Win)/7.2.0-GA2598) X-Authenticated-User: jeberger@free.fr X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Jo=C3=A3o T=C3=A1vora wrote: > > I don't know what counsel is or how it deals with this issue, but feel > free to share any relevant code here. Even though "make it work" hacks > abound, Eglot promotes separation of responsibilities. Being is core is > great for figuring out exactly where fixes should go. Eglot's business > is LSP. TRAMP accesses remote files. Eglot knows close to nothing > about TRAMP or how it does its file access job. After all the 'T' in > tramp stands for "transparent". >=20 I don't know much about counsel's internals (or Eglot's for that matter), but this comment in the counsel-gtags code seems very relevant: ``` `process-lines' does not support Tramp because it uses `call-process'. Usi= ng `process-file' makes Tramp support auto-magical." ``` https://github.com/emacsmirror/counsel-gtags/blob/1d52eaeffeb60266434d4f741= 6a108ca058fde91/counsel-gtags.el#L337-L338 >From a quick grep it looks like Eglot uses `make-process`, which probably suffers from the same limitations as `call-process` when it comes to Tramp support. J=C3=A9r=C3=B4me From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 05:14:41 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 10:14:41 +0000 Received: from localhost ([127.0.0.1]:49768 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWx0K-0008Ab-UK for submit@debbugs.gnu.org; Tue, 28 Feb 2023 05:14:41 -0500 Received: from mout.gmx.net ([212.227.15.18]:49519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWx0I-0008AO-UL for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 05:14:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677579272; i=michael.albinus@gmx.de; bh=j6TM2rOn+ogn8YK1+6oHwKdrpW32csJBH8L7JglSa70=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=d2XnZ3JUlO2fZkggAw+UcwdT3Z16hpHGgRZh2wNdplM7ILhOkXAGe8gHvsq8NEMXs YYiOJGCXinE1/gDdjAz0DKUOedfD5YPVkkwzu3qg74kVStPiK3v0O0aqEWrjQlYA5G v13MvQt76NOq+K6qkBsGV/ZJrum9jSHkuK7DBYb9AAR4W/pEJ80ZOvjxP+1r0Va8iJ tR6KHFvuFVikXa5ouScq2sqPcpVKvYPIanXXocAINPm4exeiZAOwP8jwefcf0OBDGQ SGy2jjjp2fcOrDfEyAXD0Ofa+udFOUFrpqEYqYhPLaKlL6Nx9GVCbPcII5buwnt5QC aYoPcRG4G6x4g== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N1fis-1oUzap3wnw-0121kb; Tue, 28 Feb 2023 11:14:32 +0100 From: Michael Albinus To: jeberger@free.fr Subject: Re: bug#61748: [informatique] Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: <1618583304.5683560.1677577839048.JavaMail.root@zimbra60-e10.priv.proxad.net> (jeberger@free.fr's message of "Tue, 28 Feb 2023 10:50:39 +0100 (CET)") References: <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <1618583304.5683560.1677577839048.JavaMail.root@zimbra60-e10.priv.proxad.net> Date: Tue, 28 Feb 2023 11:14:29 +0100 Message-ID: <87h6v6m70a.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:FutyDPKPi8Ut1ddGcftufimuxjMAyYcCqAPyYXKUPTSKbnbO7Wi ztBmIkymVaIqk15uGc5jLkAl/JbEFfoFiA0U1Do48RgH1/heWRrvSii4cYyqtRf12W5mvkR OX3bJci5ggkRUtA1Pg87+wAt1BGJ9hQFFdGhxYd+It809i5XXr0pFvuluDVcF7gH00C3p0J DunHFBM2Hb9LyMaN0BoLw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:IGKVCueOMfI=;WAvfgIG+R2ylB9AVMwafJHF2+mg qr7m69P0klOjLF0iLXXMb+ZEbo9mu+OFXU/obVhnRQO6lc+8tRfnV+d1YoI5Yk/Ex1MbaSv0f ILPQzSOUfXqsPu8wvNUPpglYtlQXuEJeCPfWl2HDj4Sixir+xacJcZaBbwnOg4W41HQOjA0HY x+oPI90E15bOizGH3VuptmTJtmGspapvCVd+T9B1BV06iP3w9GOs86NDnySKFfoUibVQZtDRW 2Sstqmvzw4kfkZIaMPfZ42wzFOR8y8Ci0YP7xQtIi5BpK29gZCW1X/AI+3zK7oa70bI8f83Ev 0iPEo5UyledbphRoJ+/O7vCpYdCrv9ow+PUs80bMcv72W+jOJLaExi9A/YsT8EKiZVJ+iKzYB UewwK9eWl+vtOpbxy1KPPow/tLNE0LvWp73OdQdiUPOv7r24Kj6wV/PclIxZ+T9IZS5gVxj4Q 43smY3hhjTyfhzFr3MlqceODo1uQSGJ2+faYEXS1W6vX0DUFYUGedeBdfoyXwKzWuJ25g8fQI Qz2q3JmKlkXv7FVUG5M4sR5fvedxnlKI/D+ItT0fUIbuzMQqp7lcMH3Kjw3Z951S8fICWNPAK 4qWwrTlZJu/MrM6XXTptWY2BmZcng5Eyz5uuXe2Ezm7CyJe1cpiAbfm2elu02xkCqHVY19hsk +iloCFXDmcWMXFcutfvKzHq9AKxiyTYhxXjeriot7ebQ9vrPSjFbKMmcdH1oKe6mAY5yinlcV TrZXZt2brUgS3vtktNH14OFjTDh5F6kK8+Ae8aWjITA2Xeu3qAvAFsrJXLsPGPulLbFVQe6at i6nlxf8ptBs6yzcxOVceOt10jnJNq5bg0pPBUaMk/5w34cH+fy6N5/obsaF6AuAVfIyIpJBqY 5oNfGxB44OMOoPJcXUnjcZXLh2Hv6F2FQF+FbKmu2hDcwwLcJk7SHwyDxDLMyc4E0lgqb2umq r3+kkIbGrhg9ulwYRCBykEVj2as= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= , 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) jeberger@free.fr writes: Hi J=C3=A9r=C3=B4me, > From a quick grep it looks like Eglot uses `make-process`, which probably > suffers from the same limitations as `call-process` when it comes to Tramp > support. Since Emacs 27, make-process supports the keyword :file-handler. If set non-nil, remote processes are supported. > J=C3=A9r=C3=B4me Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 05:28:33 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 10:28:34 +0000 Received: from localhost ([127.0.0.1]:49777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWxDl-0008Vn-KN for submit@debbugs.gnu.org; Tue, 28 Feb 2023 05:28:33 -0500 Received: from mail-ot1-f50.google.com ([209.85.210.50]:42840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWxDg-0008VV-Qr for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 05:28:32 -0500 Received: by mail-ot1-f50.google.com with SMTP id g6-20020a056830308600b0068d4b30536aso5236179ots.9 for <61748@debbugs.gnu.org>; Tue, 28 Feb 2023 02:28:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677580102; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=EtRxSpjUSCTk8S/ZdHj2p9H6tP/dsp6dlUPH1N2GiwI=; b=luVmWaRVyh30nCIGTjt8zM+Clom8n3LlncFD4qlsyB8j1BogH/TnnG9DeAxlXeVm11 CgbJbV+XHwDCk8YkBgqFjSg39TblI4EJdYaH4NrKPFcXTfnEFZKXhfk4jjEgER13/x4r /W0O7OqTQqjh1+06mOeex8gdJQyw/VaHHFaunaIDpCddDacfDShe3peEOrrILVuRZrZ2 VFNSPYwpUl0LdRSK6ZpwSufftcU3BqCA1E0ou9JA+qxtbaVIlkl2tsuTj7r+rgVtOmnQ J7Oh4IIYhBSIyHJJA5WvqFCuw9T98pnkvvL1y6CvFNV+Jk94tnT3NQ151wWnzsT11Lbh xfDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677580102; h=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=EtRxSpjUSCTk8S/ZdHj2p9H6tP/dsp6dlUPH1N2GiwI=; b=OjWB4ia/0yTlSAGEkbcRywFLVBLI8QlcF08I15gzXFsBSK1sUG5JTcjdvNkOgYrw+S 8elx2IwaL9A/itNJxDg5/6b7xemQ5pQDJo95Cg7tjaUhiJUjQgOvZQEHoMUz2WDuy40r nhEgAskVvtO6EopYedhFlc6Tw4JR/77bNswasxL9u2ngYbtPHAgOU6We0VAscKOuQXox jcpBrT9Fcm94UAPz5R8KfHCCM9Nnfgur5k41HqkspP9olrD7s99jufBZgM719dIBxSHM qaSQgCI6NWW9xL6rT0KwIS5h6L+HjX+udBA/BWZocdVFSxuJ2l79fKu220SHTXewS0cm 2+Zw== X-Gm-Message-State: AO0yUKU+QmVul1PJdODBhKD+O/mYsWycEXDfzTRvMSAvJTVtfeJ4GDsn Zfc4sNsNSt4GcMsD9AqKKhmY5qZnzYP10T4NXv8= X-Google-Smtp-Source: AK7set+KGwRZvqdZtP16jf9Pg7wjs2PinE0YpFoMaz9bgWjL3AJUNt/2rZ4m33jCXCsKG53IztbnOZJCQsAR0b1Sdf0= X-Received: by 2002:a9d:6005:0:b0:690:f512:20a with SMTP id h5-20020a9d6005000000b00690f512020amr754222otj.3.1677580102163; Tue, 28 Feb 2023 02:28:22 -0800 (PST) MIME-Version: 1.0 References: <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <1618583304.5683560.1677577839048.JavaMail.root@zimbra60-e10.priv.proxad.net> <87h6v6m70a.fsf@gmx.de> In-Reply-To: <87h6v6m70a.fsf@gmx.de> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Tue, 28 Feb 2023 10:28:11 +0000 Message-ID: Subject: Re: bug#61748: [informatique] Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: Michael Albinus Content-Type: multipart/alternative; boundary="0000000000001261ef05f5c00ee8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000001261ef05f5c00ee8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 28, 2023, 10:14 Michael Albinus wrote: > jeberger@free.fr writes: > > Hi J=C3=A9r=C3=B4me, > > > From a quick grep it looks like Eglot uses `make-process`, which probab= ly > > suffers from the same limitations as `call-process` when it comes to > Tramp > > support. > > Since Emacs 27, make-process supports the keyword :file-handler. If set > non-nil, remote processes are supported. > Yep. And that's exactly what Eglot uses. So I'd say this comment you find in counsel, Jer=C3=B4me, is not the culpri= t. Jo=C3=A3o > --0000000000001261ef05f5c00ee8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Feb 28, 2023, 10:14 Michael Albinus <michael.albinus@gmx.de> wrote:
=
jeberger@free.fr writes:

Hi J=C3=A9r=C3=B4me,

> From a quick grep it looks like Eglot uses `make-process`, which proba= bly
> suffers from the same limitations as `call-process` when it comes to T= ramp
> support.

Since Emacs 27, make-process supports the keyword :file-handler. If set
non-nil, remote processes are supported.

Yep. And that's exactly what Eg= lot uses.=C2=A0

So I'= ;d say this comment you find in counsel, Jer=C3=B4me, is not the culprit.

Jo=C3=A3o


<= div dir=3D"auto">
--0000000000001261ef05f5c00ee8-- From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 07:16:36 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 12:16:36 +0000 Received: from localhost ([127.0.0.1]:49858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWyuK-0003VA-3L for submit@debbugs.gnu.org; Tue, 28 Feb 2023 07:16:36 -0500 Received: from mail-wm1-f42.google.com ([209.85.128.42]:33328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWyuI-0003Uh-DC for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 07:16:35 -0500 Received: by mail-wm1-f42.google.com with SMTP id p23-20020a05600c1d9700b003ead4835046so824625wms.0 for <61748@debbugs.gnu.org>; Tue, 28 Feb 2023 04:16:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677586588; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/DhWmrY6gqBmWRl64uZ8ofi1mmLpbLH4rqQJKsAmH+A=; b=B7Tuezer8PzLyiWU39186fJ5rQzR6/cR9W5iZkrxeSqGgSbe/AU+DJvyUYEroZ+Cln AkI+fNJkq3dc+/OCvODqqgB9SHLGA4Ilb3VFK9+aTXIPFe27dmtnnjwbuIBNNKGHCtm1 /5A15gcee6TRL9gWP4BOLsm9fvOwaYg71BeullP3pnkoqccXrq8SraT+a5gau3/ysgMv kH5DJK+i73P/aJNr33JoD8SJD005m5yvkqPbF7dZFEtKHGvY2OnLxpc1ET+TYQWDqQf0 2sOQvKxYjaSeajFZJT47aaZq+6AYuf9HROTT3MlQwsGHejyGeqDtYBbJJqOOXIIpef24 sgDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677586588; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=/DhWmrY6gqBmWRl64uZ8ofi1mmLpbLH4rqQJKsAmH+A=; b=GdNC05/RVkGMI0VWOOpUwvTpwWwdp0L4cyXTPTVuxRV3EhasDubZDj3WuscjzTd2EV K6l33+5c/dchs2AzAd2Zah84QjkcImTtgAFWDcKojFaqxYX5jBvt9xHnZ5zq8+ydzL6t wExpzUF3YI3gPaXTt2FYjB09KeJ1X0PZFCUlsTyHgCLFSCfBv1gSK0PxGYXxhS3iigPn 6Jcyi2riUSI/yB28AG+33hOJqEQvhwUQWaao8DGoomjh/yYI0NVWTV5p5pn5Cbeg1Gq4 VqigIpm8clGmUb3jz1xMiU3KgwkVMzullpCXmfzq4ZYWXPN4POJYcxaFRIRzqRI8db+j 8fFA== X-Gm-Message-State: AO0yUKWIUAUp+md2riAeP7mRvZr6i4MAKLC3PpDgcfFAh2aERPt3zE1q Lvvrl9cfmTs9tJXXhaS63YJAtv7T6S0= X-Google-Smtp-Source: AK7set/8eUP9XZgRZxxudGmkyL7DKo7BeDjD/xgXfsHCWdsjzS1+1duDki+p0mUQbmsYcBwMrmjoCg== X-Received: by 2002:a05:600c:331b:b0:3e2:6c6:31ba with SMTP id q27-20020a05600c331b00b003e206c631bamr2322357wmp.11.1677586588082; Tue, 28 Feb 2023 04:16:28 -0800 (PST) Received: from krug (87-196-72-142.net.novis.pt. [87.196.72.142]) by smtp.gmail.com with ESMTPSA id z22-20020a1c4c16000000b003e206cc7237sm15174828wmf.24.2023.02.28.04.16.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 04:16:27 -0800 (PST) From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= To: Michael Albinus Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: <87pm9umbar.fsf@gmx.de> (Michael Albinus's message of "Tue, 28 Feb 2023 09:41:48 +0100") References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> <87y1oid5h7.fsf@gmail.com> <87pm9umbar.fsf@gmx.de> Date: Tue, 28 Feb 2023 12:18:22 +0000 Message-ID: <87sfeqq8z5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Michael Albinus writes: > Jo=C3=A3o T=C3=A1vora writes: > > Hi Jo=C3=A3o, > >> ~/Source/Emacs/emacs/src/emacs -Q = \ >> /ssh:sshuser@localhost#2022:$REMOTE_FILE = \ >> --eval '(add-to-list (quote tramp-remote-path) "~/bin")' = \ >> -f eglot > > You must set tramp-remote-path before accessing the remote server. Try th= is: > > ~/Source/Emacs/emacs/src/emacs -Q -l tramp = \ > --eval '(add-to-list (quote tramp-remote-path) "~/bin")' = \ > /ssh:sshuser@localhost#2022:$REMOTE_FILE = \ > -f eglot This works, and this would explain the instability I saw earlier. Thanks. I wonder if it fixes Jer=C3=B4me's problem, too. But IMHO this is a grim pain point for Eglot users expecting things to "just work". After all, there I am in the other side thread singing the praises of Tramp's "transparency", and now it seems that the user be aware of this Tramp implementation detail -- the early binding of tramp-remote-path. Surely we can fix this in Tramp, so that it either considers this variable's value just-in-time, or detects if there were changes to it and reacts accordingly. Can we not? Jo=C3=A3o From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 07:34:23 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 12:34:23 +0000 Received: from localhost ([127.0.0.1]:49867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWzBX-0006Pe-76 for submit@debbugs.gnu.org; Tue, 28 Feb 2023 07:34:23 -0500 Received: from mout.gmx.net ([212.227.17.22]:44071) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWzBV-0006PN-BI for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 07:34:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677587654; i=michael.albinus@gmx.de; bh=s0hoyXZEWvTicXL3OL9fWC4fL2QR7ARMFNMVEIjiIhU=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=q2keS5X57odo4OfaTehh26SLopek7SrPhA4C0us3WHl7HNI2BoHE/33ImJcgy+U8X zgZksc1T8KbPtZNlMfp2z5CF7XaYFn5zGKREkBSSuQzkLtJrpXe7crKHgmHdP8tHME LJXiSHUbReOxsVjinqtX3Cr0IFpGYfdXOIIxw3wvJ1lDhvy4bBiJUzafEhAHiH9nOp Z15VwIlgl5z3lf+I32vCMGdl1ivbBv1Yr6Sr2ZbiaGlDGU6UAZ2MMr5ZJPIGntBg7i X/B5NAv2M5jl6O+fhcNIJGpydF+AeyaLQ5RL5pVi1uJlsoRBquFAxVVFagheXmWFQx OLnavLyRpVl9w== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MMXUN-1pEUYj1vct-00Jaxm; Tue, 28 Feb 2023 13:34:14 +0100 From: Michael Albinus To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: <87sfeqq8z5.fsf@gmail.com> (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vor?= =?utf-8?Q?a=22's?= message of "Tue, 28 Feb 2023 12:18:22 +0000") References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> <87y1oid5h7.fsf@gmail.com> <87pm9umbar.fsf@gmx.de> <87sfeqq8z5.fsf@gmail.com> Date: Tue, 28 Feb 2023 13:34:13 +0100 Message-ID: <87mt4yrmt6.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:AsjpImernIvdpcM+g0h0g3p6VoWoWd1SBckbLWH7hLcRsjYlTWs XQu2/80ofu7ZF5LYXH3R5k43YTzNCH0cMJfNoBgABKzkoaqXCCWq4vPqMUxEXEXHjRYtOry HceZzIzvWeiCQXIgjVoxYl4e4Gah3vRPVicBgF4WY7+VoKYj4kUlIoMATmxgPaZ/2JgO6id YDHdTywSL7XxQ80UrI+ww== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:zmaOD+H7AVU=;0AwCuxTst29Z22Jz4f80tyGSkIX ggMqvc7TlXKoMv7fnxd33H3O2WW9VdcK8PleCxMce1FCa2K99vdOZ7oGGoj19S3To3JpWYVgz z0Ga2Jhljpfl854MViMGL9D146/GpCvmbNR2gPrQNgFhYMmJC2k4ArF9vc3n9bCIfmA5H+D8W STzydGUlU6BcsaqaAn/wLxBfUqGl7tNU2kApltSMzyAc+Jiolk6iW5PFyGWo+sm7t0Y2VykLd gQ9hfSt1ZSBk++cHxyv+eRfcjrBlLrN5qXjYjdCQVw49GkdP6ETP0UAe1MlLWFCOKZF++T2Fo DahMRVcfLysESCirE3npo5+6lq0spNX6S6UbUHWMTfVgT4bYjtwSZSuOkf/HlM4bZPfsR0BVW R08YmRo/iZrxcU80zI/bC7eBAa8bOOK/d56YXETr78p5b3KMCgmCNx1NZ8B1i2gxFxqeGLXl0 uUOdFxtvR0vf3YV7WtXJjJ1jadbCVRN1ZQZPakO6YqScjrxPSHFo6NIHaJc/5bkE7rxAABjXZ jildkcYcTSAFLg7V429mZZn4Y0fUzNJmawZtdOTskVdfZ9wHqMn44Lg+FuCKuL9SfVEDfAszB voKbIbiGvtoGJM/3+W490f2ODfiYhOeSNoIgtnBXKjORYrvPLXMvhVsIuS6YS686XwUC3QOf4 XMrYU8if5mN01flcAaN1l1+N9Nk4AWt2T9eXCzXdPN/5zM8ttBJRtpSq2swqfXnKE7fflXrV4 d0VkiWJBEV3ASu6J56LrQuyY640H4fIZqGtgVe+OOn4r8GvGOOUXDMDRHVpZ2W9oBm42Moszh LpoArm+lUtiaNDiaRmF31b89Z3TQlH2AqfGeSxVVvvzgYZllDO3d6zCGbTJOkEXbTsB73onV9 nE/DuxjeHoOq7Eq3Xp9AycU/cNcDegKHjf9S/L+MYUh2q1H6sk+JhuoCv67eBcW2RgpYqkYBc QrZg4Q== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Jo=C3=A3o T=C3=A1vora writes: Hi Jo=C3=A3o, > But IMHO this is a grim pain point for Eglot users expecting things to > "just work". After all, there I am in the other side thread singing the > praises of Tramp's "transparency", and now it seems that the user be > aware of this Tramp implementation detail -- the early binding of > tramp-remote-path. > > Surely we can fix this in Tramp, so that it either considers this > variable's value just-in-time, or detects if there were changes to it > and reacts accordingly. Can we not? Patches welcome. > Jo=C3=A3o Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 07:44:50 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 12:44:50 +0000 Received: from localhost ([127.0.0.1]:49886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWzLd-0006gk-Rv for submit@debbugs.gnu.org; Tue, 28 Feb 2023 07:44:50 -0500 Received: from mail-wr1-f44.google.com ([209.85.221.44]:45930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWzLb-0006gX-W7 for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 07:44:48 -0500 Received: by mail-wr1-f44.google.com with SMTP id l1so6538704wry.12 for <61748@debbugs.gnu.org>; Tue, 28 Feb 2023 04:44:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677588282; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=E6HFmtfyo547XJQJ9SotIz+tne6+wclNFzAHmuqZ0jc=; b=URfh6JNUHhRpdS4gj2312tS2l9U0HyNZ+A9EmfDXt3bsMwnqDzpGbbdZouaruwuWAC Qv9tKsqWMq9OZnDFUeCwhU0pqkDlGGCrtjCbwU2Cm1x5eamMZU1UyOlxwmnBHZGDFtW8 xBLrq/ijftUCucQP8Y5iKwgqJt75E4VvXK9MjKdYQHlneq7M/3U5Otw6SQ0D6Q1q5MJa D70606eXUiUb/PUCcJjMRRihU409+BfNaJG1LUpXUHv0GNeKJRc10E9VzrArxZOtWxjW ZESYN+Cr21xO95AoYdSH0sLBOL4tOAPJJbNWbFjb0VuqdgZuTGWLxeKyWL6bn+6wQCF4 X8DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677588282; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=E6HFmtfyo547XJQJ9SotIz+tne6+wclNFzAHmuqZ0jc=; b=NAT40alwPgd28g2CdmmJByyNsmBm6c/gUHXPyX2chVsoep1Dy2cLQsWQKGPd3yJm/E IUdSOjHZeX5H6dVjXY9vI9URu7/Bm+nXXKihTTYkLfhaaQnLaaf2b+uvX0Yzneyjcoqz /ne/ZTc15XWwpW+AcQKTK9RQhMoZJ7kQg2USmM9dHrgVrHHCJg8b17aZwtyK2d4cLTKd Cb4haOx/pFJ3pstQMQ5ds2uX71vJ36lq6V29RqGz2xtcgpU6TFRgpBGqd6dD9ZJA/fqQ yEfSpiR7A7yaGKP4f1QWiihtwzmZpE9vDTS7LuNaqkQN3OZSINESqfYLS/s39WrXaCeL azhg== X-Gm-Message-State: AO0yUKXeBrfIcEeOlL/tJlmDP0WRzeRPL3QSCszizjKikS5NiJHsd7Nb EI6HVp+nfsIsktgrC9Y2U1Rz+KCuamQ= X-Google-Smtp-Source: AK7set9NVZSYjdGZYniRqyBjZ6UbQ7CCr7MYOxbIEvGCCqjRpAxgILpFLJYf5BFQDnJCuaKaTOvfow== X-Received: by 2002:a5d:40ca:0:b0:2c7:4ec:8d79 with SMTP id b10-20020a5d40ca000000b002c704ec8d79mr1841530wrq.21.1677588281818; Tue, 28 Feb 2023 04:44:41 -0800 (PST) Received: from krug (87-196-72-142.net.novis.pt. [87.196.72.142]) by smtp.gmail.com with ESMTPSA id bi13-20020a05600c3d8d00b003e204fdb160sm15822156wmb.3.2023.02.28.04.44.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 04:44:41 -0800 (PST) From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= To: Michael Albinus Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: <87mt4yrmt6.fsf@gmx.de> (Michael Albinus's message of "Tue, 28 Feb 2023 13:34:13 +0100") References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> <87y1oid5h7.fsf@gmail.com> <87pm9umbar.fsf@gmx.de> <87sfeqq8z5.fsf@gmail.com> <87mt4yrmt6.fsf@gmx.de> Date: Tue, 28 Feb 2023 12:46:35 +0000 Message-ID: <87356qq7o4.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Michael Albinus writes: >> Surely we can fix this in Tramp, so that it either considers this >> variable's value just-in-time, or detects if there were changes to it >> and reacts accordingly. Can we not? > > Patches welcome. Great. I'd love to help, but I'm not familiar with how Tramp uses this variable to "know" or set a remote path so that e.g. executable-find finds it. Do you think it requires re-starting the Tramp connection for that file? Or can we just tell the current connection: "hey, refresh your remote PATH, because the variable has changed?" Jo=C3=A3o From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 08:05:51 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 13:05:51 +0000 Received: from localhost ([127.0.0.1]:49916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWzfz-0007KS-CL for submit@debbugs.gnu.org; Tue, 28 Feb 2023 08:05:51 -0500 Received: from mout.gmx.net ([212.227.17.21]:56049) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWzfw-0007KD-5s for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 08:05:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677589541; i=michael.albinus@gmx.de; bh=NEJTIvXwq1elrJiCxY2LkTvP4xS4b9SHH8Hu5O9VK9E=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=XswUSzc/IVw5fu5ckqXe2dhrYpGB76Tbi0rFX+er+KTdoITyg5S1px8e7ikoyOJ4P 7JIfNC6TPsYXw50wuTIGf5l8yYzz/S6s9ftopH8zWrDCHsa2lYZiUt3XRK9NM1/SbH Jk8yUgPXuHgt+7HYwDrdEfARUOaBUcKi+USKzm0g+A+aHgLXtXFPyjnkdDIrbooFE5 oIL2F4v6FnGNfSQyjk5ye+lQMx04OEe8oUfEjFxnc5H+eZB+P7YxiZlkf2yzFRO7ex h3bbjQ9PKp4bc0saiguDQyTFGHzvsRzheWPVdjgCWFwo3fjRCXYlQLCi1U4xjExVAl 8aDqbWgt63h5Q== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1ML9uU-1pFsWs3lAo-00IDZx; Tue, 28 Feb 2023 14:05:40 +0100 From: Michael Albinus To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: <87356qq7o4.fsf@gmail.com> (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vor?= =?utf-8?Q?a=22's?= message of "Tue, 28 Feb 2023 12:46:35 +0000") References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> <87y1oid5h7.fsf@gmail.com> <87pm9umbar.fsf@gmx.de> <87sfeqq8z5.fsf@gmail.com> <87mt4yrmt6.fsf@gmx.de> <87356qq7o4.fsf@gmail.com> Date: Tue, 28 Feb 2023 14:05:40 +0100 Message-ID: <87edqarlcr.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:rb61Uinc1yg4EVTDDoXZEM1FPuz7iviZTDvggkQcRMBg2qqm+jC iqWBtdDSazUWmOY6Wp/jYIxXq1rAlNUI2S7Z85KKOSFkqNGGGM57vHxzgwN512livHzrtWr EZI+xuOQ+q2NTGrjYvG+8ZcY98mSnDym7bI3F6H248X0zsKOEUbrhSs77/tSkS8ZyNzF+Xx qvh7UJkeui2nsrmLocyKw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:WA2eLTW4Cvg=;MoZuZCva0HroQkDPOv2z5CDKVmB CBqns2cuiQXrp9FmAysPcmaIJMR9x4eMkmqZE/FHQ08VOF/rD2Q+Q8F2xN7eUp2fRaB7fr/yt ZHCbhbnTgcZ+O3A5ySDJKlJojTPtXdOtd8hZNYxP73otxz4LT6vxdRpjijAkmp0EP/5l263Pi s0sWwi7H/2ASJ+Ajp6m71Ki/WHjfyPXYrt6j16e1TzE3cZwRD2LnAiG9IrwiCa3PVgXJe78rO zBcp5Cky0c0o7Ow/oLhg0UD8anFIM5Nr8C6YV8XWLbHGC2Cn5kKqnSoHhDQgq05Gq0UyheQth wwa4PujREqULxnDInQ5lDyKLUYJyj8IpruGmJm12A4SOl57/sAUVfU+cg97Olu14aPqkMWrQV w2PgSfRgM43VU1I4d0VCcIv/5K0efS12FjfXzv5gHinKYtpE6Dj02aM4411kReTDew5tfiB3b ps0XxX+7BwKp7DAKTAjetqA8QrIDLqNAc2xVKbwNtj861biaVZRzB9lYSaN5GgN7XlW03JdI+ l9uDTsBxzZCF33gTPwmmDt89/e1k4hQyvq2nkt/CZmojHvKLGHFNyh6GDzSEZYS57RFhhjHcV vFTEBzsdArHU+iAW4jb4zXFOIWtcgFhfk1Q4jtso04wmmWRhMUhjhv2qkpHZ2FesjxRjL/HZv 8bJkEFtpDtSN7A/Y9hC7+o1C+zKyG0Xo+M3UpHmpHsppsqQO7thR7RJ34k2gelD16fgakGBxH NUUzrOZf13x+it/nWc9DjS9T0n8o7gT8qRlnmK/Zdw6Zml+xlVOE8qGx3KsxaRhsitfZrJtCe fE91uFXJR+37CdNO/W7UYFnGY5G9qM41TmeioHrdjXM0hcaXI6wDdybdTvBBA6TbZZNJ2by60 Zy6njympTK9GF23onJDrdl8rkVIgAnNklCaWyh0qB6GmXUB/Ay+Hn0VSpmw9EA1Dwru3rtRO9 iXO7TEJOPK+wl7XCTcJvP/U0JFk= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Jo=C3=A3o T=C3=A1vora writes: Hi Jo=C3=A3o, >>> Surely we can fix this in Tramp, so that it either considers this >>> variable's value just-in-time, or detects if there were changes to it >>> and reacts accordingly. Can we not? >> >> Patches welcome. > > Great. I'd love to help, but I'm not familiar with how Tramp uses this > variable to "know" or set a remote path so that e.g. executable-find > finds it. > > Do you think it requires re-starting the Tramp connection for that file? > Or can we just tell the current connection: "hey, refresh your remote > PATH, because the variable has changed?" Anything goes. But I don't see why this is needed. A proper Tramp configuration in time is all what you need. People are familiar with this for decades. > Jo=C3=A3o Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 08:47:42 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 13:47:42 +0000 Received: from localhost ([127.0.0.1]:49959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX0KT-0008VG-KG for submit@debbugs.gnu.org; Tue, 28 Feb 2023 08:47:42 -0500 Received: from mail-ot1-f48.google.com ([209.85.210.48]:45607) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX0KR-0008Uw-DS for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 08:47:39 -0500 Received: by mail-ot1-f48.google.com with SMTP id v1-20020a9d6041000000b0068d4a8a8d2dso5554010otj.12 for <61748@debbugs.gnu.org>; Tue, 28 Feb 2023 05:47:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677592053; 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=LS1Z0r69JWy/6oY7oS7UWsGyG2aROjJu3x/LYmqTthM=; b=letyxUIkm2SEWps088L04xO4nZiHfbjIjgi0OLnlJqIQoTDOSP2RUpE6k2XX5+UL+W JDqP4egsGM+BSV+jhhr7RpwuKpRfmUGHcpWj1RYCmRwmXEE4yVX3J43+uSofItLfLGN/ qhBgLGpK0+/i9St516mWy4M1gIKm5Bq7RQ8M+6j1Q0zcVU+rGPF/f5cvO/QjxmKiX3Jl G6Paa4UGfO59cg2p7ZdQ/bKtr8JdDSoH8pm6hrVTc9BpGBznFSl9wd5K+/I6K6NEzKF0 hmI645dGHbL7kPWiGqqbT7RfxUMLzb5abK6/DcHFYVAE6BjcrhC28dGhjhNxNTDqbDRB TaKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677592053; 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=LS1Z0r69JWy/6oY7oS7UWsGyG2aROjJu3x/LYmqTthM=; b=wPE8gHqZod+RpuKSFWeebXvBqXCvKin2I5j9VRkaJC5Fa88612eLmhqf7iJhN0kU05 AHYkbZX5NXQiLbOYFMs8xaQo2COOIq3MUc3L4KDZaBdsOaBlLul1I9yxBJSTgqyrZfku B1bIlbn+sXv6tzr0kPAixehjd63WAycw7be2yI/q/OxELjFyh9yps9Xyorpzudj69MyU x8kV5PMAipZrBTJd47ECkMEdXEpVJb3DCFMeuvnkyKh1ZDoZkJMw05EIfcfazmkGBUmY mVG8QmNI/8+sZxQRYMQ4OBMWVznRR3h3sDSEM8jnyt9iaNEsF2bmgCtMVBXg2UbgHJB1 NggQ== X-Gm-Message-State: AO0yUKU4/Eqg98KDkpX5yKWuJPYei9da+n/wO/aUpixLfdtDG0HAsSes 9FSHWfS6Z2u1QqMpP8KwxbERXG/8Bu8Why3XJqo= X-Google-Smtp-Source: AK7set+v6VdWXkVBy6eVameV4RLfALnChxNaI9ArlFMpiEg4Pz80JXRDjeBuZ4I8MS20TJcpL93m+Du3hcIxfsdWJ78= X-Received: by 2002:a05:6830:39f6:b0:690:c81f:d459 with SMTP id bt54-20020a05683039f600b00690c81fd459mr941095otb.3.1677592053748; Tue, 28 Feb 2023 05:47:33 -0800 (PST) MIME-Version: 1.0 References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> <87y1oid5h7.fsf@gmail.com> <87pm9umbar.fsf@gmx.de> <87sfeqq8z5.fsf@gmail.com> <87mt4yrmt6.fsf@gmx.de> <87356qq7o4.fsf@gmail.com> <87edqarlcr.fsf@gmx.de> In-Reply-To: <87edqarlcr.fsf@gmx.de> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Tue, 28 Feb 2023 13:47:22 +0000 Message-ID: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: Michael Albinus Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, Feb 28, 2023 at 1:05=E2=80=AFPM Michael Albinus wrote: > > Jo=C3=A3o T=C3=A1vora writes: > > Hi Jo=C3=A3o, > > >>> Surely we can fix this in Tramp, so that it either considers this > >>> variable's value just-in-time, or detects if there were changes to it > >>> and reacts accordingly. Can we not? > >> Patches welcome. > > Great. I'd love to help, but I'm not familiar with how Tramp uses this > > variable to "know" or set a remote path so that e.g. executable-find > > finds it. > > > > Do you think it requires re-starting the Tramp connection for that file= ? > > Or can we just tell the current connection: "hey, refresh your remote > > PATH, because the variable has changed?" > Anything goes. But I don't see why this is needed. A proper Tramp > configuration in time is all what you need. People are familiar with > this for decades. Michael, it's become evident that people are using Tramp without realizing that they are using Tramp. I think this is great, and you should be quite proud. The "transparent" works! ... mostly If it's not quite perfect let's improve on it. This is one of those point= s. In this and in the other and yet in the other decade , I've always appreciated when I don't need to restart my restart my Emacs (ugh) because I worry about when variable values I'm experimenting with are read. This is a Lisp machine after all :-) At the very least, the documentation of tramp-remote-path should state that the variable doesn't take immediate effect and that something must be done (is it really restarting Emacs, or is there some M-x tramp-cleanup-* thing that has to be done?) So, if "anything goes", is such a minimal docstring patch acceptable? Jo=C3=A3o From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 08:59:36 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 13:59:37 +0000 Received: from localhost ([127.0.0.1]:49971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX0W0-0000Ri-Ii for submit@debbugs.gnu.org; Tue, 28 Feb 2023 08:59:36 -0500 Received: from smtp4-g21.free.fr ([212.27.42.4]:51660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX0Vy-0000RW-0u for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 08:59:34 -0500 Received: from zimbra60-e10.priv.proxad.net (unknown [172.20.243.210]) by smtp4-g21.free.fr (Postfix) with ESMTP id 26A0219F591; Tue, 28 Feb 2023 14:59:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1677592772; bh=CdUtTErOUa65CpnYOkLGdBD+io5e4+/LHPiZai4C02s=; h=Date:From:To:Cc:In-Reply-To:Subject:From; b=JaektmjZ/njmv42/CtaviU26BNxMNhX8zy8ak5U8awob38VWM6lXg7GlHsqLZfiC0 FksYuFkx7QJ4I30fmnza38V7DenO5i7L+8OvJa1cjelkByuGeKDE8Ws9ToagtjeZcG /DOyN3/B5GMr8y2X5wO+T0lwnKyHCAlWN+NPH75gSt7yoGDMy6KybZ0CW1dJMOlNeH ItSrDgxK3tiEsdX7MF6nYCnqn38GO+3Zgn6dsPRiSTY6EkdZwIMWo7YVRwmfWDvvhw 5TRX0rcVTch8xJbYzEmO17Ap2PyKxnDSgSdUniT48ciW4e+DyzUpWgxFJc/tuT1Vui 1v7MeS07c7FEA== Date: Tue, 28 Feb 2023 14:59:32 +0100 (CET) From: jeberger@free.fr To: =?utf-8?Q?Jo=C3=A3o_T=C3=A1vora?= Message-ID: <75486564.6945596.1677592772065.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: <87sfeqq8z5.fsf@gmail.com> Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [193.240.154.120] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - NAV6 (Win)/7.2.0-GA2598) X-Authenticated-User: jeberger@free.fr X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: Michael Albinus , 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jo=C3=A3o T=C3=A1vora writes: > Michael Albinus writes: >=20 > > You must set tramp-remote-path before accessing the remote server. > > Try this: > > > > ~/Source/Emacs/emacs/src/emacs -Q -l tramp > > \ > > --eval '(add-to-list (quote tramp-remote-path) "~/bin")' > > \ > > /ssh:sshuser@localhost#2022:$REMOTE_FILE > > \ > > -f eglot >=20 > This works, and this would explain the instability I saw earlier. > Thanks. I wonder if it fixes Jer=C3=B4me's problem, too. >=20 No I've already got it setup as part of my config before I ever access Tramp, which seems only logical: first configure the environment, then try to use it. Just to be clear, which problem are we talking about here? There were two related problems in my report: 1. When told that the language server is `rust-analyzer`, Eglot fails to launch it. This is caused by the hardcoded `"sh" "-c"` in `eglot--cmd` and is fixed by using `(or shell-file-name "sh") (or shell-command-switch "-c")`, possibly with an added `with-connection-local-variables` as per Michael's mail. Or maybe by removing the whole `eglot--cmd` function since from the comment it looks like it only exists to call `stty raw` for remote files, and Eglot is the only package that tries to do that. This can only be fixed in Eglot since that's where it's hardcoded. 2. Eglot doesn't detect `rust-analyzer` automatically. This could be related to the fact that `rust-analyzer` is in a non-standard path or to some mix-up between the local and remote environments (e.g. if Eglot tries to detect the server on the local PC even though it would need the remote one), or something else altogether. It is not fixed by the abovementioned changes.=20 I have no idea how Eglot tries to determine which server it should use, and so no idea where to start looking for a solution. J=C3=A9r=C3=B4me From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 09:10:50 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 14:10:50 +0000 Received: from localhost ([127.0.0.1]:49980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX0gs-0000kw-8Q for submit@debbugs.gnu.org; Tue, 28 Feb 2023 09:10:50 -0500 Received: from mout.gmx.net ([212.227.17.22]:53219) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX0gq-0000ka-4y for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 09:10:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677593441; i=michael.albinus@gmx.de; bh=TGSy07NiBz171NjWl7qOn8LYgNtVmgvEeVo2UhIrC7I=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=SDWgD0lDS8ouXe9n/+CnqQOlarc/pTiGpyFqVg6Ojyg5B36qKMFdoJyplq1Q2+J1H NcEYpY4fz4Au8tT2F9oqK7RfTJJ1P5F/mkxB5VRBkJRV2E0mUVdSj7/aqBwNfMdSJt nlLhL43U1UXkcL0VFVAY+ofo2/enZ2ldI3mDYcpaobd7qZrxHWDUQbUeAMroQ9bsKm EMXFg8d/3ngFzjZfQ0pM7uwONp3YwolKFD6+fLYHmAOj3UAgBBozBJMKq4/y8cFPn4 Vxx1U3GXWYJ2kxOLGu5IZouZjvSzLdi8OvAhIUznITUPMgXgTsWH2IeRPFoXgS9lF+ CDismPNb82ksA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Msq6C-1oeDBA3FJA-00tBlv; Tue, 28 Feb 2023 15:10:40 +0100 From: Michael Albinus To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Tue, 28 Feb 2023 13:47:22 +0000") References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> <87y1oid5h7.fsf@gmail.com> <87pm9umbar.fsf@gmx.de> <87sfeqq8z5.fsf@gmail.com> <87mt4yrmt6.fsf@gmx.de> <87356qq7o4.fsf@gmail.com> <87edqarlcr.fsf@gmx.de> Date: Tue, 28 Feb 2023 15:10:39 +0100 Message-ID: <87bkldswww.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:gQ4rfIAk6Uq15CEZCtHbqjNQua2nQiLSnuEMlzZIhdhk4J8hcgR hFMEbQthSIamCpGjdmgnbJ83/lR052Lqv53C3nZnERnQtQQ5vGCEg7qyAAG4P3k9eMGr0Zk CJaNPtpIwBbvZtX4cbL9tcMnXqA/zDGFDiYuLUBJRlI5xDXZuprIecxd2N01OOuZeUT50Hy pNUj38nXZQxyaKPhet9WQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:OfH1hjtDb/A=;Nmp5tg1zHm6NkQUG7uYe8S2iX8z GBTiU06ZbMWyMlElCDySuqOYTebE5GqCRJ5rTLCGeeJUPyfI4hFydeu4mw6rsGCD3aFBX+qil R5+eTRY5Esp94g+6QhRZxI101ivcN244DwTOYBKzG+PqQI98S12+ym+sAxpT796XBm2jjZBhH 8jVNFylH7mTMe3qqQ70awPKDEXqDTc9tUmlq5h4Tzg6oW0Be5gOGWO2pa7l7LXXktDpxLvff7 v46/uohHG7p0ifz3bPq8FabzkbNeqLyFH1CagEute8PlEM+hJ8p7QJmM4kHmin5XxZN/OVv+W hg/YDm3OAvxrHDVq3WSXc9QnDlNeUpj6nO+buYnRZqJ8YvjUd3JkGX5OzAitUfovMbKr8a2P5 dQQ7r6UYJdnN6HFld0+cfKe/z+DeTmFz7AZLHC3IMOjXlmzz95iXpqwtY90uH7o3G0QO7Ns7Q ToUPSGqg72/mtznGZ/QxkCfok+EfJpAl/pbZ8EECZ6lo8NTc842DRvT9rDr1rr5pq+QF1GP6C oWL3DLGN7mBJJLTB7L0nUV/jqR8WdL4FFPTq5cTzW/CCQmmHK05PM4IV9y8T25c5XnepXDcv7 3x/A15zuilDtOE3brTgeUgNrdNihu0wTxp4P6OGrNoLENKDZjfF3SUrS8OWH43JIRH1h+W/IA MTDY83HmOB8gD7kOKUE1mDWFSVrCv2gml2FD66H4lTWWE8mTyeIpyRCxFQoph31T2rfpmRi+F 2eCvRkMv/bXwT9VZKl1RCZZtvOJratyMz3PdYBM87H4AkkN6SY8vw9YHtAcV3Bp2J12Zkx77x iOpp5gMbbl4Xf8UVGtPV6zwhU/ba5ve6F3/RR9NArR7WNVje+OjAqbE6jxB4JRSHoBSwNhBGp WmxfEuhgXbAMyKj2bP6LwoRrso5tHtVrEGJ3FK3EhCFHkyMLzrRPABQEjQMQrUUWWWoKg3Z/x yQhwep9XB88wdeOWhJM0+g80oNA= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Jo=C3=A3o T=C3=A1vora writes: Hi Jo=C3=A3o, > At the very least, the documentation of tramp-remote-path should > state that the variable doesn't take immediate effect and that > something must be done (is it really restarting Emacs, or is there > some M-x tramp-cleanup-* thing that has to be done?) > > So, if "anything goes", is such a minimal docstring patch > acceptable? Sure. RTFM :-) --8<---------------cut here---------------start------------->8--- When remote search paths are changed, local TRAMP caches must be recomputed. To force TRAMP to recompute afresh, call =E2=80=98M-x tramp-cleanup-this-connection =E2=80=99 or friends (*note Cleanup remo= te connections::). --8<---------------cut here---------------end--------------->8--- See also the whole discussion at (info "(tramp) Remote programs") I'm open for proposals to improve the text. > Jo=C3=A3o Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 09:24:20 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 14:24:20 +0000 Received: from localhost ([127.0.0.1]:49994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX0tw-000175-B4 for submit@debbugs.gnu.org; Tue, 28 Feb 2023 09:24:20 -0500 Received: from mail-oi1-f176.google.com ([209.85.167.176]:33725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX0tt-00016n-Ro for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 09:24:18 -0500 Received: by mail-oi1-f176.google.com with SMTP id r40so7111323oiw.0 for <61748@debbugs.gnu.org>; Tue, 28 Feb 2023 06:24:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677594252; 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=NTKR+jiRWx1phbT9StsuS+xURcnE+VfAVT6JFWyM6Jk=; b=MsVTZ569rdpPE4e3YhymK/dEhgRcQdER3tSxqH+oBu+y3SFVFCFgbT/zO+Igcm1mvB nxJZCLvZH0NgHjGusjHbEG5hPPGA1jdeIsaWKfMehEzJL218zovu1qKjF5FhCpehN7VH zPP/TnWivm7rPhvyxspZiTM7eGqnTVDHeC21wWzX0em3HwIXzh8fl3WoS4PyFf0+PEuG azadgboEjLchcQmJzZhUes5BTPcOsj3waPObPWlVTOk57BYNnZfOTBE0RJq2O/RpssUS Tq6uRtsMYkWhNfI55MZMDdkYi0BB8JqglU0m8ZKQSWKyHA5PhMl/IFIYr7ZGhSlSCZ0U FE1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677594252; 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=NTKR+jiRWx1phbT9StsuS+xURcnE+VfAVT6JFWyM6Jk=; b=df5VyqjRHHi+sGaE+mL5VZwCLHLs/nc9YcUjeQF5Qiq+QveBnPThv7uN2P+EWGa2vm ZkT3BIT21j353P9FYUF83E//RoGgNhg0Dk9U90QdMnYVRZKI1FMWkWjp9p/xYzDagc9U o7JcNwy6TV+t+CsoGL2+ZoXE6gTrKqrKBQj6Eh/P1zIPys0yvvg8WMjnNBNVo+oECB66 BS+nDFAyOAD45nfgBy2pozpCEtE3ehO+YgoMFDsZrPtUo+b3TszZt4EDUUxvmtY+U0BN 5W83Gg2t3geo7i1/KZX6FwFT0SFRKd6P3kE0HgHt7SXcahwLScX+Nek78PGojb+tm/81 8/Aw== X-Gm-Message-State: AO0yUKU0ls771CLL4JjxzKBv/xxywVbl5WNrOALg01VTtfE/uL7XZxMs pAeKshSD0elzUhG3GE7KqHAoMauUE3yTkNIayxo= X-Google-Smtp-Source: AK7set+kaQRiX2ENLux4MYdftHM6x4RM1P/BEQnY489oMIHFVzSpiAnJK/Ym+XdwLvol1NPF3/Ezm2rRDhryi3RBXBg= X-Received: by 2002:a05:6808:16:b0:384:2019:c201 with SMTP id u22-20020a056808001600b003842019c201mr994158oic.8.1677594252030; Tue, 28 Feb 2023 06:24:12 -0800 (PST) MIME-Version: 1.0 References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> <87y1oid5h7.fsf@gmail.com> <87pm9umbar.fsf@gmx.de> <87sfeqq8z5.fsf@gmail.com> <87mt4yrmt6.fsf@gmx.de> <87356qq7o4.fsf@gmail.com> <87edqarlcr.fsf@gmx.de> <87bkldswww.fsf@gmx.de> In-Reply-To: <87bkldswww.fsf@gmx.de> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Tue, 28 Feb 2023 14:24:01 +0000 Message-ID: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: Michael Albinus Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, Feb 28, 2023 at 2:10=E2=80=AFPM Michael Albinus wrote: > > Jo=C3=A3o T=C3=A1vora writes: > > Hi Jo=C3=A3o, > > > At the very least, the documentation of tramp-remote-path should > > state that the variable doesn't take immediate effect and that > > something must be done (is it really restarting Emacs, or is there > > some M-x tramp-cleanup-* thing that has to be done?) > > > > So, if "anything goes", is such a minimal docstring patch > > acceptable? > > Sure. RTFM :-) I didn't complain about the manual. I complained about the variable docstring, which is what people read when changing a variable's value. If you don't think there's a shortcoming there feel free to let me know and I won't waste my time. I read your "patches welcome" as meaning that you welcomed patches to fix said shortcoming. If you don't welcome patches, say "patches not welcome" instead. Jo=C3=A3o From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 09:26:05 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 14:26:05 +0000 Received: from localhost ([127.0.0.1]:50005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX0vd-0001AF-1n for submit@debbugs.gnu.org; Tue, 28 Feb 2023 09:26:05 -0500 Received: from mail-oa1-f44.google.com ([209.85.160.44]:38611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX0va-00019v-I5 for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 09:26:03 -0500 Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-1720433ba75so11067421fac.5 for <61748@debbugs.gnu.org>; Tue, 28 Feb 2023 06:26:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677594357; 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=iZHkk2mnXDxx+4EpJo84mGX1iYCa3O/v6/R3kprEIfI=; b=PFhB7HKyDnENtJjx2rlxkmTBJAmPp2ewPkZH5iXdhbaJVPySpYKmZDDWHjrxRYKolj alQKL2kuL53DM423zcetmqhSoA28VAcloM4NNWIVS7xfnBmj1Tjd05PbP17O1ZTOZj6n tzkLvcDkQLyUFpK1Vp89/Bg5vGf+tMy34Bxuh6eoi/JajVi3H+ndK+WWyus4BywgGZ9v E3riQ0ArHnRuvk+OKVovTz57iRk4dy4SjvEByRXbVXUfzw29crK8KZnU2Umw+fwahm9M TWFyX4WcBTJImnjQY+rMfUVNJI+5U6JtZ3s5XXxxGAIcfo5U9U+GP+hXRrqJcKxGTvKT W4gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677594357; 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=iZHkk2mnXDxx+4EpJo84mGX1iYCa3O/v6/R3kprEIfI=; b=XCRY8QTDssWPZGe9kWbsiCHKqfw7vuEjdAWrWll7wUlMgRSWfxzfyb0aCjl4K7wlzj 8LS/EFBPO2DiftULvYTEAN0cw774yiDeHKVh3IIFf7DeGgML+Xx5GYZV87p5V9O7qHUY RkEdSDOYj7uMpr4hXaXTw97l5tzrCcg2LqH7TGR5P8TSNsOU4KT7Y6UKoeMirVi8mW+f 4ar9POTbueFJJvaEtp0CZyLraaFJxtHsbPzkAzfFhP/q181uUeTpdvZWacc9H9m1jxwS PE12BQHbO316gAnERuWe9nZoZaG2KN2dPz+c/GS+TvldlDaiMEePvFlM/u4ysPZbTQ6m MkNw== X-Gm-Message-State: AO0yUKW5Zc6yuWvpGBoXNIRfwrpMmG21bdQ/0ogXTRklLnc9lumRIEA+ Se6n215x73BFLxjJRkRBsiAZA3SIOCS6yqQW7vE= X-Google-Smtp-Source: AK7set/RSW93Bo7fWUszuShhbz9ONZs3ZQqLC0f50DLs3S48KqeQf247P6EdclophRGUShB/o9pz6PXf0DJlcRRo1GI= X-Received: by 2002:a05:6870:f80e:b0:169:ce1c:d7c2 with SMTP id fr14-20020a056870f80e00b00169ce1cd7c2mr5647466oab.5.1677594355972; Tue, 28 Feb 2023 06:25:55 -0800 (PST) MIME-Version: 1.0 References: <87sfeqq8z5.fsf@gmail.com> <75486564.6945596.1677592772065.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: <75486564.6945596.1677592772065.JavaMail.root@zimbra60-e10.priv.proxad.net> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Tue, 28 Feb 2023 14:25:45 +0000 Message-ID: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: jeberger@free.fr Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: Michael Albinus , 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, Feb 28, 2023 at 1:59=E2=80=AFPM wrote: > > This works, and this would explain the instability I saw earlier. > > Thanks. I wonder if it fixes Jer=C3=B4me's problem, too. > No I've already got it setup as part of my config before I ever access > Tramp, which seems only logical: first configure the environment, then > try to use it. It may seem logical to you but since you didn't state this in your original recipe, it's only logical that I wondered. For me, a change to a variable should take effect immediately, no reboots or restarts. If you're satisfied with less, suit yourself (maybe you're on M$ windows?). > Just to be clear, which problem are we talking about here? The one that I described fully with a full reproduction recipe, a few messages ago. It seemed very similar to your problem, so I didn't think it was worth a separate bug report. > There were two related problems in my report: > > 1. When told that the language server is `rust-analyzer`, Eglot fails > to launch it. This is caused by the hardcoded `"sh" "-c"` in > `eglot--cmd` and is fixed by using `(or shell-file-name "sh") > (or shell-command-switch "-c")`, possibly with an added > `with-connection-local-variables` as per Michael's mail. > Or maybe by removing the whole `eglot--cmd` function since from > the comment it looks like it only exists to call `stty raw` for > remote files, and Eglot is the only package that tries to do that. > This can only be fixed in Eglot since that's where it's hardcoded. Patches welcome. Patches that remove code and don't break anything even more welcome. The patch you sent is insufficient, by your own admission. And Eli didn't like it either. > 2. Eglot doesn't detect `rust-analyzer` automatically. This could be > related to the fact that `rust-analyzer` is in a non-standard path > or to some mix-up between the local and remote environments (e.g. > if Eglot tries to detect the server on the local PC even though it > would need the remote one), or something else altogether. It is not > fixed by the abovementioned changes. > I have no idea how Eglot tries to determine which server it should > use, and so no idea where to start looking for a solution. Eglot uses (executable-find "rust-analyzer" t). The second argument asks to consider the remote path, but sometimes that path, which is configured by tramp-remote-path isn't considered immediately. Michael clarified this and I expressed the opinion that it is shortcoming of Tramp. Jo=C3=A3o From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 09:45:41 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 14:45:41 +0000 Received: from localhost ([127.0.0.1]:50039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1Eb-0001fj-Cu for submit@debbugs.gnu.org; Tue, 28 Feb 2023 09:45:41 -0500 Received: from mout.gmx.net ([212.227.17.20]:50805) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1EZ-0001fX-AP for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 09:45:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677595532; i=michael.albinus@gmx.de; bh=1pCVt3Y+RdLRhZUDXRu5yVtZcKhdlikcbZFHPysB9Mc=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=pJeLCNbmo9p7hUXOunvTnc81hiAMFim5yPPW4N56zAmQ4yzIJnSp6+C0lUuYdsqMn AVm0QKdLgQXBhcne75gOsQp7zPecfIxeh+ATdJz+d7z1POHgLAAD6xVgNqBqlG8yVc FX1ZQcqrxeHiqRQJn8zJNt62EVesl5p5CMnFMK4LuPqndrARyrnI3k1ooVJ0he9rtD jNln5UszHQ+SX4BW80t+O52MSexVdSmuGWeKg1npBvvtlEdPjx1kv1/uN/U5Zvp2r4 t5BLBmdBJrXVlj5p0VoFPZh/oQsawIwFl0eBKOwLXS6ouzbo3kzpBXakhl5fVQVTNT 9IxUO7QDe5xVg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MDhlf-1pMsd23uch-00Aop8; Tue, 28 Feb 2023 15:45:32 +0100 From: Michael Albinus To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Tue, 28 Feb 2023 14:24:01 +0000") References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> <87y1oid5h7.fsf@gmail.com> <87pm9umbar.fsf@gmx.de> <87sfeqq8z5.fsf@gmail.com> <87mt4yrmt6.fsf@gmx.de> <87356qq7o4.fsf@gmail.com> <87edqarlcr.fsf@gmx.de> <87bkldswww.fsf@gmx.de> Date: Tue, 28 Feb 2023 15:45:29 +0100 Message-ID: <87y1ohdf1y.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:U5j1Q3vVTjc5b9UH1UB8f1vtmIAhAvllXxff52sRGnnAdTExubE FfAFA6UkZpJWt6xDDwZ8eNpEwamc/3rOh/pPlBN4+PmAtppHNKSqw9GCQ47PH9qm9cooUDc jGeweTX4ov+AtRFT4NnLTluDD1xovP3UqCnp2Q3B5msVxI/cVRWs5KibTJOTeUxRsPvGWxO 1ytgA5Oa03bTYy7r2YILg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:2yOu0Jj+vDE=;qRS4DcLUoTvmzQyS3svUkIDMAcR JxHOXjwZ4ziNbfoVjcuynZuXIyrWhM245vgl2ylTVMRG8oTXgfQXzw7SjQeW2E7TkbSzvhKxE +D+RVqwXlAh9mJYdsY+TzUJwAmSATBFneerrKWxIfRH5SLXgtCQ+lexQ3SlKcZFU/Mx9uvDkk eijEBjcIq6H2oV7nb+2Y/VVwSfhjiA+vdiQUWh1rUSPqgQL7lJM0pAzI0PbPY2MdDJA4RJ98e 2hYo3BbYowHxTioIuACP5ioe790jNNDJ3GCRADOYFT0Ov0aSuuPzVTZVndKmFm9EyppHN3zBg 9V5hFxRPbqP06lAu/VA3HgSMTU8J24zTsO/qaE8FIBI9P6LA2n6HlS6I5ZOaIwghSHuCWOR8o 3pKRsMWD1ioMyAibCP/Wy1ltRK0mwtnBAgIb2lRdEFxs+MHR7xLa0qAQeQOqfTRPwGisk1geP sMHnpwK+FEo9DgtXkWP3mfNlnhgBPahTcOvU48fA0HqsECPrVWZc6dcoQew2QufrSqxxFjrra 08MWAm7055R6E2dnkDvWXIRmWIHccUZWY8fvpcUS9W2ZPVk2FTlrOjp11P5/osF4PzWM01RTR 4UDRkZPRLk+V5KaB8b64jXRUfKxZgYhN8rVih435yCwQpR9T+dWzbYDcCvQV7T7/3VijpHTXv KUOp3xV0QqaHXzLWlXXehFoaW8uozNKgupMN026geil70pxufezWg8/lVA7KBcSsCtBpHRL0z pUPqqVtABH71hlC3AswI8gDy//JzRdg9jHN4JF2mOy5E4YHVqYmlx0WHXWe0lsDbR2uTIrQ7L Py2XFBYagRvgSavBMO5n1aaRFEZH97c3gxRcwNJbSVjsoswof8OmuMDcTuqnbufBC8uirg87r bpDcbjx8NpPhGP0MkvDuJbBj0w1wlxGlcXQfMi9ttFq2cux8xgaEtaVZ254E1fJly3tra3avf YDmLSZUVWg0zZINEw5BK6v8C80g= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Jo=C3=A3o T=C3=A1vora writes: Hi Jo=C3=A3o, > I didn't complain about the manual. I complained about the > variable docstring, which is what people read when changing a > variable's value. If you don't think there's a shortcoming > there feel free to let me know and I won't waste my time. I > read your "patches welcome" as meaning that you welcomed > patches to fix said shortcoming. If you don't welcome > patches, say "patches not welcome" instead. "Patches welcome" means "send patches" :-) > Jo=C3=A3o Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 09:49:34 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 14:49:34 +0000 Received: from localhost ([127.0.0.1]:50059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1IH-0001rc-22 for submit@debbugs.gnu.org; Tue, 28 Feb 2023 09:49:34 -0500 Received: from smtp3-g21.free.fr ([212.27.42.3]:38708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1IA-0001r7-3f for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 09:49:27 -0500 Received: from zimbra60-e10.priv.proxad.net (unknown [172.20.243.210]) by smtp3-g21.free.fr (Postfix) with ESMTP id 46BF713F838; Tue, 28 Feb 2023 15:49:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1677595758; bh=zlNE/h82v/abOnSFUmk3fOtkFkJ7hK6ZsA3btGxfC4I=; h=Date:From:To:Cc:In-Reply-To:Subject:From; b=ublhSAQDfCwb+ghSgU3YgQV3w6NZu09ESNpBsU4L4v9oE6jFZWe11RZADe4reo5gu +lEP/1RzSRi7YebF6KVCpINLdYnFe4dHbhyslClKQcNnxbmos6IHTHlnZ0wt8rcvk2 y3IN0AoX5BymwwBJuv+KcXJ4S+NJeruzWs9GED+JnSok2qNE1buS4qEESm9BdL4ltO VKl+Ui3pfv0SBQ3Pizr2M8qAyRq5qI3UTv2Dzy2IXHUgpjvpjcs047WvcSXhIB24Fl CwxVqcHb4dyM9miWgZzEoB+7JrgAvXPEloBqNH8ChyBngqG0/MydFq8Wk5jNsrAnMT +a7C/pC3bB7lQ== Date: Tue, 28 Feb 2023 15:49:18 +0100 (CET) From: jeberger@free.fr To: =?utf-8?Q?Jo=C3=A3o_T=C3=A1vora?= Message-ID: <76634814.7170555.1677595758208.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [193.240.154.120] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - NAV6 (Win)/7.2.0-GA2598) X-Authenticated-User: jeberger@free.fr X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: Michael Albinus , 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jo=C3=A3o T=C3=A1vora gmail.com> writes: > On Tue, Feb 28, 2023 at 1:59=E2=80=AFPM wrote: >=20 > > > This works, and this would explain the instability I saw earlier. > > > Thanks. I wonder if it fixes Jer=C3=B4me's problem, too. > > No I've already got it setup as part of my config before I ever > > access > > Tramp, which seems only logical: first configure the environment, > > then > > try to use it. >=20 > It may seem logical to you but since you didn't state this in your > original recipe, it's only logical that I wondered. >=20 > For me, a change to a variable should take effect immediately, > no reboots or restarts. If you're satisfied with less, suit yourself > (maybe you're on M$ windows?). >=20 My main platform is Linux, I only use W$ at work because I have to. But on either platform, I don't expect changes to the environment to be=20 picked by child processes or connections that were started before the change. > > 1. When told that the language server is `rust-analyzer`, Eglot > > fails > Patches welcome. Patches that remove code and don't break anything > even more welcome. The patch you sent is insufficient, by your own > admission. And Eli didn't like it either. >=20 Here you go: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D8<------------------------------ --- a/eglot.el 2023-02-28 15:38:01.161316788 +0100 +++ b/eglot.el 2023-02-28 15:38:57.445653435 +0100 @@ -1156,10 +1156,11 @@ ;; ;; Not only does this seem like there should be a better way, ;; but it almost certainly doesn=E2=80=99t work on non-unix systems. - (list "sh" "-c" - (string-join (cons "stty raw > /dev/null;" - (mapcar #'shell-quote-argument contact)) - " ")) + (with-connection-local-variables + (list shell-file-name shell-command-switch + (string-join (cons "stty raw > /dev/null;" + (mapcar #'shell-quote-argument contact)) + " "))) contact)) (defvar-local eglot--cached-server nil ------------------------------>8=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Note that: - I said it was insufficient because it only fixed point 1 not point 2, but that doesn't mean it's not worthwhile (see below for point 2). - Eli didn't like it due to a doubt about the behaviour of `shell-file-name` for remote connections, but Michael has confirmed that this use is correct. > > 2. Eglot doesn't detect `rust-analyzer` automatically.=20 >=20 > Eglot uses (executable-find "rust-analyzer" t). The second argument > asks to consider the remote path, but sometimes that path, which is > configured by tramp-remote-path isn't considered immediately. Michael > clarified this and I expressed the opinion that it is shortcoming > of Tramp. >=20 Effectively, `(executable-find "rust-analyzer" t)` doesn't find it. I'll try to find out why, but this point should indeed be fixed in `executable-find` rather than Eglot. J=C3=A9r=C3=B4me From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 09:54:03 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 14:54:03 +0000 Received: from localhost ([127.0.0.1]:50070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1Mh-0001yz-EP for submit@debbugs.gnu.org; Tue, 28 Feb 2023 09:54:03 -0500 Received: from mail-oa1-f41.google.com ([209.85.160.41]:33497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1Mf-0001yS-0N for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 09:54:01 -0500 Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-17213c961dfso11242342fac.0 for <61748@debbugs.gnu.org>; Tue, 28 Feb 2023 06:54:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677596035; 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=AnvMmd+bGPhylz0O9d7bJdv24E988grNAvS/psYkj24=; b=YgaFx9HkUdP47LeZ9vBqYQbpJIzdJQHjKZ4+NKGOpnkbnEF/B2wzdqUfOiq18KyMHj a3qKR9CCmJ51u+TSTVAaxmPJ1Uc/LD9AE+ENpg9PEH/feBT5bky8ti4YkDKkZlwRq/UE T/VzF1a+txMr9dbCuFZ8rIuVG2sjWEehYYzhBXsjYbFd43InmFr14U+jd541B2PfNLvr KRVAXLCFE87Y3X3fJZkn73zZa8YauC7z0kZ9nGbYdVM13udFJW1Twl2kGiusJ5x+Fyqq yrz2K7M3MybGTydblLezTsPXczsbwEJgkaOdrWFtLb9yvOzJBGmSA3uA/ptAjy6hxPnI pOaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677596035; 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=AnvMmd+bGPhylz0O9d7bJdv24E988grNAvS/psYkj24=; b=ZW2aA/oST/GsEDuqSg96iZdiw2fMsoG61gtQyDefIGuRydPEhMA3ZzEu3Y5yeVJYtj /9uFMHkxeIHa4ubG1y6mFtvjPW1791mUPxaQSq0xy+cKMmnyo9u8wv6nR6gun7bL1lwC Nw9tteOTSZyU0U4S4x54pvvSsb1Nhz4kO1cwdeCbgknMaw3S/J/4R5zefa9SaE5WMg3X rY3WbZm5bvxKBj9Z/brs6rsZK/k0nL6JftI85hL+kRoGC8NHxacJ/XvFtkpszp2kJwll Rivv9AcEmzArEBT+xC0Erytp1YJEns8ov8/YC1nxKt4Eh5lBJjrhX8wbtavtZ4P60WIr +cTA== X-Gm-Message-State: AO0yUKUA+E6kE8LSrOi4FNqjsHw0Ha4gfYDl1v60H1XhcAdhshriPM8/ fdzWmT26CO2tV5TKIA8glaTWKcFJe1AlyCtnkUU= X-Google-Smtp-Source: AK7set+bDpGHXetH/lzyn8aYwtguQ8BmhKRuWitcWOEjgFLGfgVAkCcx3Q1IxioynkNbrnlAX9Hyz78wnD8AdT7oGEY= X-Received: by 2002:a05:6870:f80e:b0:169:ce1c:d7c2 with SMTP id fr14-20020a056870f80e00b00169ce1cd7c2mr5682601oab.5.1677596035144; Tue, 28 Feb 2023 06:53:55 -0800 (PST) MIME-Version: 1.0 References: <87sfeqq8z5.fsf@gmail.com> <75486564.6945596.1677592772065.JavaMail.root@zimbra60-e10.priv.proxad.net> <87r0u9devu.fsf@gmx.de> In-Reply-To: <87r0u9devu.fsf@gmx.de> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Tue, 28 Feb 2023 14:53:43 +0000 Message-ID: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: Michael Albinus Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, Feb 28, 2023 at 2:49=E2=80=AFPM Michael Albinus wrote: > > Jo=C3=A3o T=C3=A1vora writes: > > Hi Jo=C3=A3o, > > > For me, a change to a variable should take effect immediately, > > no reboots or restarts. If you're satisfied with less, suit yourself > > (maybe you're on M$ windows?). > > For Tramp, you shall take into account that it uses caches heavily. A > variable change, w/o propagating to the cache, has no effect. Indeed, as the adage goes, cache invalidation is a hard problem of computer science, we deal with it every day. But it's a bit unfair to expe= ct the user to solve it. Jo=C3=A3o From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 09:54:35 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 14:54:35 +0000 Received: from localhost ([127.0.0.1]:50073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1NC-0001zl-Qj for submit@debbugs.gnu.org; Tue, 28 Feb 2023 09:54:35 -0500 Received: from mout.gmx.net ([212.227.17.22]:46461) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1NB-0001zY-3U for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 09:54:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677596067; i=michael.albinus@gmx.de; bh=0bCM41tXkaLF8mfoa3RFC9+Shs/PLLL6LbEMBBBy5s4=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=T4LA/Eoeu3hVH//67LYYxgCbLqzEFss0P5oi8ZotlOuuSg2xvQLJgH0ldAq/YYAyL YnvDWxROpAOUVosrIjjpHhL06VEBHMh6oiGXzo8WAPCLceO9h7z34l0vJSOs1XQZNR 8rcPw//MP49JVcNhZ27GS+iqVjL8noA39XtB1q2pFvtj3gIL6yPFXfeOiow7KYc3U9 qj0UdoBFJQ3TW0/Rk1POPjFbv4alUzMWSy5MjpWapgO86unlNDCLkVKwhbqMcbL7eD vfwbdmPgLmqmFi6AXjW6WrQAlZDnqGkS8zR1Ttp9/nOIA2RqRrSnUI6OiqNdEg9Q8w HtNnJd1bEgXHw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N6sn1-1oPgFN1Uhb-018G7A; Tue, 28 Feb 2023 15:49:10 +0100 From: Michael Albinus To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Tue, 28 Feb 2023 14:25:45 +0000") References: <87sfeqq8z5.fsf@gmail.com> <75486564.6945596.1677592772065.JavaMail.root@zimbra60-e10.priv.proxad.net> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Tue, 28 Feb 2023 15:49:09 +0100 Message-ID: <87r0u9devu.fsf@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:SQfoeu9YV2KWz0nSyM5eXF+USf9Uo5yDI6khqTcKh+j/+UyTXiE xY/QiEYi7+np/n5b0LpJCXrLXKPOfuFciO4lD/2Z17oeD696r9/I5SKws77HXwNxyIh+Yj9 AenuYfpOwT7386HkuU/FYat7GPl5GCoblqMTh8Spc7iV7ALeL/1Kkboqr4uG7UR9yUM7rbw k9fULgboa8Fss5kGSvKdQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:RFEUtwF9RGg=;WvXMGri15baf84fJHbygCs23tmH 4xtfrD/0a0BeyoOi7yklaNkGNGlrIl+lKWvGLPPtes6r/rXAOkdOgRvN5c6c2wAuUrqzrLsBq 3dqlszEvKcYE/BasLn2kALQ/npNyEqfJTxYNx/pyjFHayYWxiiaOX2bLdqmbTBogpn0gz0rkX 6HIDARzutK0AlcAcNzS1IUQjDk0NfjRmx2hiTUxu6l79aN/8Wa01ut3jlZm7RCJMDd7uHXUOE nK327f8BWylKCmunp9ImEaXWbHuJB6Nsr5DvwkSATIgcNoJ+TlH9WJO5J5Q6g+S1de5IPJdVX LqtuTHeeDIlUX+LLqiOT9bINbAO20XZQGP8RI+lmkInkBi40EArvK9hmYrbx+HbWuBpj6tF6X 2qbwUAbF7ulsZR17XF0B9h8D4yvR0N0iyMC92KBuD8S/Pss1HU82SQ3UevVMI3735zF8fIvEH Ksbu3zYozwWkEYnJ5JQHw1Q0MzzQeBCbgo4NOVRy8RaGq9zm71jSPhbXPlqoSOOhPefhCpZL+ JigtE1zmZ5QYqatwqP2WgvEztRTVtdrDcMX1sicAGi68kFDbkgXexGHkkQJiM0ckszA9jEkDE cxcdYgabdfVLLg62ClhUxmWEJRQ8GzZhCB+JEf4wErEZ5b8jmtZ2CIvEvYXoON1pWMTINrrp0 2IhC7ek9vNkeMrw7BKQEAxmF/zsYlUss3UbbgrrsZuxpuNREv0Bb8lgq3z+8BQhfvv/BeltXN 8MR7ZSxyure5+ks0FAhfRMirL7ILC6GYTP6FDiACNf4soFxKI5UhyYOjaqcNdRF3W4szgbx+n hG3GMipkxX8Gj27gQfobTIHCZ8SBBIvZxK5nSko4FpbA6h0XbPDKHHPxXjvdwdFZjQ8G9vIcT Es4rHquIw9tXWLGxxgHOT5NCPmGto7gVOYv44eVB8AK5WnzulzfLjTCPRMTiWiJDtczbQLGDN h70FVB9VWKe2i05ubKeNlYVNyWU= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Jo=C3=A3o T=C3=A1vora writes: Hi Jo=C3=A3o, > For me, a change to a variable should take effect immediately, > no reboots or restarts. If you're satisfied with less, suit yourself > (maybe you're on M$ windows?). For Tramp, you shall take into account that it uses caches heavily. A variable change, w/o propagating to the cache, has no effect. > Jo=C3=A3o Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 10:08:03 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 15:08:03 +0000 Received: from localhost ([127.0.0.1]:51758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1aE-0002lL-Q6 for submit@debbugs.gnu.org; Tue, 28 Feb 2023 10:08:03 -0500 Received: from mail-ot1-f46.google.com ([209.85.210.46]:38814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1aD-0002kr-6T for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 10:08:01 -0500 Received: by mail-ot1-f46.google.com with SMTP id t7-20020a9d7487000000b00693d565b852so5744467otk.5 for <61748@debbugs.gnu.org>; Tue, 28 Feb 2023 07:08:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677596875; 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=mMSkAVIA5OJjPRCUF/QptJKtNDAqPvam9PEDN3z2uOM=; b=k5zUasSTUl7Zi0hOJYnnpY5ff/JuWzhf/gtSah/n8hXwld26qT5WrngijX5VBswv87 BGBPUXYeBp8YQQL8cLAXpqQtIkL1ivrbFf/AvfJkOcnR0nNRU/HAbDSzqP6LAqk4+t2u An5/q667eVNQkWZm1hElj/lmBY+Xqn9IaZgvEZe1WzRcMiMpIGYHQy9SZxl77G1n5+st i+C7HS3PLQI419oLmH/LJKxPgmK1mw4cZS9FsoJjdR2lq/522cnI6FVBZHgthkXHQ6W7 taEVvBgOncap/jRljUldj730ZtvcQvtOXiNbcLK/Lg17HE6Gr+Kpyk1bmsK4s8Px5tqM FNAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677596875; 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=mMSkAVIA5OJjPRCUF/QptJKtNDAqPvam9PEDN3z2uOM=; b=rjaM5UBcNyt1jUx9RNcNQs5woysZYmPUMXP4uIvbLzOpP+ZNAIQUlw8pGyAH0NHK4p JhQiFMjVq5VHS/O6o1xqG10ecDiot6VHBD+PdxF94d4iPbD43wMmqGz7ERnirgS+3pvt pta0HZOfluSAtk2ztI4lURaucRQNg6if6q2Y0J0smrZ3FZSPMTcU5ezoYk+Dy7srslfR b8U9v/leBEkV/JyUZZnLKagZzOCYCskoEjKwuDiMEI+QI2vwxDrDQLUG1r67vQzHg2KG YlFgadg7Eku6WcH3dXnb+a8TyS/ahgmqf1BIHq9HPtw6LGjnCPq56yRN3kIj3Yv0S82l c1oQ== X-Gm-Message-State: AO0yUKV9fH/l+m2IsX+ZYDJxagUQtO4N13WY8HkcHpS/LOlCfsod+tpI 60oDXOFOLQYUNyutkGbc4A4gsp750DQ24uuOLWc= X-Google-Smtp-Source: AK7set/BnogO163yV3ivY/zwyih39a+9Ehs2kLwccbAioI9QreThKRdc6fwT3j0CA0vAH4HkUzqJsgg8+AtXfws4Qqo= X-Received: by 2002:a9d:454a:0:b0:68b:8067:b5d4 with SMTP id p10-20020a9d454a000000b0068b8067b5d4mr1083270oti.3.1677596875243; Tue, 28 Feb 2023 07:07:55 -0800 (PST) MIME-Version: 1.0 References: <76634814.7170555.1677595758208.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: <76634814.7170555.1677595758208.JavaMail.root@zimbra60-e10.priv.proxad.net> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Tue, 28 Feb 2023 15:07:43 +0000 Message-ID: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: jeberger@free.fr Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: Michael Albinus , 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, Feb 28, 2023 at 2:49=E2=80=AFPM wrote: > > For me, a change to a variable should take effect immediately, > > no reboots or restarts. If you're satisfied with less, suit yourself > > (maybe you're on M$ windows?). > > > My main platform is Linux, I only use W$ at work because I have to. Heyy, I know the feeling ;-) > But on either platform, I don't expect changes to the environment to be > picked by child processes or connections that were started before the > change. Hmmm. I do. In Eglot, I certainly strive to allow this. eglot-managed-mode-hook is an exception, but a self-documenting one. I don't know of many more exceptions (there could be). And especially in Tramp, I would expect to, because those processes are IMHO implementation details that an end-user shouldn't concern herself with. In Eglot there's a user-visible concept of "Eglot-management session". In Tramp, unless you start looking at funny named buffers in your buffer list, there isn't this visibility of the connection to the user (and IMO there shouldn't be). > > > 1. When told that the language server is `rust-analyzer`, Eglot > > > fails > > Patches welcome. Patches that remove code and don't break anything > > even more welcome. The patch you sent is insufficient, by your own > > admission. And Eli didn't like it either. > > > Here you go: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D8<------------------------------ > --- a/eglot.el 2023-02-28 15:38:01.161316788 +0100 > +++ b/eglot.el 2023-02-28 15:38:57.445653435 +0100 > @@ -1156,10 +1156,11 @@ > ;; > ;; Not only does this seem like there should be a better way, > ;; but it almost certainly doesn=E2=80=99t work on non-unix system= s. > - (list "sh" "-c" > - (string-join (cons "stty raw > /dev/null;" > - (mapcar #'shell-quote-argument contact)) > - " ")) > + (with-connection-local-variables > + (list shell-file-name shell-command-switch > + (string-join (cons "stty raw > /dev/null;" > + (mapcar #'shell-quote-argument contact)) > + " "))) > contact)) > > (defvar-local eglot--cached-server nil > ------------------------------>8=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Note that: > - I said it was insufficient because it only fixed point 1 not point 2, > but that doesn't mean it's not worthwhile (see below for point 2). OK thanks. I'm OK with that patch, but I'd rather wait until you also figure out point 2. That's because -- I think -- if you can get executable-find to find the right program in the firsdt place. Then we don't need to worry what shell we use to launch the language server remotely. All things considered, launching the standard "sh" should be more correct than launching the user's pimped-out custom shell. I was even more interested in your idea of removing the need for that stty in eglot--cmd, which I have to admit I don't understand. So if you want to try your hand at this, go ahead, too. Jo=C3=A3o From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 10:12:53 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 15:12:54 +0000 Received: from localhost ([127.0.0.1]:51763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1ev-0002sF-LK for submit@debbugs.gnu.org; Tue, 28 Feb 2023 10:12:53 -0500 Received: from mout.gmx.net ([212.227.15.15]:58923) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1es-0002rz-Qh for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 10:12:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677597164; i=michael.albinus@gmx.de; bh=JyGPq60Nm1nPvFMzG5LdepPirlFjhQWVE5N5HfDtYhE=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=pvZ+37TOwCBNFOG4Ec9PIb+2aNeC0NmofCh6MjT3LX1Y0j4UelG8RfFqG95hBeOk2 VMJdBsipwU1ntf6PnI+J7ofEfGLWX06bMGTVeGFznYx+GjvFNMGdXrzfvxPQCUYzg/ EgIaq6q2pw8oxmJm6dHL9tUn0moX12KQB7e6ofoj6EEfJNz0cWYSoar93RuDOT5IHT VuN/w/rVbgjDgsJ15bewXK1RkNNckDXC8dwc/M4fbwvQPRNFKu+W7+KbykxoHyMET4 yIPQH1y02TpFooSsQObOkr0fgQ9B2mbv04vS/lM8alY3uuMFWdr1jkS7ze6LoBunVc Vxmn6eyV/r1Jw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MHG8g-1pJqN13EbQ-00DCfE; Tue, 28 Feb 2023 16:12:43 +0100 From: Michael Albinus To: jeberger@free.fr Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: <76634814.7170555.1677595758208.JavaMail.root@zimbra60-e10.priv.proxad.net> (jeberger@free.fr's message of "Tue, 28 Feb 2023 15:49:18 +0100 (CET)") References: <76634814.7170555.1677595758208.JavaMail.root@zimbra60-e10.priv.proxad.net> Date: Tue, 28 Feb 2023 16:12:42 +0100 Message-ID: <87fsap6cyd.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:teY8F9xjNBZOLv2AQ3k+9QnrAzIcGUC1Dc066NdL0oK35poEQUU ukLR2zrOSBywVKeFw5vSZ0qoUyVtTHGbV9w5Ep0qcRQs9Tyxc7q0/IR0vRvAt6QXuCVvXXZ yOO13aTy87+BqVFBsaCMTT9QSwLoNeHV/YJQCP3lZ1p8qjM+Z4uwFvF0ffilOTtJpGCrzVp TzTRemCJN/8KZxRgVduWQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:QUTuHinGV18=;0D6OB70lmoAFoIO3zPmxzfDm0Is ZN2UvERK27JIqUdUlMmdAKmUVMOiA9q5oso7TC9WnvimThP0ckZ1ta+RBfrozXT+isZXtnCKT WCpptywGCg8pOW4nOpezLmJqY5l30kvmts6dYCf1T+lnczoeIzqvq6SsKWDQcD7QDughrriyp +e7Mv3KgdAa7kkonJc4+vMZAyPhY8w5u3Y5YZIOWAeQkNgo04wdmEe817KXFbEO6IN6nblXJa RulfZY6N+NRRjnIXBFYWFzAkOdcGFCt+O33J5xntqETMtXbJWNa1DSsofoyXT97sp5ME/NrlH bvHlutn7xPIIkO3D787F5sGZkrxzLz70utksknjy3yOqIW6PSubdscd6/H0v2c9YYBaYXNdNb 6DmOLlngnHnPEjUVY14xfB+04Wo1YmEg3C7hDi6k5zHs2mwH5XJpo6J9mS3lWIoN/zNokzaK/ MUIWpeHlfqUjhji4/IwK5myUxRIeyWtnSe8pOsWn+kMO2j4JK+LEQlczV4PdudkO3HK8Tmq9L J5g3JMuxHDkFy4X9cHev49t1Xe+ZWSkgaQQ0gGWclj2upBxQ1p6DhWuEnKOh8dSyg3CRk1zer ZBuvZAlaOFPpkhK862uFzBjS6jLx2FmFds5vRA1hmFXbbDEJ0l9holqbTY8jy8m07TXbrAWIt Mq91JOjOonpjDCq56bv48aAZawNTNfREv9UUUt8uT45P59gM/GCG74NrLvI/m0eE9+sPPcPlU Xh+h4QtV6Z7zn7CQdM8vtXLp6niE6Qe46oYanUUWfs7kRR8YpQsFuMGd0L5/KMLjj7qs+Qf8t qMUHuV9WyeKmA/bl+10HI9e7QTpNNcAIt4aKlkeRGulIsKVFi3Cccmvs6Ey6wfHGC6NTY6IW3 IHtotYzIgE44lauF2dGMPq8IzOI1Fk41iI0Bl5dNMa0NIv1fhcr69y57I6B7ukewvMHHOowpC dBVQxki5dGm4OnCl0L/Y9Wk/R4s= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= , 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) jeberger@free.fr writes: Hi J=C3=A9r=C3=B4me, > Effectively, `(executable-find "rust-analyzer" t)` doesn't find it. Your current buffer is a remote one when you call it, right? > I'll try to find out why, but this point should indeed be fixed in > `executable-find` rather than Eglot. Pls set tramp-verbose to 10, rerun the test, and show me the Tramp debug buffer. Something like --8<---------------cut here---------------start------------->8--- # emacs -Q -l tramp --eval '(setq tramp-verbose 10)' --eval '(add-to-list (= quote tramp-remote-path) ...)' /ssh:user@host: --eval '(executable-find "ru= st-analyzer" t)' --8<---------------cut here---------------end--------------->8--- > J=C3=A9r=C3=B4me Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 10:13:29 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 15:13:29 +0000 Received: from localhost ([127.0.0.1]:51767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1fU-0002tN-Vc for submit@debbugs.gnu.org; Tue, 28 Feb 2023 10:13:29 -0500 Received: from mail-oi1-f174.google.com ([209.85.167.174]:43979) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1fT-0002tC-SN for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 10:13:28 -0500 Received: by mail-oi1-f174.google.com with SMTP id bk32so8231292oib.10 for <61748@debbugs.gnu.org>; Tue, 28 Feb 2023 07:13:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677597202; 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=3tPy8McRB09Z0L7MvctQ9pD1x8i/CsIZ50Ot+5+H3ws=; b=LmRGjC4jNl1qvI1UroWMb2gVIB5I8u2o9bDB6/JEdgw2cgRY8123og1G1+y/0WAURj BK4QF3eTYrY5O3M9/fSlRxb1d0FK5KzXuo3s45DtrEUFOuDYC2R/gLuVQKdtnMPPJfP4 /oAgZWvRCnMmcNWTyPwLI4/3sqJgqYDi/kFoPBRiC62/kyTMl2DUhVO8wmKSiM8yrRsA CwVOtEw5M9f9WfeeJZr6+zl9X5ZhYmN1REeivKxkU6LsroFCdzE7wneR+bRtVn6NKIVw qCZL3AfMfQOCBI2XDpE+lx7BXxaFW3MIAej8TBWzymUVO9A4I4j8COtJRLXZasCmzYpB Z/LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677597202; 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=3tPy8McRB09Z0L7MvctQ9pD1x8i/CsIZ50Ot+5+H3ws=; b=TF3LzchtVZQR7mI5lo5ogv9f+necI7zHDYfUEfmFIgk7pxFGw5PvStWvXwYEdr4klJ eMROwWZVlpqRp5VQw8LxEx79fiu2OXpFnpkP91tCBIIgQug9zMPfER/21D4BeKsiQ9LG MaLVuC2r5Ff+mlsu+iqv1EM/06X4WTL4GQriIdkqmhDPJIao4ZGoJCbSvYsYM6P4Uco9 05q0Zn0GhxFHKJJU9NQ1DjkqDBrebK6uw9W/moseUAWngWGhwH85YYwM8NCN8bS2dHNV JDHsLGK/tIvyWAjMSi8ZQi7Ixf5MX/MujBoHPuUFYod8Vsx8aS85nMw2m2z0yt8PKi+M J4UQ== X-Gm-Message-State: AO0yUKXUn7VXwvkkRVAdKSl6cDT2Kf+uWxWywD25/CUj1lec91vQMEcc V0QWx/TJEr5YqXBV7lV/HflLFy5GxFciZeBwmTg= X-Google-Smtp-Source: AK7set/4SmY4OO62Z1ZYSBbbOGVSaCWUudvG8Lin+Cm9aHA3YublzR6omwb8xdeG7bYSVXMiEet1JK7sgdvqDI+LVOI= X-Received: by 2002:a05:6808:a98:b0:384:21e7:977c with SMTP id q24-20020a0568080a9800b0038421e7977cmr924027oij.8.1677597202266; Tue, 28 Feb 2023 07:13:22 -0800 (PST) MIME-Version: 1.0 References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> <87y1oid5h7.fsf@gmail.com> <87pm9umbar.fsf@gmx.de> <87sfeqq8z5.fsf@gmail.com> <87mt4yrmt6.fsf@gmx.de> <87356qq7o4.fsf@gmail.com> <87edqarlcr.fsf@gmx.de> <87bkldswww.fsf@gmx.de> <87y1ohdf1y.fsf@gmx.de> In-Reply-To: <87y1ohdf1y.fsf@gmx.de> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Tue, 28 Feb 2023 15:13:11 +0000 Message-ID: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: Michael Albinus Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, Feb 28, 2023 at 2:45=E2=80=AFPM Michael Albinus wrote: > > > Sure. RTFM :-) > > I didn't complain about the manual. I complained about the > > variable docstring, which is what people read when changing a > > variable's value. If you don't think there's a shortcoming > "Patches welcome" means "send patches" :-) Here you go :-) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index eaddc36b54a..d841bbf60e6 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -1372,7 +1372,9 @@ tramp-remote-path `Private Directories' are the settings of the $PATH environment, as given in your `~/.profile'. This entry is represented in -the list by the special value `tramp-own-remote-path'." +the list by the special value `tramp-own-remote-path'. + +Also RFTM." :group 'tramp :type '(repeat (choice (const :tag "Default Directories" tramp-default-remote-path) From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 10:15:43 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 15:15:43 +0000 Received: from localhost ([127.0.0.1]:51771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1hf-0002x9-Fl for submit@debbugs.gnu.org; Tue, 28 Feb 2023 10:15:43 -0500 Received: from mout.gmx.net ([212.227.15.15]:60465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1he-0002wx-3j for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 10:15:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677597334; i=michael.albinus@gmx.de; bh=VzJDRkOYjLWE6KRe78b+bJC5YoKXhX50xgM3Kf4LjGA=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=Vi/62uslESYiNN09LfBsi/XmwqLSZ4ia4aM8k86g+fKgIGcTmoLK6PI0x0xs6Mjt8 JL+i4iDLPwq7xwxahBTnLmi1X4YyMej2K0iV9/fj/POxyc9qmf7AJCT9FTC4ymxPXj cK57tctrQyKlhe2cRzYqgQy1hZjvjcLLu64LBjKEy2eZvewmsxM92F1ODhOFmU6xbw pMpT2Ef9AyncUb+YyGqKJcxbrSgNrx7cnYINedT1PQuUhQXc9Xc8OloWWVBHQxu0FC oFofZqhHGV7HX7ppksBgxIcUx0PC3CmMiwf4CckB3jpPVPHZDPMCsd80DyoIRZ2hB/ DiOc16EH7BI1w== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N5mGH-1oQllV0GNf-017Eip; Tue, 28 Feb 2023 16:15:34 +0100 From: Michael Albinus To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Tue, 28 Feb 2023 14:53:43 +0000") References: <87sfeqq8z5.fsf@gmail.com> <75486564.6945596.1677592772065.JavaMail.root@zimbra60-e10.priv.proxad.net> <87r0u9devu.fsf@gmx.de> Date: Tue, 28 Feb 2023 16:15:33 +0100 Message-ID: <87bkld6ctm.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:cm6Q53ZnsiQFqt2vvA/4J6JVvEq2qQMvIAv3Hs1bOGp73pXShxA Eiu8KQ7TGgsTR+DrXQ43/7gU79+a/d5kfQH9kCby5JDUNxn8zSoEI6Ye1Imk+atoqR4cm9y fKE7x50aC/iLtnz7Uh/i997gV90iyDM9Njt5B39szsJvjSpPGtQ/ARyWsF+V4NICnIdwlPc 0BmbNOLV5pwYGH9k9A7Kg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:Vg6lsECMRUk=;kgVWf23b9vGMQO0P+lIvv94+/VX qey0m8+lRHV7p+Ab4KIkwdheNTuJkLwXZR5I5SVezCuTyP0/RLfwiyRYVTYYMy845o2Ufo7WJ hHZwRzSfKkd8PVascTTA16wUCosMPlx65s5R3OZ40AsHw8dBpXK3QO1sn02OU1K0bCAhUkXvi qa9pvYYKbS5sKU+0hnmk9QaUAUBtGFh3+cIlXEMLpMdnVAT9IjGrTj4wiSM5ogj7cUf7mA9J7 VNRhNqXLi3CXmSawLsJ1OoeqZzty+NdsFYdr9dywqA38yPq9liYBBj4lB7Lrv8PaYdEhcScBe 5eMDHtomnqQ1AJ8Bi8a9MXXVjfwbFAmALMiOaCsapRa1m8BFkgQjw000FAFlo1VqvK4uNhw+a UX4rrXloszjwonAvv4SIytMuS3ERDOGC2kTBWqJlMQGwlsYVsNOKmw5GRoXsaRSmmlfSkloC2 B9yUHwX49Q5MtSy1Z6/yBqbakNQu0i0fAMZTt2TUvGLSjermm57VhT7B8qnBZUBOBpoERnMFH tUCRPY1KWbo4ivdywC/QLXwYZuupyWYabFM/hBAtFG1J6AfpEuLY4NVXloq1wO9Qb0ibwqTQp sOEtnVEzbRff85gHKuEWD1dgd1x3uxxlSA293kTDsiGVlW/dzStLSyUPPARIBYw71dH45K2f+ dIe1ZwKbcmO78d7edaQ3lbz3vT1Ak7P5eeH3BSnwJAYUrw3VGXlItYtw+t8TMViVbzrjcJl1s N+Ck1djpBIOYuvMt1FLt24eMuxfngqjU6934Hs+tsT86EG5PudiAd8RcLie8MBXIsLzJg+4CG jYfdaMpzO9RhUaGL9clzlgc8AWkEGJkn8yjthZADIW+MazrClxvK58tg/OwAYsXlF/9GLFdEE UzfL8CMxeAX9pKgLs1/Dv+bzfpcxltt02A9iaY/LdH6UiMT49f2JtSKvzYDPFgAGf8/l5T57x 9WwLWx8LA8soeFf1TCOA+Rsvf44= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Jo=C3=A3o T=C3=A1vora writes: Hi Jo=C3=A3o, >> > For me, a change to a variable should take effect immediately, >> > no reboots or restarts. If you're satisfied with less, suit yourself >> > (maybe you're on M$ windows?). >> >> For Tramp, you shall take into account that it uses caches heavily. A >> variable change, w/o propagating to the cache, has no effect. > > Indeed, as the adage goes, cache invalidation is a hard problem of > computer science, we deal with it every day. But it's a bit unfair to ex= pect > the user to solve it. I don't expect a user to solve it. And a user shouldn't expect that changing a variable is sufficient. There's more to consider. > Jo=C3=A3o Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 10:23:42 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 15:23:42 +0000 Received: from localhost ([127.0.0.1]:51776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1pO-00039o-DP for submit@debbugs.gnu.org; Tue, 28 Feb 2023 10:23:42 -0500 Received: from mail-oo1-f42.google.com ([209.85.161.42]:38737) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX1pM-00039a-VF for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 10:23:41 -0500 Received: by mail-oo1-f42.google.com with SMTP id u3-20020a4ad0c3000000b0052541ef0bafso1606692oor.5 for <61748@debbugs.gnu.org>; Tue, 28 Feb 2023 07:23:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677597815; 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=wTkeS0WwGDUQ8pKqn+y48FAz4begy602mNTJ1vKNlLo=; b=qDaqKh7hYYKKGnu5DJX6PkqT7tYCoACWOLJLL8WY0EFwT+cK3hIWHfPTT2jhA7lOiP SnGniBZ/uqedkcThabfPik+DY3v9bnQP7qa3jN1D7Ve9gBta0HQ/wzPtsUC5MOD70ja8 yLxII1aQ0oJLA8YeaLkDSjnTxj0kZxE2bvR+lwIbjgV6ebPGSqHwooeaoSWQCxFGiqXV FU0sX3ghkMG0nzmiIehvZrnjx7Lp4QW3TSgGPMduD+do0B4Mb2NliYy1WCqpcc++aIbV NHkJbxxCaH82kYayh03PT0Qr0dXMUZt5D8xKoQZX7chcKHIgnvASeCSJGjX37n00FSAU 9O0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677597815; 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=wTkeS0WwGDUQ8pKqn+y48FAz4begy602mNTJ1vKNlLo=; b=4/L1XCgcVo4rwushDwJkhtkH+e6mEs07nwY3PlDgFmzfmKewcIkMYNJllq7NbCUDeK +q4cMRLgKpWKpIJSOgCT75YGSOd6IT73SKerG83MHh7rXU/zRtNdXoVO/BTNvllodx/m Z2H/CNRuwHVN5mys9xBlUzBEcFR3yJTC4m07wRcAIVMbkNZwe/Jt0d2XjWtoKCr4UQpY Hink/p0OS/mbZe95bjdZRcCMsPX4vIk4qmGwMa26YHSqpORPCXanYsbuFpcrHzBIc9Yj M5Q8+Y/UOJV0OskkO6tPjAET2oWfK0MUhsLdvBr9KzueTZnc9xz8L9xzoBkmvi3hRr1e aCuQ== X-Gm-Message-State: AO0yUKUiVJngf52/tcNjinJZuhzaOX431fxcM+JfXnvvyHWSjQ33LtRj T0mRkQM++fD2dcmpkdSYy3hbEiEeQ1v0celhXt8= X-Google-Smtp-Source: AK7set8S+GKhvIuyJC+6kjtIiS9cqR8xHDFZEUqWTzCh2UPBAeaRZFHzm0tKhb15Hj/lILvs659SEfJcT7gMf2JWTg0= X-Received: by 2002:a4a:c585:0:b0:517:bff1:77e with SMTP id x5-20020a4ac585000000b00517bff1077emr909772oop.1.1677597815172; Tue, 28 Feb 2023 07:23:35 -0800 (PST) MIME-Version: 1.0 References: <87sfeqq8z5.fsf@gmail.com> <75486564.6945596.1677592772065.JavaMail.root@zimbra60-e10.priv.proxad.net> <87r0u9devu.fsf@gmx.de> <87bkld6ctm.fsf@gmx.de> In-Reply-To: <87bkld6ctm.fsf@gmx.de> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Tue, 28 Feb 2023 15:23:24 +0000 Message-ID: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: Michael Albinus Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, Feb 28, 2023 at 3:15=E2=80=AFPM Michael Albinus wrote: > > Indeed, as the adage goes, cache invalidation is a hard problem of > > computer science, we deal with it every day. But it's a bit unfair to = expect > > the user to solve it. > > I don't expect a user to solve it. And a user shouldn't expect that > changing a variable is sufficient. I respectfully but diametrically disagree here. Here's an untested patch that could solve this. It can probably be made smarter by only invalidating the cache when a change to the variable is detected. Jo=C3=A3o diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index ec8437176db..eae00923395 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -5578,11 +5578,7 @@ tramp-get-remote-path ;; Expand connection-local variables. (tramp-set-connection-local-variables vec) (with-tramp-connection-property - ;; When `tramp-own-remote-path' is in `tramp-remote-path', we - ;; cache the result for the session only. Otherwise, the - ;; result is cached persistently. - (if (memq 'tramp-own-remote-path tramp-remote-path) - (tramp-get-process vec) vec) + (tramp-get-process vec) "remote-path" (let* ((remote-path (copy-tree tramp-remote-path)) (elt1 (memq 'tramp-default-remote-path remote-path)) From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 10:44:53 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 15:44:53 +0000 Received: from localhost ([127.0.0.1]:51786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX29t-0003j5-0T for submit@debbugs.gnu.org; Tue, 28 Feb 2023 10:44:53 -0500 Received: from mout.gmx.net ([212.227.15.18]:46233) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX29r-0003is-Ik for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 10:44:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677599084; i=michael.albinus@gmx.de; bh=1oaUiau6U/uIoyJ04J1It/wXk4rnn13z/wsvh3oJfRs=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=kPFK41MW1LZUgAdjHt7H9aD7p6ZY2p439D+lRDDiERSuSLAazLNGBc800CJbszVQx BgJ7dEMJu0ZNAODvfmibl+PfjMfxBSN4dUds0Uq8tiK2JnC/Q8uEVbjAwqK0wzR4Hw mJ2UbKtsGmVwjRpQMDQFRo7vjmFiJ8LMHZ3jwQi5VDOKKRHmI+awLXxHqzliX9gQar IqNVOU12qLSEvTQbqpC+FhpmDXkaCQmx/X7Gfz2Vh+9tercBQh8LmUPbQ9QHEgsNn/ W37Y+tVNemBBOZ1ASxqUnhF0zZSUZQcr2/wuPKYIAUqrZlfKPNTVropa8n4FSCunLm kT9cpVoyheyYw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M8QS2-1pSeRY1jQO-004R6m; Tue, 28 Feb 2023 16:44:44 +0100 From: Michael Albinus To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Tue, 28 Feb 2023 15:13:11 +0000") References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> <87y1oid5h7.fsf@gmail.com> <87pm9umbar.fsf@gmx.de> <87sfeqq8z5.fsf@gmail.com> <87mt4yrmt6.fsf@gmx.de> <87356qq7o4.fsf@gmail.com> <87edqarlcr.fsf@gmx.de> <87bkldswww.fsf@gmx.de> <87y1ohdf1y.fsf@gmx.de> Date: Tue, 28 Feb 2023 16:44:43 +0100 Message-ID: <877cw16bh0.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:iAoURJe+uDsmJaLZB4frHYAYB9Wx8QAl2UGgm9VlIDfqel1HlMe 0k/Mv905yN3twm23v5XTwtNi7ExpAgOOkiom4FIxUWyMMHi2CPn5gFwdKU2lB5YF01OKTzD iTcDYW6yAfbrwYH2DJp924iF1S8nk+m5wdmGqM6iI4dhaJQkks/JoyRQSBd5Bk8/x2FLi+a TMlitGVSOi9G64KbDKx3w== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:KEfB71K1Hbg=;cvQ2YC9lVPNOJ8Ep8YlPZs//PJi PmWHdp2mFYvP4XH+Fsz486PBcENWeAoKqJ/GhbfGk3gRAKJQzROoZ7+sCYdWsY5+onjVN92b+ yvJC8W9TINey9KcnugviOZ7n9G1CacUGuW8wveOh74ZoQmafed0ItKlLrQpDh/iacyPwwvWZ6 +sbSQgAL5zv8VYomdqt1YSl4HIVGA+0W6gZJEQnEo5claqkoxg1l0CxPy+gcDS12aL4Ys2Ojn GleyIkd3AbXUsv/BB4NTQmO6Aj2+/E7TR9uf1xRkJHcoLqcyavtfqO+gKwoCMLcuUkB3mnuPC LN3vLOlDyyjFV7Bv6x4zNFUSsagpqql5LcCJ6zPae3MKVdbNZO1PyhE+WSXSuMxrbqo0DXnnH +Ef1sDbvHdhewfKtgjpy8Fk8AZnL1MBmBrvg/s0deqaF8tQMG2Bad/ca4S7zahhtSQngYlbfm HFSIRQy38t0ifggFWeD4cxMLty8RkXd+PDiMTuwuBCtBm85iUFJ8iI162Yzm01URYtzUvax9K F7mU/8e9Pg9ZNDv/gxqxYHXN5n1OdEID3I6h7IarseVyRx9KF1TcByChZCPx1bjIE+l5IKTEd IFAoMVFxN3mmrU5wJLjByANPM4d8vrKbr+x9iMPJ8pqivda2sOcbv+jYmz7ZssVQD7IVUhSdY GNK6AtTBIzHMuWRvY1Z3ZZttviSUF497tVneKJx2R2hyMJ06JDs3oXzIrfObk2LQ4EZ5/ggQA 8x4ufmueVsg3quaNCpW+YSG/UYTtLQ9Aw/9NqVRUzVPG+DPTQSgnd2NSvUAAHNbo8WuIMKSK2 oxE44iGOWLouyF+pD5B5R93pXvam4DM0oIeWp5wWd1n/ZRFlNfcpC84EslOdwp8Fnvdt38IyB nhNI8NGx7RTRdL9b1QYiVG+cE3dfgIFdkIHxreX36gXFs6Qm7FD33HQu/Gu7o+XTl1zVa8SOh YFGjvgg0DfIX9ocyWz2ZztyEGkE= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Jo=C3=A3o T=C3=A1vora writes: Hi Jo=C3=A3o, >> "Patches welcome" means "send patches" :-) > > Here you go :-) > > diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el > index eaddc36b54a..d841bbf60e6 100644 > --- a/lisp/net/tramp.el > +++ b/lisp/net/tramp.el > @@ -1372,7 +1372,9 @@ tramp-remote-path > > `Private Directories' are the settings of the $PATH environment, > as given in your `~/.profile'. This entry is represented in > -the list by the special value `tramp-own-remote-path'." > +the list by the special value `tramp-own-remote-path'. > + > +Also RFTM." > :group 'tramp > :type '(repeat (choice > (const :tag "Default Directories" tramp-default-remote-path) Ah, you mean --=-=-= Content-Type: text/x-patch Content-Disposition: inline Content-Transfer-Encoding: quoted-printable diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index eaddc36b54a..b24bd33de82 100644 =2D-- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -1372,7 +1372,9 @@ tramp-remote-path `Private Directories' are the settings of the $PATH environment, as given in your `~/.profile'. This entry is represented in -the list by the special value `tramp-own-remote-path'." +the list by the special value `tramp-own-remote-path'. + +For a full discussion, see Info node `(tramp) Remote programs'." :group 'tramp :type '(repeat (choice (const :tag "Default Directories" tramp-default-remote-path) --=-=-= Content-Type: text/plain Pushed to the emacs-29 branch. Best regards, Michael. --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 10:50:37 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 15:50:37 +0000 Received: from localhost ([127.0.0.1]:51803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX2FR-0003xy-6I for submit@debbugs.gnu.org; Tue, 28 Feb 2023 10:50:37 -0500 Received: from mout.gmx.net ([212.227.17.22]:52363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX2FO-0003xg-R9 for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 10:50:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677599428; i=michael.albinus@gmx.de; bh=R4+Tuf/3Bn3GYGPIjKBatbdmZ6nFWFzs3f00mzA0fSI=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=U/oJI+9CDui5htHWq+0BzOOGxiB56lxcbabBSb9d7L+iT/nKAYvro91TQtMWvs7J0 gzYi39losEcnCZ4tcfazTLVLOOyYnl7s6hCETy/xAPi8yFNL3C+d9qcY83tYHTwUi1 o1Ghh5YlweQ8KdMXqpV5DFk2C00vnAbd2Mi48soQpCoKqGqPeZqOXiFjWa3JFou0yi Ps2xJdJxdxiW/lfvz7ZfYF0qekZE590fMZgkaQI6/szAogGVXUWYKgpCbwYdlSzNk3 aqNHiHhFVu6M92GfFeMkW3nQ1wRziLwDRKgCo6lDSrDbBoPKJ3ObGwl+mnHeferpDV dIxxT0Lts8Lyw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mxm3K-1oYDrZ3uP8-00zDxB; Tue, 28 Feb 2023 16:50:28 +0100 From: Michael Albinus To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Tue, 28 Feb 2023 15:23:24 +0000") References: <87sfeqq8z5.fsf@gmail.com> <75486564.6945596.1677592772065.JavaMail.root@zimbra60-e10.priv.proxad.net> <87r0u9devu.fsf@gmx.de> <87bkld6ctm.fsf@gmx.de> Date: Tue, 28 Feb 2023 16:50:27 +0100 Message-ID: <87356p6b7g.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:doMTRFP/rElBBQw6zxj2XFH6+B9+CXaWR6Fu0h4pbEJ2K6ZasOv gKEmGi4gX1W05rGpu/1jZRVD5QEQ0VVThU6StZrM7xC9rgGgWqRXWEsgojROq3iRF6B5BZ1 L0CcRO9aEF1qM9USdEd2FYV46KG9SmaSfV+WzN6JOdAAS1QnSexq22I0vWgmVnSu0jvIQXn 6u/Ue8CLDdKnW9L2zdakQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:GwQTBBV2MUs=;znPUJMfNqt06XadLGYZoRU3d5xp s9rZ0w87voFjsL7NI6TQ1ag+HyzbskCOg1vh906BPaJnC5daOqOb5UW0hLHWC40xVTHlDdtCK +BZHOFy2/Bv+oxe2gt2jVgv3YiBk8exXx7iwAFg3dNZ/d758fyp3H/wGJH1qxVEAXd2KKNV/y NZxAN16jU2naYncMbBQAKIFBwzDJZA/CJUlEDkob2hLg24atHAqAhI1UQY788HQnFgVskFmNJ G7Gwjsgk9aTU4CILsgHL9jkkMWL6OxGCgHEa0emz6HDtcXcE1icD5/jDJhmAMm3P9nk2R6qXF KB1uCgbU+NR2LaWGiYwkYK4GkHFad3cE4ywT5TwW9PriOLmeH4vouTitPmGx45zdmTza1vy9z pYB7Aehv8CqD4Y153nLuoZ7JKsTSnrqTCGIJYv+vrtPuthZ2ueQRYgOZhQwxKenZBqNjFRpWg +Zaj5/lOjLtZ1kgyFF75KMgdoiCT0jNHxJQWj07H7V2NRhvdoNiFSR33SXFbKIFvpP8QK6VJs DGGnBcILdYnrEFgZRqkFX34ksL42rAhX1Ozy9OcKlvaJqJ4TSp41scTlImfCp9ZnLUxjnFaGs wXZTx381Q8wOQiPTdQSNH0SCUxBc0C8y1INzBKzxeQPAAL/fBWVQBRc/q2vyjne3tcHDVKwPz IOjfPcYft73GGaKp+rfjbliUq5wengQArLSLMxYt51jljwAQ4KObq50lx7jUwqK0hxHja833j Hd7GVgZbQhcM6PrID5+fksMI+kinpJtk4OdIu2+ji7rZKdjZMYvWQBcsNE0TRetj/Vnlk6dZE xpUkQPG6vxTzQZnI0PqY9NCOiph21e+5mpjXp2f9eRnLnlmuf82RgmOBMEKDecd1mj52o0YMT cHpsoyw+q/BkY9eK+X11Pg6T1dU1B8lq2l4k0UJENy912hk7zcO6iHnVy/lIM42ysH3TimGnt m4kO4JGwhyVL1a60ak5Owk1VqJU= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Jo=C3=A3o T=C3=A1vora writes: Hi Jo=C3=A3o, >> I don't expect a user to solve it. And a user shouldn't expect that >> changing a variable is sufficient. > > I respectfully but diametrically disagree here. > > Here's an untested patch that could solve this. It can probably > be made smarter by only invalidating the cache when a change > to the variable is detected. Hmm. It will delay startup of remote processes, if tramp-remote-path doesn't change for different processes. Perhaps it is negligable, but at least for slow connections people will be hit by this. I'll play with it. Perhaps there is a smarter version of it, as you say. > Jo=C3=A3o > > diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el > index ec8437176db..eae00923395 100644 > --- a/lisp/net/tramp-sh.el > +++ b/lisp/net/tramp-sh.el > @@ -5578,11 +5578,7 @@ tramp-get-remote-path > ;; Expand connection-local variables. > (tramp-set-connection-local-variables vec) > (with-tramp-connection-property > - ;; When `tramp-own-remote-path' is in `tramp-remote-path', we > - ;; cache the result for the session only. Otherwise, the > - ;; result is cached persistently. > - (if (memq 'tramp-own-remote-path tramp-remote-path) > - (tramp-get-process vec) vec) > + (tramp-get-process vec) > "remote-path" > (let* ((remote-path (copy-tree tramp-remote-path)) > (elt1 (memq 'tramp-default-remote-path remote-path)) Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 11:17:02 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 16:17:02 +0000 Received: from localhost ([127.0.0.1]:51841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX2ez-0004f2-Mx for submit@debbugs.gnu.org; Tue, 28 Feb 2023 11:17:02 -0500 Received: from smtp1-g21.free.fr ([212.27.42.1]:5980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX2ew-0004eb-0Y for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 11:16:59 -0500 Received: from zimbra60-e10.priv.proxad.net (unknown [172.20.243.210]) by smtp1-g21.free.fr (Postfix) with ESMTP id 88ED2B0052C; Tue, 28 Feb 2023 17:16:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1677601016; bh=6fhtSk5el5j8eeJ/2mTi9//FCDjVo59Pn5qFC3x928g=; h=Date:From:To:Cc:In-Reply-To:Subject:From; b=RKEvXIB411WZP337N6YmlGXFkepEdBp8b+hjn5H/2OG7e+3HG9JFU6LmikQp29ONB gFNd1A63jvhrvoYsIx7pANWw8RU1oMbM+/FCnxNgJqiJPeb8QBwOJCFJHLOc+mlAqb WNlmMo+lPJoVK7287kC0Pn1r5nckwzxgqj4GjNeUaNSBb1+p6f3QorHvJGr4KRTlQn 0Sxhi0cq9bNODYFVbvhtVgUJ6jKNxfM45L7Yn29h9pO37v+dlmX+Y7Ai7liftqBzN1 wBG57S0VLOBSTQ2Jx2uZdabcNxi6WxUw1xkPhPF23T3ZiCh+TcLO9wqNHlRHoWSP3B 5X4lrtwP2XuEA== Date: Tue, 28 Feb 2023 17:16:56 +0100 (CET) From: jeberger@free.fr To: Michael Albinus Message-ID: <1548871766.7639206.1677601016400.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: <87fsap6cyd.fsf@gmx.de> Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [193.240.154.120] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - NAV6 (Win)/7.2.0-GA2598) X-Authenticated-User: jeberger@free.fr X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: =?utf-8?Q?Jo=C3=A3o_T=C3=A1vora?= , 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Michael Albinus wrote: > jeberger@free.fr writes: >=20 > Hi J=C3=A9r=C3=B4me, >=20 > > Effectively, `(executable-find "rust-analyzer" t)` doesn't find it. >=20 > Your current buffer is a remote one when you call it, right? >=20 > > I'll try to find out why, but this point should indeed be fixed in > > `executable-find` rather than Eglot. >=20 > Pls set tramp-verbose to 10, rerun the test, and show me the Tramp > debug > buffer. Something like >=20 > --8<---------------cut here---------------start------------->8--- > # emacs -Q -l tramp --eval '(setq tramp-verbose 10)' --eval > '(add-to-list (quote tramp-remote-path) ...)' /ssh:user@host: --eval > '(executable-find "rust-analyzer" t)' > --8<---------------cut here---------------end--------------->8--- >=20 > > J=C3=A9r=C3=B4me >=20 Yes, it's with a remote buffer. I also noticed that `(exec-path)` is wrong: it only contains the standard paths ("/bin" "/usr/bin" "/sbin" "/usr/sbin" "/usr/local/bin" "/usr/local/sbin") plus the path of the current file. It's missing the paths from the remote environment and the paths I've added manually to `tramp-remote-path`. However `(shell-command "echo $PATH")` prints the correct path, and `(shell-command "rust-analyzer --version")` works. I tried with a minimalist emacs: ``` emacs -Q -l tramp \ --eval '(setq tramp-verbose 10)' \ --eval "(setq tramp-remote-path '(tramp-own-remote-path tramp-default-r= emote-path))" \ --eval '(setq shell-file-name "zsh")' \ /plink:user@host: \ --eval '(message (exec-path))' ``` But Tramp ignores `shell-file-name` and uses `/bin/sh` instead. E.g. in the Tramp debug buffer, I see lines like this: ``` 16:53:16.188134 tramp-send-command (6) # /bin/sh -l -c 'echo 1e814d9777358b= 9e0b5ab89ad5422ddb \"$PATH\"' 2>/dev/null; echo tramp_exit_status $? ``` and when I call `shell-command`, it's clear that it's using `sh` too even though `C-h v` shows that `shell-file-name` is correctly set to `zsh`. J=C3=A9r=C3=B4me From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 11:28:32 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 16:28:32 +0000 Received: from localhost ([127.0.0.1]:51877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX2q7-0004yM-TG for submit@debbugs.gnu.org; Tue, 28 Feb 2023 11:28:32 -0500 Received: from mail-oi1-f171.google.com ([209.85.167.171]:43898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX2q5-0004y8-Nc for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 11:28:30 -0500 Received: by mail-oi1-f171.google.com with SMTP id bk32so8440505oib.10 for <61748@debbugs.gnu.org>; Tue, 28 Feb 2023 08:28:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677601702; 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=VVjbvQN2+EJOZjidVEPLET86VtGB8vPQwhJxaIRHwLg=; b=iYl4WIcMi2DnVT0+tn2mEAQofrKCd7khjMf7FMSpvYjLNjxlOgKgY/CHp4IPNLXWDI wM1rSE0XAKuIsbR4hpeayz5Mi0ryp0TSZl3T9NVLwiSOD4jBfSS2qrNx0PvT8IaZFaUp WYZw7HN5GVzd+MUheQd0p0V0mF75iAWvTRWxduvq6cSOB9UAqmWtXGofpTg9CjvjJ9Hj PsVZTtCp+awO4oadJX6sntZe2PkX3pzPe6O/ORcoLi5va4KSk/KZlMUzhCCEF6p+PT6X oBrJDgBXN0Yzjcn326cbfLNsA+PSwcZ0S4ah1kfxa79IEoah2HxUFJL14N+BQgqjFCvr vsTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677601702; 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=VVjbvQN2+EJOZjidVEPLET86VtGB8vPQwhJxaIRHwLg=; b=TRLqdD5qLYyBNg+/YWvcNLtk3LlV4oTyzATY7vTTCsCAXVtIMrt7vbuozoGm2+TH45 MtPCx+Z26H1yAni8zDOmO3RRIb0SaZqMKjfNGXrq9/gx5Mlywt0CTdNh8+4SEKD7Dj+q +3v+G7sCyhaOX6Uzs4GZfT7ftVS1Ex22m6njnd1fD0EIDQHTdpFR4Y0vQE2uNnfePydH Sqkmy+pA8PVnKfrikMueV/3j/UNiVYzmVvqwxJYxjWbcVcHhReCGFZdJvljXdoFn3G8f +qUh3dOTynKTj5ORtShpyuuU1ed6etR4449eyBLL/Yo5viSALMdx9+1E5Efqn58Os397 54Rw== X-Gm-Message-State: AO0yUKXHtxfECoBAMhsy5NFHMrPuptjM+NDGQ3RumRzzmjU65BZOuQMW PDhG4z/NmOC9EK8Toq1Yd09ugtG/X8WYFXFm13U= X-Google-Smtp-Source: AK7set/RGyM03lUgiXC7f/J028/7Z/z404BAfrd/4CozV2vAtp1ztf5AH2a84jMX1fLI0mqYbE83C/qBDxObUT0Zd3A= X-Received: by 2002:a05:6808:2799:b0:36e:f6f5:66a2 with SMTP id es25-20020a056808279900b0036ef6f566a2mr1196160oib.8.1677601702710; Tue, 28 Feb 2023 08:28:22 -0800 (PST) MIME-Version: 1.0 References: <87sfeqq8z5.fsf@gmail.com> <75486564.6945596.1677592772065.JavaMail.root@zimbra60-e10.priv.proxad.net> <87r0u9devu.fsf@gmx.de> <87bkld6ctm.fsf@gmx.de> <87356p6b7g.fsf@gmx.de> In-Reply-To: <87356p6b7g.fsf@gmx.de> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Tue, 28 Feb 2023 16:28:11 +0000 Message-ID: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: Michael Albinus Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, Feb 28, 2023 at 3:50=E2=80=AFPM Michael Albinus wrote: > > Jo=C3=A3o T=C3=A1vora writes: > > Hi Jo=C3=A3o, > > >> I don't expect a user to solve it. And a user shouldn't expect that > >> changing a variable is sufficient. > > > > I respectfully but diametrically disagree here. > > > > Here's an untested patch that could solve this. It can probably > > be made smarter by only invalidating the cache when a change > > to the variable is detected. > > Hmm. It will delay startup of remote processes, if tramp-remote-path > doesn't change for different processes. Perhaps it is negligable, but at > least for slow connections people will be hit by this. > > I'll play with it. Perhaps there is a smarter version of it, as you say. Here's another still untested but smarter patch. Caches fully on until user messes with tramp-remote-path, else immediately flushed. diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 56436d32970..335d718b139 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi @@ -2316,10 +2316,7 @@ Remote programs @end lisp When remote search paths are changed, local @value{tramp} caches must -be recomputed. To force @value{tramp} to recompute afresh, call -@kbd{M-x tramp-cleanup-this-connection @key{RET}} or friends -(@pxref{Cleanup remote connections}). - +be recomputed, but not by the user, so don't worry about this. @node Remote shell setup @section Remote shell setup hints diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index ec8437176db..ef618855584 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -5571,10 +5571,18 @@ tramp-check-remote-uname "Check whether REGEXP matches the connection property \"uname\"." (string-match-p regexp (tramp-get-connection-property vec "uname" ""))) +(defvar tramp-last-used-remote-path nil) + (defun tramp-get-remote-path (vec) "Compile list of remote directories for PATH. Nonexistent directories are removed from spec." (with-current-buffer (tramp-get-connection-buffer vec) + (when (not (equal tramp-last-used-remote-path tramp-remote-path)) + ;; If user has tweaked `tramp-remote-path', flush any caches + ;; bug#61748. + (dolist (v (list vec (tramp-get-process vec))) + (tramp-flush-connection-property v "remote-path"))) + (setq tramp-last-used-remote-path tramp-remote-path)) ;; Expand connection-local variables. (tramp-set-connection-local-variables vec) (with-tramp-connection-property From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 11:41:17 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 16:41:17 +0000 Received: from localhost ([127.0.0.1]:51887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX32S-0005JX-Ph for submit@debbugs.gnu.org; Tue, 28 Feb 2023 11:41:17 -0500 Received: from smtp2-g21.free.fr ([212.27.42.2]:55778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX32R-0005JP-7W for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 11:41:16 -0500 Received: from zimbra60-e10.priv.proxad.net (unknown [172.20.243.210]) by smtp2-g21.free.fr (Postfix) with ESMTP id CE4F32003C8; Tue, 28 Feb 2023 17:41:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1677602474; bh=GmsWjYGiJ2xMwObA8krPZ1iv1WW6f6Ch5IAfGQaa0kY=; h=Date:From:To:Cc:In-Reply-To:Subject:From; b=YuFu+N94eCkLJxynLFKzfuwIxEZu88tR8rLES8FjvVtjQEWCYvEFF2El2f5gJSAho M10+x7ag/l2MdFgJDg+46ofRYI9fpbY/VyxvpccqEWdPkhNm6xn7A1uBGfHwrqgiWK cc1mwzDqddqX/pZIDa9biVOfUlfAO4yqNkUlUo6AF5to/HXl2pr3UqgblqisJ4pc+n c7teRHtYe9xe0T2MfYCMUl8x/csff78uEKXgONo0JsnnFO03WOck+vMlkUQKqjYTjp bfIzJ2/fqYG7AsqdfmLpBFLzTHluj+ND/M/H2ICyoix+E/W74J0Bqk5mIrqYhjwbq9 /UIIvP6jYs5mQ== Date: Tue, 28 Feb 2023 17:41:13 +0100 (CET) From: jeberger@free.fr To: Michael Albinus Message-ID: <1197905835.7802762.1677602473674.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: <1548871766.7639206.1677601016400.JavaMail.root@zimbra60-e10.priv.proxad.net> Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [193.240.154.120] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - NAV6 (Win)/7.2.0-GA2598) X-Authenticated-User: jeberger@free.fr X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: =?utf-8?Q?Jo=C3=A3o_T=C3=A1vora?= , 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Huh, I just noticed that Emacs doesn't use my configured value for=20 `tramp-remote-path`. I've set it through `customize` and it has the correct value in `custom.el` but `C-h v` shows that it has been reset to another value that doesn't include `tramp-own-remote-path`. It was fine when I first set it up (in 2016 according to the `hg` log) but it no longer is :( The issue is not in my config, I can reproduce it with: ``` emacs -Q --eval "(custom-set-variables '(tramp-remote-path (tramp-own-remot= e-path tramp-default-remote-path)))" -l tramp ``` Then `C-h v` or `(customize-variable 'tramp-remote-path)` shows that it has been reset to: ``` (tramp-default-remote-path "/bin" "/usr/bin" "/sbin" "/usr/sbin" "/usr/loca= l/bin" "/usr/local/sbin" "/local/bin" "/local/freeware/bin" "/local/gnu/bin= " "/usr/freeware/bin" "/usr/pkg/bin" "/usr/contrib/bin" "/opt/bin" "/opt/sb= in" "/opt/local/bin") ``` Other Tramp customizations (e.g. `'(tramp-verbose 10)`) work fine. Regards, J=C3=A9r=C3=B4me From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 11:43:19 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 16:43:19 +0000 Received: from localhost ([127.0.0.1]:51892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX34R-0005Mr-Al for submit@debbugs.gnu.org; Tue, 28 Feb 2023 11:43:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX34P-0005Md-KT for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 11:43:17 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pX34G-0006hD-03; Tue, 28 Feb 2023 11:43:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=2K7AnrHYaA8m7RX6Nv3PIVqWpQq4l1TmYAyXnLg19AI=; b=NwfVpua5M6gCokcsbm6o DDy/+FMmtt9jPka1SdMQax4ys5QKm0SNA89USQAmGQa2EQDlE0Np6i9WAffzlg3mrtGDaoElmD0zM wONTACtcbuaboFBP4w+u974i6PU3OjE4zWuf3hEnHTFpVFm5BgaepNnAg4kvXogJme/A7qIEZV07l S4V3Ig0rs3VNUpxj/5Aexe3vB7Bd7dCRpu1f5UE6tQs8iNxmyDo/kGhKqXacqTIO5nyYn6fH9Pc0H pTCl9v0CiCMXdo//BpDiOjL1CWgB83pBIQZwsl7V9Dahn/AYsiWjrSbu6u1V08+2QY/PaujIREUsb 4V3k+p+u8vwl3A==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pX34F-0004nA-DC; Tue, 28 Feb 2023 11:43:07 -0500 Date: Tue, 28 Feb 2023 18:43:18 +0200 Message-Id: <834jr5hhax.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= In-Reply-To: (message from =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= on Tue, 28 Feb 2023 14:24:01 +0000) Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> <87y1oid5h7.fsf@gmail.com> <87pm9umbar.fsf@gmx.de> <87sfeqq8z5.fsf@gmail.com> <87mt4yrmt6.fsf@gmx.de> <87356qq7o4.fsf@gmail.com> <87edqarlcr.fsf@gmx.de> <87bkldswww.fsf@gmx.de> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, michael.albinus@gmx.de, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: jeberger@free.fr, 61748@debbugs.gnu.org > From: João Távora > Date: Tue, 28 Feb 2023 14:24:01 +0000 > > On Tue, Feb 28, 2023 at 2:10 PM Michael Albinus wrote: > > > > João Távora writes: > > > > Hi João, > > > > > At the very least, the documentation of tramp-remote-path should > > > state that the variable doesn't take immediate effect and that > > > something must be done (is it really restarting Emacs, or is there > > > some M-x tramp-cleanup-* thing that has to be done?) > > > > > > So, if "anything goes", is such a minimal docstring patch > > > acceptable? > > > > Sure. RTFM :-) > > I didn't complain about the manual. I complained about the > variable docstring, which is what people read when changing a > variable's value. If you don't think there's a shortcoming > there feel free to let me know and I won't waste my time. I > read your "patches welcome" as meaning that you welcomed > patches to fix said shortcoming. If you don't welcome > patches, say "patches not welcome" instead. Please be less belligerent, João. Michael doesn't deserve this unfriendly attitude. Even if you disagree with his judgment. Thanks in advance. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 11:49:32 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 16:49:32 +0000 Received: from localhost ([127.0.0.1]:51896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX3AS-0005b4-5N for submit@debbugs.gnu.org; Tue, 28 Feb 2023 11:49:32 -0500 Received: from mail-ot1-f53.google.com ([209.85.210.53]:41694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX3AQ-0005ap-2V for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 11:49:30 -0500 Received: by mail-ot1-f53.google.com with SMTP id f19-20020a9d5f13000000b00693ce5a2f3eso5930710oti.8 for <61748@debbugs.gnu.org>; Tue, 28 Feb 2023 08:49:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677602964; 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=joJ6bXGwTWXyfB0VfWcT1nCu+kWVZVfxd3GYcIMPaxQ=; b=LQ1X47PzrojDblDXUNw60E18oyjy59HFCjnSjYZ/jxG7r2GcN1gYJ13pEUdgfEw8MP YnuNSVCPX/EuW8B5F6JmO9ygn2VqKDg6ExOMGAE7rvgn2mOpIofSqbR+rA9ib6Tp9wws puze2gdh+iDmDfzEEWB5q4R0YslIJAyJ4dM8eLii6E9lYCtptHe3eebCBblRkPgxT7lM xZk4vqXFrg0UdRzZLtehcInn4ECiVHsw+So7dFcxdJ7/GqUSTyP9ZltiV5acLcrVnUmk EaRY4aTZqj3fgRYHrL5aZNIrPy+qr9p4D0hYS30bXW3UMxP+7k+dwyigFBt6AO6keoeS TwbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677602964; 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=joJ6bXGwTWXyfB0VfWcT1nCu+kWVZVfxd3GYcIMPaxQ=; b=v8IiAznCbjYorNhsxcAY/I8JMU28nLcKEd+/DoKAyKELpbck7u01mbW06M/+qU9lfu WGju9Mz9eqkRvqx7cKkZZ8I56TZvk7HW999ky4WnEpardNk6U3mVlye8G20LxKAXrR3Q FIu8tCSG1XIiEDCLzUvFlYwxf4Tb4jxHcaRXRqHdtj9c3f92WGVA3IjSS1NRZ0JAKC0Q h3K4v3pXg331jLXoj1u+IVB7sYG5DL7Wpj+AIO6Dk6ReEwGsJHY9pG9CH+mUaTj1sXEj WcYhP8QHSxF21TGqD5FLT950H3FhbH526OqiD7HYlWHZoC+Pi4kPfMLfVgTqZoEaC4vl t4Ag== X-Gm-Message-State: AO0yUKWTw86LhTH4aepF9dhUZrjHm0QZECFvsF06DqoW+uI3EcxthzNp VC6PZHMO9QF8sXZ2ki/6A/DxpE0vgMrPwnxamWg= X-Google-Smtp-Source: AK7set936tJGhhaMJE/fydHOIRVu4aullS4qeQSH5erNSI8BBdT3901HElwFwBrx8xR6X+8FeOUnGwCDOaszA1NigUU= X-Received: by 2002:a9d:454a:0:b0:68b:8067:b5d4 with SMTP id p10-20020a9d454a000000b0068b8067b5d4mr1201438oti.3.1677602963213; Tue, 28 Feb 2023 08:49:23 -0800 (PST) MIME-Version: 1.0 References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> <87y1oid5h7.fsf@gmail.com> <87pm9umbar.fsf@gmx.de> <87sfeqq8z5.fsf@gmail.com> <87mt4yrmt6.fsf@gmx.de> <87356qq7o4.fsf@gmail.com> <87edqarlcr.fsf@gmx.de> <87bkldswww.fsf@gmx.de> <834jr5hhax.fsf@gnu.org> In-Reply-To: <834jr5hhax.fsf@gnu.org> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Tue, 28 Feb 2023 16:49:12 +0000 Message-ID: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, michael.albinus@gmx.de, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, Feb 28, 2023 at 4:43=E2=80=AFPM Eli Zaretskii wrote: > > > Sure. RTFM :-) > > > Please be less belligerent, Jo=C3=A3o. Michael doesn't deserve this > unfriendly attitude. Even if you disagree with his judgment. Well, I'm the one who was asked to go RTFM. Twice. Jo=C3=A3o From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 12:10:11 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 17:10:11 +0000 Received: from localhost ([127.0.0.1]:51901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX3UR-00067W-5W for submit@debbugs.gnu.org; Tue, 28 Feb 2023 12:10:11 -0500 Received: from mail-oo1-f50.google.com ([209.85.161.50]:40870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX3UO-00067F-UO for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 12:10:09 -0500 Received: by mail-oo1-f50.google.com with SMTP id bd3-20020a4aee03000000b00517affa07c0so1664524oob.7 for <61748@debbugs.gnu.org>; Tue, 28 Feb 2023 09:10:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677604203; 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=sjYqmHeqnbOB8vBqpJYLxilVwtFM9+e0irIFrjp2wlQ=; b=ZUha/PkTE3DQOW23dZMBGOnB5MwIZ+X0d9rc22lPj1N4yI6xfb3sCk5SB1ciQZhxM8 vhVidptSUWrYghXuIwHfmCWH9U9ouBo53tEVjV4kX+LzTipa35NG830+j4E6ncWu4p2W LXUv7KkZj9yKv4I3qojj1GVk726osqwacG+ahxKbgFQk+DR+VD8JmUMLDiFKxUmtrwDU SBdrMdFBALlMpuLv92MfQ1MQEGefuMlw0Z83sKhb9GtIEBZAq+raDO7PQE2N9OeX6PCJ QFxFaSW0mruIFkcIsFOrKWLmLkfEp9KqZ40X6bs/JJCo7Z4jYyKVG4Ewf4cNY25mOhQ2 PNSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677604203; 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=sjYqmHeqnbOB8vBqpJYLxilVwtFM9+e0irIFrjp2wlQ=; b=haD3vT6Ulh0boBeELyi+pNTd4efXKOb+6yt4W6hXNpAeuRfp3HT0qBTzWRWgX4ZV6J t0kHtis1dpgNEEe6SBZpr5auKsPhc2Rt/jJVrIuajzCTBssuCE/uH4ILhOh75OYHfkOI 2OCA5bF5MFvN5lUC1NnkGyVKc2Ym0Lsxt+hrowTzEd340lB54iguZqLTxnXuJAOf00ZV tJ6Wo1lS6v+kvnCqsPa5SUhAj19IkHa15hkIr+Wa5F0+qbxwE1iM/eTgvvXf6sfr2oCA uOj/X9esCol+Aj/BtyXRIE8Ukrmjrfjd0LfyJu8dongZxgKGXJp9NW6FdmLtX5voIMbS V4Yw== X-Gm-Message-State: AO0yUKUgVHzlZS3Y1tn69LuDhLWSGVVaxIlW6aWh0fcxx1+BqNdJqgCl 4M92ZvLD3PUiYtE9xDD7MXnq3omNKHy7xqVoYNA= X-Google-Smtp-Source: AK7set+ClcSmeeFSPR4XiUaDffeiaicfBhfvw7UyS/ppBbkj1qIMo6ka5t2X3BWD+Zd88CzrSIWBvIzn3GWQmRtkU6I= X-Received: by 2002:a4a:a302:0:b0:525:2b47:93cb with SMTP id q2-20020a4aa302000000b005252b4793cbmr1063909ool.1.1677604203214; Tue, 28 Feb 2023 09:10:03 -0800 (PST) MIME-Version: 1.0 References: <1548871766.7639206.1677601016400.JavaMail.root@zimbra60-e10.priv.proxad.net> <1197905835.7802762.1677602473674.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: <1197905835.7802762.1677602473674.JavaMail.root@zimbra60-e10.priv.proxad.net> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Tue, 28 Feb 2023 17:09:51 +0000 Message-ID: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: jeberger@free.fr Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: Michael Albinus , 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, Feb 28, 2023 at 4:41=E2=80=AFPM wrote: > > Huh, I just noticed that Emacs doesn't use my configured value for > `tramp-remote-path`. I've set it through `customize` and it has the > correct value in `custom.el` but `C-h v` shows that it has been > reset to another value that doesn't include `tramp-own-remote-path`. Does this mean the bug you experience goes away when you add either tramp-own-remote-path or ~/bin to that variable and make sure it is set correctly? Jo=C3=A3o From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 12:56:37 2023 Received: (at 61748) by debbugs.gnu.org; 28 Feb 2023 17:56:38 +0000 Received: from localhost ([127.0.0.1]:51959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX4DN-0007KZ-Jo for submit@debbugs.gnu.org; Tue, 28 Feb 2023 12:56:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX4DL-0007KI-Mr for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 12:56:36 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pX4DF-0004id-Ca; Tue, 28 Feb 2023 12:56:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=vKZUtf5esa9iTAMvscAmy3v+MrbX+TpPmpEkUKwLNXM=; b=iKweVv1qxOMwafyZ97wT bWNqKh7bz5oKZQCT/AD/iex9Jdqo88HASmp8+nDaffMwJqtd4uSh6Z7ql1TkPZBkV77LMJIj5z+8l 1/zriwcw9u4fRJHx61avQ3E0udzJaCZiT0xJ//lodUbQpL7LpT0uV9J1vEb3+T7SjGCoFloFX4OJL i6jTZvQTfM3xxLCTEPBF791CItRFM1fKOf1a8aE9+Dkc4jABkoPaxygNvX2WY4j9hFglfX6ZTV8xK zxDMKLFaODXbD1MUNcTsKYQ0wNET0pJELXCs/23wStbsHQ2XaD/WGPgSf0E/XyljSMOSthR7bOfAI FiU6AkgsuNB6GQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pX4DB-0003pu-HX; Tue, 28 Feb 2023 12:56:28 -0500 Date: Tue, 28 Feb 2023 19:56:36 +0200 Message-Id: <83zg8xfzcb.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= In-Reply-To: (message from =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= on Tue, 28 Feb 2023 16:49:12 +0000) Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> <87y1oid5h7.fsf@gmail.com> <87pm9umbar.fsf@gmx.de> <87sfeqq8z5.fsf@gmail.com> <87mt4yrmt6.fsf@gmx.de> <87356qq7o4.fsf@gmail.com> <87edqarlcr.fsf@gmx.de> <87bkldswww.fsf@gmx.de> <834jr5hhax.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, michael.albinus@gmx.de, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: João Távora > Date: Tue, 28 Feb 2023 16:49:12 +0000 > Cc: michael.albinus@gmx.de, jeberger@free.fr, 61748@debbugs.gnu.org > > On Tue, Feb 28, 2023 at 4:43 PM Eli Zaretskii wrote: > > > > > Sure. RTFM :-) > > > > > Please be less belligerent, João. Michael doesn't deserve this > > unfriendly attitude. Even if you disagree with his judgment. > > Well, I'm the one who was asked to go RTFM. Twice. With a smiley. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 23:34:34 2023 Received: (at 61748) by debbugs.gnu.org; 1 Mar 2023 04:34:34 +0000 Received: from localhost ([127.0.0.1]:52387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXEAj-0001hk-NX for submit@debbugs.gnu.org; Tue, 28 Feb 2023 23:34:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXEAi-0001hX-Hx for 61748@debbugs.gnu.org; Tue, 28 Feb 2023 23:34:32 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXEAc-0007fi-Tl; Tue, 28 Feb 2023 23:34:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=tRkQaOR1l5L2ez0D4PbUdXFsP8PgeqQnPkLlNsyyAgE=; b=BmTn2HKzll74 hURm+Qz9O9mNcy56/spiZFqCcJZr1quozXiZbbhU0pn/7JoWZz7RTB9r5upxzX9fY/TuV8KmyyxNb TXlZm0N4qFLdtpvFzeSFkmMxE8mz8XZfBv/Y/JzBKKzKTjW9JTFzp68W6Fefv9yGR/bVOPf3mXZuQ L6qwdtwpGrk6AGx6fwGqdLzQUJUq8whT7w8hjstO6QTtweqru1s55X+Fe1Jb7j8fSjZF+l72AG1zf 4a1Ge4jGObxRnHoB7hFxYkvKVD/2y2OBDIOD5nDcnpeef9azcU4yBHgizNeyx9kpy1jhRDMkaIPWB jQ/6E2MQGjtyef8hma6YwA==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1pXEAc-0003er-Kb; Tue, 28 Feb 2023 23:34:26 -0500 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Eli Zaretskii In-Reply-To: <83zg8xfzcb.fsf@gnu.org> (message from Eli Zaretskii on Tue, 28 Feb 2023 19:56:36 +0200) Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> <87y1oid5h7.fsf@gmail.com> <87pm9umbar.fsf@gmx.de> <87sfeqq8z5.fsf@gmail.com> <87mt4yrmt6.fsf@gmx.de> <87356qq7o4.fsf@gmail.com> <87edqarlcr.fsf@gmx.de> <87bkldswww.fsf@gmx.de> <834jr5hhax.fsf@gnu.org> <83zg8xfzcb.fsf@gnu.org> Message-Id: Date: Tue, 28 Feb 2023 23:34:26 -0500 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61748 Cc: michael.albinus@gmx.de, jeberger@free.fr, joaotavora@gmail.com, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > > Please be less belligerent, João. Michael doesn't deserve this > > > unfriendly attitude. Even if you disagree with his judgment. > > > > Well, I'm the one who was asked to go RTFM. Twice. If you feel someone spoken harshly to you, please do not respond by being harsh. That tends to create a cycle of retaliation that makes things worse. Please look for a way to respond without anger. In this case, reportedly the other was not actually harsh to you; he softened it with a smiley. But if someone else really speaks to you harshly, please don't retaliate with similar harshness. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 01 03:09:58 2023 Received: (at 61748) by debbugs.gnu.org; 1 Mar 2023 08:09:58 +0000 Received: from localhost ([127.0.0.1]:52549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXHXC-0002OL-IQ for submit@debbugs.gnu.org; Wed, 01 Mar 2023 03:09:58 -0500 Received: from smtp3-g21.free.fr ([212.27.42.3]:56112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXHX9-0002O9-Ui for 61748@debbugs.gnu.org; Wed, 01 Mar 2023 03:09:57 -0500 Received: from zimbra60-e10.priv.proxad.net (unknown [172.20.243.210]) by smtp3-g21.free.fr (Postfix) with ESMTP id 4A76813F892; Wed, 1 Mar 2023 09:09:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1677658194; bh=VHazwcFDOzGRW1LyxU6xhnWBVoMehNaT6fMT958lF20=; h=Date:From:To:Cc:In-Reply-To:Subject:From; b=uxryhV7GdGIn3mEt8/8YM1Cr/UUWKMCWVeQ/9h+F2zSkpvv1iArD5weCbofUp8dAX Xu1ub/tyqLsD/4u7NMArnXTsCvvb/7zG4lRpNlimCs/lD4Fm2DP2f7wKKo0dW+1Zmp BygdBClf1NXpBwjQYj4PF5nrnnCABKFernS2ER298ArRADQ1hjFqgkssFxEhP0nxSX 8lSzE01/ehflaEzC/9qEoCR4MD1oBQuUpb7fM6YmoXBCoPkW4jZj7Op9Z3VRt0fL2v w/35kSWtQvKPlSL4WcuINkLSFaao74V12mjIrHle2Cl3zwAd5ksxEJWbAzNKCy79Mq TzXHv3UTsWgRA== Date: Wed, 1 Mar 2023 09:09:53 +0100 (CET) From: jeberger@free.fr To: =?utf-8?Q?Jo=C3=A3o_T=C3=A1vora?= Message-ID: <1055906941.11380565.1677658193477.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [193.240.154.120] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - NAV6 (Win)/7.2.0-GA2598) X-Authenticated-User: jeberger@free.fr X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: Michael Albinus , 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Jo=C3=A3o T=C3=A1vora" wrote: > On Tue, Feb 28, 2023 at 4:41=E2=80=AFPM wrote: > > > > Huh, I just noticed that Emacs doesn't use my configured value for > > `tramp-remote-path`. I've set it through `customize` and it has the > > correct value in `custom.el` but `C-h v` shows that it has been > > reset to another value that doesn't include > > `tramp-own-remote-path`. >=20 > Does this mean the bug you experience goes away when > you add either tramp-own-remote-path or ~/bin to that > variable and make sure it is set correctly? >=20 Adding `tramp-own-remote-path` and making sure that it is set correctly fixes my point 2, but then `rust-analyzer` doesn't have the path set and so fails to find the Rust toolchain. So my patch is still required to fix that part. J=C3=A9r=C3=B4me From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 01 03:39:27 2023 Received: (at 61748) by debbugs.gnu.org; 1 Mar 2023 08:39:27 +0000 Received: from localhost ([127.0.0.1]:52603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXHzj-0003A5-Dg for submit@debbugs.gnu.org; Wed, 01 Mar 2023 03:39:27 -0500 Received: from mout.gmx.net ([212.227.15.15]:55447) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXHzi-00039s-5p for 61748@debbugs.gnu.org; Wed, 01 Mar 2023 03:39:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677659958; i=michael.albinus@gmx.de; bh=/TO961ChdY3YlOn4MOWTSvrX0Z4HOXdSOlP3+YtdLpQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=ozqEm+cony+DZnF8OyfG8mP24ytBsC+ADf5Dw1qp1xrgutihseVRKvMESsVsG21U3 OopH93uLrHUBNBiuyR4/HwTH4n5unno1G3fq42JijfYzZJTJ63PCRcJF/9nDa0sDUR 1XMER5jzcGecxrUstaCd935dkNvrwzRAMnDUJfEji4qSvJrEOLqQXUZ+dZmruOCqTw 4OI8nNJrYPA13Z72AEkPtZWqbk94LnM+Eh0UOU/vPzgxIn8N8xzVsnwRLo15zKin8P NaUQpLdkFzfTnlRZkjP5FS/g09UlVhlMEQBuikPcQ3CX/fBRnC+eurzIb2h7kZioig 9aDMyUo8RZYiQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MgvvT-1oqG4J0Sg1-00hMYj; Wed, 01 Mar 2023 09:39:18 +0100 From: Michael Albinus To: jeberger@free.fr Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: <1197905835.7802762.1677602473674.JavaMail.root@zimbra60-e10.priv.proxad.net> (jeberger@free.fr's message of "Tue, 28 Feb 2023 17:41:13 +0100 (CET)") References: <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <1197905835.7802762.1677602473674.JavaMail.root@zimbra60-e10.priv.proxad.net> Date: Wed, 01 Mar 2023 09:39:16 +0100 Message-ID: <87y1og50i3.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:0msQb9ueHLri00JnzVW7Ec0sekQKAps2HZO+fCYxcPCQ5B7Mh9W zjTjbO8Evld1nttXd+kcNAYBSZV9wAKGrO8w49oQMD/0DPyXkpjx1qy6fEqucnRAy7qAShi YRgF34PdTz9geG92GAFtivvhEuJ0VWqofkDAz4f9Fe0TYBSVJm0uE+LTU1Sl04bWFWXSFQY B4FuLBWbAKkgWryoq/5cQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:9ArzW7KQwjM=;fY77tmsoOS2UUUE39+U1KgaiFpo CMuJ3aw+Xu4Nu5Am58JWsAepRCXuxD6EpzYlmeOn08f65/Ttw2M5ZcHo1okYMhlsQOC503ko/ RB9GU82EF9pck5AWIVDrwn5aaKJDjjyNh/N3UzSqxHLmoAoOSMit+rVjgR6B3VWpL+g6rQ2v1 UEVAInu72SZYrfysBw+kOR2cCpAr7DLZq9BPIF6ATBSkUPpzkXZEYFiVWcXvufww4YyaFyQGG Qbchh/mz0VHxKc+K2yqe17v0lCDpFgDY9iwoDg+5mN79f2iboGDcVui9aopNh0QJomR6wuLwv ne+anpbiJj3ND2G7Ua9ocl87T8COaLbCrJbB/VgxNJd9f4Z5fYCmVjqksfgwE/xTpGyHiHhRl dOb47SuHo3xqGBtnXjIQ7lkBXCBND24mSQ6JOcuwG8J/TefwPjeJUSL3/8JxCOB3lZALzMHS1 FwwAt/WFmYA6l/ROelP13/N41me2IRDi/fgwo+mjF23gcTysipizZ2q+4NB8eqJipEOaofDNN aCF81dbUI1FOmXToIU/VpA844VMyyD7p9vczK49o8GhvqCEzIIDZxCSVUBsHITy+on7J6DmZV VkPbVO8BBf4Jf3qIcMvXrg7aqVcF/btNdu0eQxGtfMTrmk9k6dUy+4tH9Wev9QwEozjWa6afH fAmXS78rV+srYn0K2gLSeU0Bb9lIfwlcDp0KGughMfqDZB7ukJyWi1yqG5152nf/Z8F0jC0RD E827XpD3U7l4wEelX4uNSMuj8lwmNsvgmYcFILQVNHECE03iWxeGYVVgjpVCKhIRf0GuoRlR8 iaB0xdlM7Dg7M1rzUDLUGwwKUoxiO1Qb05ihKVngRkJBz07GGVx6H2bBokWB4Cpf22iWYU3DG SonrrV7njRhvbr2bqHC0EMQjQrifxcR42Qk/rzfNe6kfk3T4EVM0rOzke3aVHMhLHiiuyMA7S 4DQwXv9HCKAodn8Lqd6KbBEFRC8= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= , 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) jeberger@free.fr writes: Hi J=C3=A9r=C3=B4me, > Huh, I just noticed that Emacs doesn't use my configured value for=20 > `tramp-remote-path`. I've set it through `customize` and it has the > correct value in `custom.el` but `C-h v` shows that it has been > reset to another value that doesn't include `tramp-own-remote-path`. > > It was fine when I first set it up (in 2016 according to the `hg` > log) but it no longer is :( > > The issue is not in my config, I can reproduce it with: > > ``` > emacs -Q --eval "(custom-set-variables '(tramp-remote-path (tramp-own-rem= ote-path tramp-default-remote-path)))" -l tramp > ``` > > Then `C-h v` or `(customize-variable 'tramp-remote-path)` shows > that it has been reset to: > > ``` > (tramp-default-remote-path "/bin" "/usr/bin" "/sbin" "/usr/sbin" "/usr/lo= cal/bin" "/usr/local/sbin" "/local/bin" "/local/freeware/bin" "/local/gnu/b= in" "/usr/freeware/bin" "/usr/pkg/bin" "/usr/contrib/bin" "/opt/bin" "/opt/= sbin" "/opt/local/bin") > ``` > > Other Tramp customizations (e.g. `'(tramp-verbose 10)`) work fine. Try --8<---------------cut here---------------start------------->8--- # emacs -Q --eval "(custom-set-variables '(tramp-remote-path '(tramp-own-re= mote-path tramp-default-remote-path)))" --8<---------------cut here---------------end--------------->8--- Note the additional apostrophe. > Regards, > J=C3=A9r=C3=B4me Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 01 03:51:35 2023 Received: (at 61748) by debbugs.gnu.org; 1 Mar 2023 08:51:35 +0000 Received: from localhost ([127.0.0.1]:52629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXIBS-0003a0-VX for submit@debbugs.gnu.org; Wed, 01 Mar 2023 03:51:35 -0500 Received: from smtp1-g21.free.fr ([212.27.42.1]:51472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXIBQ-0003Zm-SK for 61748@debbugs.gnu.org; Wed, 01 Mar 2023 03:51:34 -0500 Received: from zimbra60-e10.priv.proxad.net (unknown [172.20.243.210]) by smtp1-g21.free.fr (Postfix) with ESMTP id 8C25EB0053A; Wed, 1 Mar 2023 09:51:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1677660691; bh=zIaycb5kfQfa3k3ws6sYVMQwM0E9BCJ+bbTuAXlcWA0=; h=Date:From:To:Cc:In-Reply-To:Subject:From; b=J9x7UJZlnl+7wXk0pUBRdCXWYxApWvXAUOsSvpIZhVT+EqwzrXOQUQ+j0SfDlNsU4 hlm6m2mq7OYTYX5B/LYfN5pmwdR/f2mkI/xfIOg5Cyus2H1lETHrN8Dzx4GsPkuWN/ AynwA5TV/p02ZuU/rQZVp9buooEHOW1lSoMiNAINmn7xTFgGHkS1TyccNYMJ1uUQxt XwqsF5IZZ9MRqOhvcZIolvJ+DaKysONMi5bGCAIf/EcfZeu4kef1L7yYNyHQyeRpQs gqN/0f9l9gmrK4RqgL95D+raiomHR3e8Z4keMIBPaW4acmxDgag/jIBHZXqy8j7jEg 5WKHwd39ItEzw== Date: Wed, 1 Mar 2023 09:51:31 +0100 (CET) From: jeberger@free.fr To: Michael Albinus Message-ID: <875433158.11661070.1677660691496.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: <87y1og50i3.fsf@gmx.de> Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [193.240.154.120] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - NAV6 (Win)/7.2.0-GA2598) X-Authenticated-User: jeberger@free.fr X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: =?utf-8?Q?Jo=C3=A3o_T=C3=A1vora?= , 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Michael Albinus" wrote: > jeberger@free.fr writes: >=20 > ``` > > emacs -Q --eval "(custom-set-variables '(tramp-remote-path > > (tramp-own-remote-path tramp-default-remote-path)))" -l tramp > > ``` >=20 > Try >=20 > --8<---------------cut here---------------start------------->8--- > # emacs -Q --eval "(custom-set-variables '(tramp-remote-path > '(tramp-own-remote-path tramp-default-remote-path)))" > --8<---------------cut here---------------end--------------->8--- >=20 > Note the additional apostrophe. >=20 Hi Michael, I tried both with or without the second apostrophe, same result. Regards, J=C3=A9r=C3=B4me From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 01 04:08:07 2023 Received: (at 61748) by debbugs.gnu.org; 1 Mar 2023 09:08:07 +0000 Received: from localhost ([127.0.0.1]:52659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXIRO-00045V-PQ for submit@debbugs.gnu.org; Wed, 01 Mar 2023 04:08:07 -0500 Received: from mout.gmx.net ([212.227.15.19]:43691) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXIRI-00044u-Hp for 61748@debbugs.gnu.org; Wed, 01 Mar 2023 04:08:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677661667; i=michael.albinus@gmx.de; bh=LrikKiOmQbICxL9pPBcGMfVPUgMtjXkTTCZWe9cxyg0=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=a3pWk623DWWayAxW7Q7So3FM+XadcHLywllaYBIyEURiXjApE5wfVaDPgBf3Ly+Ru dD/g9inmOpkWmUzTLRnFqKtQiIghfkZmzlMd3YV4lC2afURzQuP28Nyzs9BMb9AZ/G VQBF1i4VLvkw033jYC+cLtlz/7x2yNcSHIgg5EOgtoriEq+V7j8wYGy0YKrpvofJkR zTSRHs14MDQY73H1E5aRdn/z3K0mR7+jWJEY3mjTt3CgG2/ZBioCdPLNFPfim5jlVO /PlchP+G8tBG06+q1TQKlnBlqnd0VVfoQdEZuKJmKqs1nwRZg/W+DXhkXAFx4uesWW nRs0/s1kDTcew== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N1wlv-1oVTMw1b1V-012INO; Wed, 01 Mar 2023 10:07:47 +0100 From: Michael Albinus To: jeberger@free.fr Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: <875433158.11661070.1677660691496.JavaMail.root@zimbra60-e10.priv.proxad.net> (jeberger@free.fr's message of "Wed, 1 Mar 2023 09:51:31 +0100 (CET)") References: <875433158.11661070.1677660691496.JavaMail.root@zimbra60-e10.priv.proxad.net> Date: Wed, 01 Mar 2023 10:07:46 +0100 Message-ID: <87mt4w4z6l.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:ZLUb2w+KuSjVCUrSZdiGVKN1RFFlpNmECMxS/FvQT/o4f6wfjPx MQa+fD1qEVHs1hvBMKLjUpVBq0oCOsXEs+Ql2aii0dPJjXRZ1771DjUFuhGkFqUnRVT+O94 ad98qYR21SpkEn8H8QjtQYhzERB5H6Dpy9l7pxN4c/Vw7zJFeYUSEMmbTrezPDZfi7JOUuK 1WB8z7l4fh4HoBbA5p1lA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:p/FC6pCRasc=;2ziuyKIXowIk6mao/qRb7E8y3Cv s1ceRijBUKrIlRdrhyH00+iBn6rKgHePfulPWZ/qtENg4XToPg1Tb6Ea/0980BNtln5c61F2H D6fV3EKt/ubuNunAhpDOlIz4D22OfGoVD4LTT1wFHRLUT+o6bqJeIm4caBiIz0HUjHo6nN6Qu OyT4MQwlrSlFo4JEisU53vWXuE8qBlKWKjQhvEDVJsE+3YY/GnEHFcU4BNKsvvfiLvTamnny3 K5W5eYhd22c3jJeWHriZRatIOcdXJ4wSDSXnV9aUXitVSfw7xuhX0VDx42+nOKQSZ8NsFSOib 4pmHl0LdjGNdX6XwIg8uaHK0ba/Cz9Vqy1rCfcwaxz+dtPM0+JlX28tTRjxMT4JQ8v+GFbqiV WzFm5sbPx9u3ha7JkMmF7X6ahprMUpEd2tro06US8mkPo2kwZ96c/3AOKirow/DmBY3YHYW94 dVG53CNMwKjCdg39rEjHKhIzKyTbCahTAxbQ305LjqM1Vr3k+uUI/SvtnNitdvMBjUyf+Zqic d/n0hfTs9v4+OEpcsXvJKHan3VB8+x4sT/QjmLKRi9QV3EKkFl7nLt1XQ2PKfYgCEdEXQj5TD weVk7wuBIB/iK/s+4NIgddk+J7sF8JQbtd5Aolwue9xwaULH0t2GzbunV/BQtUzaDK6U63zgz ol4RY0nz8342r8ffV+QaSYx9lClzrPbyMyqX0/8KzCq5NQkT/LvDjdaJUbVBSISDOuW7MHvqp olWBqmeUB6cpE5UmfZX74NZnV50EmcMu+6HH4Ez62Ivza3h6yu8PtySluqJfzHkOIXmL+4o54 4qbTgZ0FGwDnEX7OhOVxXy1/gXyB44JeLK19EFFre3HOTHZ4qQFBUFVlsKEFYiaKjWFXzg02J MF50VeRpLrH5AHSU5OjleL3g0ir4zjY69jnMUuaWHT+uf61gjj9I0hGT2agBRUjCIWtDP+e6A Bae2NLyi7o5TGSRWrFL4H7Q42oE= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= , 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) jeberger@free.fr writes: > Hi Michael, Hi J=C3=A9r=C3=B4me, >> Try >> >> --8<---------------cut here---------------start------------->8--- >> # emacs -Q --eval "(custom-set-variables '(tramp-remote-path >> '(tramp-own-remote-path tramp-default-remote-path)))" >> --8<---------------cut here---------------end--------------->8--- >> >> Note the additional apostrophe. >> > > I tried both with or without the second apostrophe, same result. You're right. I'm working with Emacs 30.0.50, and my example is fine there. In Emacs 27, custom-set-variables requires that the respective library is loaded already. So please try instead --8<---------------cut here---------------start------------->8--- # emacs -Q -l tramp --eval "(custom-set-variables '(tramp-remote-path '(tra= mp-own-remote-path tramp-default-remote-path)))" --8<---------------cut here---------------end--------------->8--- > Regards, > J=C3=A9r=C3=B4me Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 01 04:32:14 2023 Received: (at 61748) by debbugs.gnu.org; 1 Mar 2023 09:32:14 +0000 Received: from localhost ([127.0.0.1]:52703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXIoo-00077v-Fs for submit@debbugs.gnu.org; Wed, 01 Mar 2023 04:32:14 -0500 Received: from mail-oa1-f42.google.com ([209.85.160.42]:43805) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXIon-00077j-PZ for 61748@debbugs.gnu.org; Wed, 01 Mar 2023 04:32:14 -0500 Received: by mail-oa1-f42.google.com with SMTP id 586e51a60fabf-172094e10e3so13765752fac.10 for <61748@debbugs.gnu.org>; Wed, 01 Mar 2023 01:32:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677663128; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=rb1/FhTzEQQ8YotTODYnK3NUjCE4q0jGOZ/YmTfC0EA=; b=hQZ0gFd3PCWKFqpu7eZRePWRYA3wgcZaaIZAl/bueYWGgx1vMwIfsUdJ6aH547Mzmd o/IpTOfvXHZwCkL53ocOM7/oqoDKRlByqUAIp6VNoMi1Uk+8TxYeNYb+Z5UGkfSdMjwl 2HXnZuggGSpQzy4TDjsluVHFsZxQ1z3/5rPpXTSZi7P3oiKrxyke0EOaW71w+GatrHJT nDfadNR6Cf8U3LJe/glRQi28iritYz5T3Jp5nDkdUTeFPeYLAdrIlwJMe6Vlz+0HkRug hYP2BBe/hJpa5VLtyHp+Qhj1Ldcq/wnzxbDTZuWpAfQ5FlJC81yT/D0ickKiP4hYtIDl 31FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677663128; h=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=rb1/FhTzEQQ8YotTODYnK3NUjCE4q0jGOZ/YmTfC0EA=; b=18cT23n9gM40aISbggRQbwlcVspEIxByNkFURbo19raYJRcLMc7N4KTXCsOo7y+Z4a 6PwNdon5+gb2RVdDq5BMk8+E4BolAE4uGWCchOIuOPat6vwaNyPtcswtU49EUuioQR3b dEmXGCWrN00DSHxvYiU3raDhLw2kxZA4oqE+eF7cKlmE55N8+KkwT2JAaxx3OmDk0PUE /kyozmm8yHbcDPssVFxMaclntb9VMyQNvXAmOytwukyLoXyC9zRzob52l82ZHgojlOkL Vj5qi+4tSWSQ+pZF8yxZjSq562uAZelrZWYsrd166g/dt/yWJBmpUzfH6bGy/eUsWI8w FxTA== X-Gm-Message-State: AO0yUKVTbwGBBXBd5efMDxSKN+lG/vEBJ0jiwCWrB91Fwl8gQtfv/Smv l1zj1J+aBrDhEDde0Z8SwN9LOes+o1Ar6uCPqWk= X-Google-Smtp-Source: AK7set+XfOJWlWkFLe6lyhAqD6x3PrjqNON2syBHb72pco7yF91QZbKJ6aafkOgCCJZXyEI1o9yOqddyFxE+pP6wbnE= X-Received: by 2002:a05:6870:98a8:b0:16e:8b45:1e0d with SMTP id eg40-20020a05687098a800b0016e8b451e0dmr1672052oab.8.1677663128130; Wed, 01 Mar 2023 01:32:08 -0800 (PST) MIME-Version: 1.0 References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> <87y1oid5h7.fsf@gmail.com> <87pm9umbar.fsf@gmx.de> <87sfeqq8z5.fsf@gmail.com> <87mt4yrmt6.fsf@gmx.de> <87356qq7o4.fsf@gmail.com> <87edqarlcr.fsf@gmx.de> <87bkldswww.fsf@gmx.de> <834jr5hhax.fsf@gnu.org> <83zg8xfzcb.fsf@gnu.org> In-Reply-To: From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Wed, 1 Mar 2023 09:31:57 +0000 Message-ID: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: rms@gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: michael.albinus@gmx.de, Eli Zaretskii , jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > was not actually harsh to you; he softened it with a smiley. A pig with lipstick is still a pig. :-) From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 01 05:01:59 2023 Received: (at 61748) by debbugs.gnu.org; 1 Mar 2023 10:01:59 +0000 Received: from localhost ([127.0.0.1]:52762 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXJHa-0001x9-QJ for submit@debbugs.gnu.org; Wed, 01 Mar 2023 05:01:59 -0500 Received: from smtp6-g21.free.fr ([212.27.42.6]:46514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXJHY-0001x0-H5 for 61748@debbugs.gnu.org; Wed, 01 Mar 2023 05:01:57 -0500 Received: from zimbra60-e10.priv.proxad.net (unknown [172.20.243.210]) by smtp6-g21.free.fr (Postfix) with ESMTP id 732C5780375; Wed, 1 Mar 2023 11:01:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1677664915; bh=KE382LauMj3J2srjSnOZ+dFo8Y2Ym073PtyOCqJLyak=; h=Date:From:To:Cc:In-Reply-To:Subject:From; b=YJMHRTSIeRBaUajNxrLkl1GvbC7bXV1TDMQ5xhb85G/eMU4Ll/3W7BbQijeVNBKKy FtOk1Eso/N2kl9xFfLguA0+ikO/lXZvYxetipUdC69DSyWC3VyyLbqezj+ER1yy1rP 4YqHfuGSGz4AloMg39C9chK+ZXuRol+c8Ygdc6KSPoPSF03QA1H9Nf+fz2aYOZedjN r6lVZ0yFBJWzzggIJlKskz5nYOmFF+LesOq6TNxEm44WpaSDm3eJm2c/7rCBEyRVdY kVVCVbYrCZmh/URKf6/KLkh10wm9KQc+cmwxrOe27e7ZMMT/YEN+i/5sfHCvuFwG27 zBxS3540TsIog== Date: Wed, 1 Mar 2023 11:01:54 +0100 (CET) From: jeberger@free.fr To: Michael Albinus Message-ID: <1083429878.12052258.1677664914286.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: <87mt4w4z6l.fsf@gmx.de> Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [193.240.154.120] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - NAV6 (Win)/7.2.0-GA2598) X-Authenticated-User: jeberger@free.fr X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: =?utf-8?Q?Jo=C3=A3o_T=C3=A1vora?= , 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Michael Albinus" wrote: > You're right. I'm working with Emacs 30.0.50, and my example is fine > there. In Emacs 27, custom-set-variables requires that the respective > library is loaded already. So please try instead >=20 > --8<---------------cut here---------------start------------->8--- > # emacs -Q -l tramp --eval "(custom-set-variables '(tramp-remote-path > '(tramp-own-remote-path tramp-default-remote-path)))" > --8<---------------cut here---------------end--------------->8--- >=20 No change. Note that AFAICT `tramp-remote-path` is the only custom variable that is affected. I suspect that this is because there is a `(defvar tramp-remote-path =E2=80=A6)` in `tramp-loaddefs.el` in addition to the `(defcustom tramp-remote-path =E2=80=A6)` from `tramp-sh.el`. This is with the builtin Tramp in Emacs 27. I just tried installing Tramp 2.6.0.2 from Elpa and `tramp-remote-path` is set properly (but trying to open a remote file fails with a missing symbol error, probably due to an out-of-date dependency). So the issue appears to be fixed in the latest Tramp, and for the time being I can work around it using `eval-after-load` to force-set the path, e.g. this works: ``` emacs -Q -l tramp --eval "(eval-after-load 'tramp '(setq tramp-remote-path = '(tramp-own-remote-path tramp-default-remote-path)))" ``` Thanks, J=C3=A9r=C3=B4me From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 01 05:11:12 2023 Received: (at 61748) by debbugs.gnu.org; 1 Mar 2023 10:11:12 +0000 Received: from localhost ([127.0.0.1]:52786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXJQW-0002Dc-0d for submit@debbugs.gnu.org; Wed, 01 Mar 2023 05:11:12 -0500 Received: from mout.gmx.net ([212.227.15.19]:37881) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXJQT-0002DI-Dj for 61748@debbugs.gnu.org; Wed, 01 Mar 2023 05:11:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677665462; i=michael.albinus@gmx.de; bh=5lVcxGUeC2rcMhFm2BeEmxNin3ar3LACzCkSPw2f0I8=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=j0WOdWfCPAT3lV5KzXhixZaRYmpSSMqjr/jKx8l3K7VVJSaeSAv352fk9enK14YGP 5X2P5ET02cFc8J8wxQDJryD9nGf27HG8lqvO5UiWTlwc64JWPGVNxwvns5HpqTgkOT kylQ9ERmlqxV1b01h/uqy0l28pTLMDa58Evf5DQPLIbP6uFCiMocu+tev0WvePd7Wq ZWbBTa2wI2mERS0xHbwqaJHNiQdAC9smSy+wi0l05F7GzJH4iaNI4k0zGqhonPa2VH 1T+OzhOPwzvnmHrjpDjAlOkWKKSQ3dwf6kPIhXDVP7r5kQco5f4jnWIZYzyIQVAQLh WT1q1rXfeg7dg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MQvCv-1p9TRR0bNn-00O26f; Wed, 01 Mar 2023 11:11:02 +0100 From: Michael Albinus To: jeberger@free.fr Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: <1083429878.12052258.1677664914286.JavaMail.root@zimbra60-e10.priv.proxad.net> (jeberger@free.fr's message of "Wed, 1 Mar 2023 11:01:54 +0100 (CET)") References: <1083429878.12052258.1677664914286.JavaMail.root@zimbra60-e10.priv.proxad.net> Date: Wed, 01 Mar 2023 11:11:01 +0100 Message-ID: <87cz5s4w96.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:NG54mASM6rdpzbH6E0LGpC0nb4muAK6P65uIGUOI4n8Pb8s2l1e gSeslFKayjDZEgDLBD1W+CJE+FO1fsSrr3M6lmC2iqBi36O4iVFod6oG+KnbYA+zg8jH09q HkRt41XLfYC6sBuFhTJ7kxVGYc+2gTZLp3+Lyy8EbQ6lrxZ7nWDei03rd+K5NcxuUttDQ/q 2Ez31r7weoS2TTHU99qzQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:S7CZfp1vcOQ=;z15PKszgxwSVSUzJehDM5vmQh+q FJfh+a2g5KUpPCfpr3s94rXbmPm51uSA9cId6nDZLjKI2O/u5sfQML1lpzpSwQsQ/tOTqO/y7 q4CT2dVZIg7oXGJlvwqcmE++7+Hj03LCsbF1MIVZ7Ps+qHT1ov2j1E0+AJ0df1op+HYmUm7dq enEfKynB/SdJgiC+9pi8tyNXmSFVb/PE5Va91OTn8KKE8w33+WHNki7F3s/DTwW4JcWcMVqj2 BVutdIq8sL6YhvzSIyVBh9vcRoyYEQ24q9ddHp/4ObYrTIC/QV4J2Alj9pLsnqZCDpRauGHgw oykNbsSj9nIQ77gt1KZkVzYgt3mtqo1vPOFV6ZMnBBuDCIdUBxFLzlutk4I4DSNU8Y25LgAEr D61p9t/lJV6pHqVdCEk/SMInFC5Arfix6hesOEqKEbJ1xz+VDelUvxAb1hxvrQwyl8BciXz04 NZbAgXSiExCntva1+BobkgPosdsuL8uBuB13cJWlT2+T+NaOx4ESTiLgVOZx/Y3vTTnqTst5G sc5dgAtJP71G+TUeZ835uPJ+m63o8D062/gYn5OH1f3sCAjkkJQvDwwknpa5wAISQeErG3ZXs hqzf7PdjJIqoSprmdy3gmQWYQL67lVcFKRTizHN9U9wWvTmuemjjf6mygVAJn2dqMCK2JvK/9 RvxuPbOXw7lzexuPW9hDtjhznHoHdlZfjATH0mwlnoWw9yd714/hI3oKjPcex4zCLOAOsXPbK Z3fXQc38sUL7qdCj5w/uwmAT7WVNoSsOTQo0cA9Ghr3U5FcpQcApsIm5ZUgaocDBx7328POO4 FzazBxix9PnsU3JzUZJz/+DWRTYmANy7chd/4j1peIQ8a5zAgRF7x9wPEzpNPzIS3BmsC2rOo S72kITL8QVB6U64VbKn6YAgbpTIHk3q283BuuhjzMB/j39L7qC0aLzpiQeMkIz0FR/eZKvy7o Me/bgA== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= , 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) jeberger@free.fr writes: Hi J=C3=A9r=C3=B4me, > This is with the builtin Tramp in Emacs 27. I just tried installing > Tramp 2.6.0.2 from Elpa and `tramp-remote-path` is set properly > (but trying to open a remote file fails with a missing symbol error, > probably due to an out-of-date dependency). > > So the issue appears to be fixed in the latest Tramp, and for the time > being I can work around it using `eval-after-load` to force-set the > path, e.g. this works: > > ``` > emacs -Q -l tramp --eval "(eval-after-load 'tramp '(setq tramp-remote-pat= h '(tramp-own-remote-path tramp-default-remote-path)))" > ``` Thanks for the confirmation. I'm glad that Tramp 2.6.0.2 did help, that's what Tramp in GNU ELPA is good for, isn't it? > Thanks, > J=C3=A9r=C3=B4me Best regards. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 01 08:04:24 2023 Received: (at 61748) by debbugs.gnu.org; 1 Mar 2023 13:04:24 +0000 Received: from localhost ([127.0.0.1]:52966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXM87-0000zq-OH for submit@debbugs.gnu.org; Wed, 01 Mar 2023 08:04:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXM85-0000zd-LI for 61748@debbugs.gnu.org; Wed, 01 Mar 2023 08:04:22 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXM7y-0007QL-Mn; Wed, 01 Mar 2023 08:04:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Y4at0D7gDuZgua2r0k/o+pjPvu8vm0Au56G98kLY3sw=; b=XWG0itm8OkJSSd/m9tJW /adim9+9TqxJDIrbjCN4qkb2hvkwFociYdmQ8ORvldaFJ/WDThlwZl44nxw9WYgunos7FuR8QhJ+K X+cZfFnzupY5f5PK7iL456t5P1kMg3StRwsm6cjdcSUGJdoXNmstiQRQiOtWXL18OWcpE5A7eEyxc PygEJFvOALpbpQAI9rGQuWHSilitNW2jMygX5nf9fbJx0CT4jgHnVdsk7lGlCadWUTdZbx96bsIv9 5tOMh2xXu2wP8jHA34tZCnjEbwZNAVj7gW0qBQIXk09I2vSg1qPVLu6eYvhQrJr9FjtLdttNeNm1s LlwieN9/Y8ZlnQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXM7q-0006ov-Ie; Wed, 01 Mar 2023 08:04:06 -0500 Date: Wed, 01 Mar 2023 15:04:19 +0200 Message-Id: <83o7pcfwrw.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= In-Reply-To: (message from =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= on Wed, 1 Mar 2023 09:31:57 +0000) Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> <87y1oid5h7.fsf@gmail.com> <87pm9umbar.fsf@gmx.de> <87sfeqq8z5.fsf@gmail.com> <87mt4yrmt6.fsf@gmx.de> <87356qq7o4.fsf@gmail.com> <87edqarlcr.fsf@gmx.de> <87bkldswww.fsf@gmx.de> <834jr5hhax.fsf@gnu.org> <83zg8xfzcb.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61748 Cc: michael.albinus@gmx.de, jeberger@free.fr, rms@gnu.org, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: João Távora > Date: Wed, 1 Mar 2023 09:31:57 +0000 > Cc: Eli Zaretskii , jeberger@free.fr, michael.albinus@gmx.de, > 61748@debbugs.gnu.org > > > was not actually harsh to you; he softened it with a smiley. > > A pig with lipstick is still a pig. > > :-) There's nothing wrong with pigs, per se. Some people even have them as pets which sleep with them in the same bed. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 01 08:05:45 2023 Received: (at 61748) by debbugs.gnu.org; 1 Mar 2023 13:05:45 +0000 Received: from localhost ([127.0.0.1]:52970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXM9R-00011w-4M for submit@debbugs.gnu.org; Wed, 01 Mar 2023 08:05:45 -0500 Received: from mail-oo1-f51.google.com ([209.85.161.51]:37636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXM9P-00011i-94 for 61748@debbugs.gnu.org; Wed, 01 Mar 2023 08:05:43 -0500 Received: by mail-oo1-f51.google.com with SMTP id n27-20020a4ad63b000000b005252709efdbso2067378oon.4 for <61748@debbugs.gnu.org>; Wed, 01 Mar 2023 05:05:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677675937; 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=miu002j+SLvK1wXieCfbyR7UGnNQPbz9hrq6QIpeK7o=; b=i9AVgekdJmhvPqATR3e4WlyfMYMdT2kjtU4qmk02/d1SSFiimI6YFA7PnbEHxpYLxC BR3G1b04uXZOb0ixwyr3hegeqbzRMEDn/0qN0VS/qryJhCpEecqDvLGO3JFBdNUzvoff hKiOo4QpRWQLWvvN4p5xFgcgw+zIsb25BFIKWFS/ESxnHp22OWDB5iCGCAtlewtiJOx2 fhsmRmqBuNLUeoKt/IhZzi7hwu2UYOJFJ2/GBybu0S8TtEI9EkTPwB/TboiF6+5v4deM zdOOIsYQKmiJQenhaz55EaVuJYRq9VoS/MumI0yE/vV9IW8fdd0ugfTTBLHaPXwtJ0eH cXiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677675937; 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=miu002j+SLvK1wXieCfbyR7UGnNQPbz9hrq6QIpeK7o=; b=Ew8NyM+NscXERVfrYIUllig2bGU5MMMn/kkY8vGgOqfCH5F+fwxaE7KHnVEF8dQz6v cBm6zWQrLag2sGToQW9YgUAjMiMg8NgFV3hCoCwAcP3kngJSrEKHwpcqxx+tXUq4/N/F osc+HQN0eZ4Z9ClPqjWteVMNC8altVIDjhSylnfN2nv70VIfan0iLEtenFrQ/31Ihu/d OFSSv3/A5iHD5LkB0AjdYq2W7HkuLGzmOlsdvQwUuL6FbYKnF7I4p0n/6lrBCXCxPRLV ChowvgYyIRHGnucExHiwHW8zBz7piQkQTuXRLLkrL3hhIAVmQOy2NztmgPFWJgDBw69D 0PNg== X-Gm-Message-State: AO0yUKVtFlyqn6vSopyb4j1xSs2MNYtUZnKV/bFugDsBqoUIzRm7qJcw ejZqjiNj7BZmeqeYGOO03yJjpHpNM+xAxGioRGE= X-Google-Smtp-Source: AK7set9qL5HsPDbm2jiHTi0wPaFdQ1J2/6NuYwzTEGcUAr86Kp9xJC+Z2KUHMOqBIT523Y4HZBAUEufh6ikQ+wgb3WY= X-Received: by 2002:a4a:a8c2:0:b0:525:2a18:e6eb with SMTP id r2-20020a4aa8c2000000b005252a18e6ebmr1883614oom.1.1677675937443; Wed, 01 Mar 2023 05:05:37 -0800 (PST) MIME-Version: 1.0 References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> <87cz5uop91.fsf@gmx.de> <87v8jmn9ya.fsf@gmx.de> <87y1oid5h7.fsf@gmail.com> <87pm9umbar.fsf@gmx.de> <87sfeqq8z5.fsf@gmail.com> <87mt4yrmt6.fsf@gmx.de> <87356qq7o4.fsf@gmail.com> <87edqarlcr.fsf@gmx.de> <87bkldswww.fsf@gmx.de> <834jr5hhax.fsf@gnu.org> <83zg8xfzcb.fsf@gnu.org> <83o7pcfwrw.fsf@gnu.org> In-Reply-To: <83o7pcfwrw.fsf@gnu.org> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Wed, 1 Mar 2023 13:05:26 +0000 Message-ID: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: michael.albinus@gmx.de, jeberger@free.fr, rms@gnu.org, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Wed, Mar 1, 2023 at 1:04=E2=80=AFPM Eli Zaretskii wrote: > 61748@debbugs.gnu.org > > > > > was not actually harsh to you; he softened it with a smiley. > > > > A pig with lipstick is still a pig. > > > > :-) > > There's nothing wrong with pigs, per se. Some people even have them > as pets which sleep with them in the same bed. Yes, but the lipstick makes a mess. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 02 04:14:27 2023 Received: (at 61748) by debbugs.gnu.org; 2 Mar 2023 09:14:27 +0000 Received: from localhost ([127.0.0.1]:55749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXf19-0007Iy-Ce for submit@debbugs.gnu.org; Thu, 02 Mar 2023 04:14:27 -0500 Received: from mout.gmx.net ([212.227.15.18]:47083) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXf17-0007Ik-Dw for 61748@debbugs.gnu.org; Thu, 02 Mar 2023 04:14:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677748458; i=michael.albinus@gmx.de; bh=o6alnf2JaX3YlhLX/i1X4a6E9SeZhVsfvWwaw8sH9bU=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=roJliiRO8raUqxd5f214NPEn8BCilU6bKofmxbNIXSr9cCKDFcuHsBQBuWRd28LfS p0+E7mePHsl8oh4K/9H67ioPsGxrzMrk+hsMhsYndnCjxwcnyu78W0rO1L327b1sjK MqYwuXgYccBS4Rkypq8O3sVIgGLI+c0JGe5o46jE/1poYNK7CD1KHN7J/tqWglcXqP 4jFaKGhSv2e7rSuogt9gvRaXe9QfI7oEGLuWVfU/eWOHfq/NZOy1TUyrlecB5J78z1 rslDM7CoKfdYquiP0cWl4yw2lw9rlm25Wbil5hfkbMRwwfAQsD9zDQtyJLQuubX/HJ u9uPY1tIXQN9A== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MJE6L-1psD4L1AwV-00Kksx; Thu, 02 Mar 2023 10:14:18 +0100 From: Michael Albinus To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Tue, 28 Feb 2023 16:28:11 +0000") References: <87sfeqq8z5.fsf@gmail.com> <75486564.6945596.1677592772065.JavaMail.root@zimbra60-e10.priv.proxad.net> <87r0u9devu.fsf@gmx.de> <87bkld6ctm.fsf@gmx.de> <87356p6b7g.fsf@gmx.de> Date: Thu, 02 Mar 2023 10:14:17 +0100 Message-ID: <878rgfecra.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:r4/CEEqEnPBX6dcFa4JW7Dzn5Lxwd6lhx3MWcFy4/J8k+nBE+31 Qcy+qjjwDMW98wgijbBNmXyqNr9I9jJzHFCOrh0VYqS2bZNS6SsmSjwzmvId5m4HXvbM8kk BZz8hUey793qQ9UeTEONlqSeb2zFbQ1VcrFwhjIGP9SFbCCfbbr4Mq/v5m1D2IqJAyUzuUx iHZ0Ls+Y8k0CnkYkdeqcw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:8kxUlLzaozw=;ZdgdcAo0SmozKryisMFsscD9tTy WJibo7DzjYvezTlWcsOxfBArD8weJYvB5yq0mjr74LLJ7NJVpdlBOIV82cvaYlLD2NSGCp/1p Rc4a6y7CwlO8W+bh8HTGz5sq1vCOLUSTjc/1Dx+oeVHOTMuDKisVI0h9YfuelCrUxrbMatJwY /9ceSFSv1okeZpBiuZqSYT0EKaLEWIjhSp/TCr3qR84xgM9zqgSwO4/TFkWJfEKtFBvxSAWUk lmi+GcY+AC6+W3MA9gxx8yoBzVFiH+B2t8BUDVV5wg4XBg3CRoTu2mwD1rP1Bm6HnebLLuea5 kuVprtBmD2DZTZDW+47EdbXY22jmY/0Em7dGWRz4OujOAxl8I89r+cbITb4jjvlkKwlLzc1P3 wDI2BbVcKbs3mc3Jm6a7xyBg99h37t2m15Tep5SWyB3COkYKU2bdd8W2SQjqUr7jeO6ZfmAqn qwlDF3KCgiHo/Tg4q1LyOT78IYS6JpQRzvQ+L1NjQ5UiwBzzA8h1UWUYljj2NeWkdtunzKjhd M0i0WcJurtMaFkAZk8SZsstEPItOxU/o47EadrAmElcIk/i6xfx15U8NES997krWpU0njU45Y 8zvfOmC2IE4pwVmBvA/eM1v59u51OqdI1KZc5n4Iyo1SMF1aMY7Woa0jpi1mj5/H617G1IYmz Pm2/TgBPnEldKZtDpLoxopU3K4qP8ROr3CsB6cUjNf+CcLuKN+ckdFQKzIxBk46aQQWTZJjwL 35P4kx7Js+hk3fZOBHaxfHpCUg3tqLVPD/NYLeAvJn0v+J/nwLG3pCCL4dX1NV0DuYzm3lgkx 73i03Ds0G+jwDkg/5AJF1Es4u/fUdEHBAJ0sGBEyMGt3rnlYB14VHLuxCQzVO5nUDjTLHLFTG hYYM8YJ3P512JuIrDxiDQOSwIkau1sKxFMHwVMLL3kQ9S7udmRDN3bAMwAggls53l3TWnoSaf //EBsg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Jo=C3=A3o T=C3=A1vora writes: Hi Jo=C3=A3o, >> >> I don't expect a user to solve it. And a user shouldn't expect that >> >> changing a variable is sufficient. >> > >> > I respectfully but diametrically disagree here. >> > >> > Here's an untested patch that could solve this. It can probably >> > be made smarter by only invalidating the cache when a change >> > to the variable is detected. >> >> Hmm. It will delay startup of remote processes, if tramp-remote-path >> doesn't change for different processes. Perhaps it is negligable, but at >> least for slow connections people will be hit by this. >> >> I'll play with it. Perhaps there is a smarter version of it, as you say. > > Here's another still untested but smarter patch. Caches fully > on until user messes with tramp-remote-path, else immediately > flushed. Just flushing the connection property "remote-path" is not sufficient I believe. You still must cleanup the process. This is because the remote PATH environment is set when starting the process. And I fail to understand, why connection-local variables don't serve the purpose. They are described wrt to the remote path in --8<---------------cut here---------------start------------->8--- (info "(tramp) Remote programs") --8<---------------cut here---------------end--------------->8--- If this isn't sufficient, we must improve this, instead of introducing another mechanism. And remember, remote processes are not designed to be as flexible as local processes, where you could simply call (setenv "PATH" ...) Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 02 05:54:36 2023 Received: (at 61748) by debbugs.gnu.org; 2 Mar 2023 10:54:36 +0000 Received: from localhost ([127.0.0.1]:55930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXga4-0001VO-0d for submit@debbugs.gnu.org; Thu, 02 Mar 2023 05:54:36 -0500 Received: from mail-wr1-f52.google.com ([209.85.221.52]:43764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXga2-0001VA-IR for 61748@debbugs.gnu.org; Thu, 02 Mar 2023 05:54:35 -0500 Received: by mail-wr1-f52.google.com with SMTP id e13so4562026wro.10 for <61748@debbugs.gnu.org>; Thu, 02 Mar 2023 02:54:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677754468; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1pK8qX+Qqi2dUNNGZcuYRfaydPJYswAtn6FIAZCs6YA=; b=GK89sAir7wc3wfK998j+JYG6zbJsCM/Jxd7Dmr1w34Ekyk2/PslksWzO7VhLTOej92 BP+iQDwBuQdKfmKV7mpDa+vDHPf4NdeCW6zXJiAqyTpoVrgnd8kz4+XGONtQ2QQ870O4 xRDNAFcrVJQCybDqATzA8jG7iN4Z5ynvG+PmmYKvWX96QTKsXHMwKqJLX9j9rZHeWYNR 6lLZQwjwEw4sh4oiF96VxMjyAkmg29ZRLpEkzROgJHAf0Vaip7dRHGl/wY/K7gLorLqE U9VA058nMVWIhXN7rnhBUCvl05JHFzJos7OzQgty4ZXLt1S6RM5XIwXhH9VIxyVZ9cee RL8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677754468; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=1pK8qX+Qqi2dUNNGZcuYRfaydPJYswAtn6FIAZCs6YA=; b=wVxHgft6n89jwZUmSItqL821MJ81p/0/ir1q/tjURBYemuHDFKSrho8P4MblfXS14g 1sDiAF+S+WAbcfh7bnKyBbJ7cjsTwBntf1C2UOr0hQuS6aEGjqUckqnA03NV0loO5u6M 7o0ZGnZdgIzJSfjimXrzGDjq/tj/d7j83F3Ze/nj0jpx9PCoXURHJehS6F+8owfkc4zM ATjK44sOypEgBtGuQiYLIbQHh7FU7i/Oy+hiCupPmy/rQHkcjwY0CTUWKHaDaY/SwP6c oEMy6ChUyYRasIHCTFldCB8H1BrBgO7kUkzD+bIzhMvNusHn0zs01jBrRK7f8rOD+PcC sgNg== X-Gm-Message-State: AO0yUKUEQtNWJ5xcK5tNBhEk0BhBiBcbJUKPJiqZe3osJrb7Tgz0icYC pmfVTkGG2Hq8lTcMmcLM82EFuwlqxsg= X-Google-Smtp-Source: AK7set/j+vHZ1y5YvV87Od9xpcsWqvOU27/N42beD1NIUtvS4MnDaz4ASYYm0ZDyUdrVw5NWxVPy0g== X-Received: by 2002:a5d:6a8e:0:b0:2c7:145c:68f2 with SMTP id s14-20020a5d6a8e000000b002c7145c68f2mr7292184wru.58.1677754467914; Thu, 02 Mar 2023 02:54:27 -0800 (PST) Received: from krug (87-196-72-142.net.novis.pt. [87.196.72.142]) by smtp.gmail.com with ESMTPSA id t1-20020a5d6a41000000b002c70a68111asm15196741wrw.83.2023.03.02.02.54.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 02:54:27 -0800 (PST) From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= To: Michael Albinus Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: <878rgfecra.fsf@gmx.de> (Michael Albinus's message of "Thu, 02 Mar 2023 10:14:17 +0100") References: <87sfeqq8z5.fsf@gmail.com> <75486564.6945596.1677592772065.JavaMail.root@zimbra60-e10.priv.proxad.net> <87r0u9devu.fsf@gmx.de> <87bkld6ctm.fsf@gmx.de> <87356p6b7g.fsf@gmx.de> <878rgfecra.fsf@gmx.de> Date: Thu, 02 Mar 2023 10:56:22 +0000 Message-ID: <877cvz8lrd.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Michael Albinus writes: >>> I'll play with it. Perhaps there is a smarter version of it, as you say. >> >> Here's another still untested but smarter patch. Caches fully >> on until user messes with tramp-remote-path, else immediately >> flushed. > > Just flushing the connection property "remote-path" is not sufficient I > believe. I've tested it and it works just fine on my end. What problems did you see. Let me be clear about what i'm attempting to fix, using condensed Emacs -Q recipes that illustrate what I do during actual sessions. Before applying my patch, this prints "jdtls", correctly ~/Source/Emacs/emacs/src/emacs -Q --batch \ -l tramp \ --eval '(add-to-list (quote tramp-remote-path) "~/bin")' \ $REMOTE_FILE \ --eval '(message "%s" (executable-find "jdtls" t))' which is fine, of course. You happened to remember early enough that the remote host you're going to connect to needs a ~/bin in tramp-remote-path, so you set that early. But if you don't remember at the right time, like here: ~/Source/Emacs/emacs/src/emacs -Q --batch $REMOTE_FILE \ -l tramp \ --eval '(add-to-list (quote tramp-remote-path) "~/bin")' \ --eval '(message "%s" (executable-find "jdtls" t))' It prints nil. I find this very confusing, and lost many hours to it. I expect 'tramp-remote-path' to work like most other variables: set values with M-:, custom-set-variable, etc. Then verify the settings work, then maybe put that in my init file. After my patch, both invocations print "jdtls". Can't see how it doesn't improve things. Is trivial to understand and has no performance drawbacks. It relieves users from keeping a mental model of Tramp's caches. > You still must cleanup the process. This is because the remote > PATH environment is set when starting the process. This is doesn't differ from local PATH vs local exec-path. You add things to exec-path that affect `executable-find`, but don't affect PATH. > And I fail to understand, why connection-local variables don't serve the > purpose. They are described wrt to the remote path in > > (info "(tramp) Remote programs") How am I to use "connection-local variables" here? Reading the manual it seems I add multiple setting to my configuration for every host I connect to. Like dir-local variables. That's fine, but I don't know those hosts and settings in advance. And if I wanted to change my configuration, setting tramp-remote-path early on in my .emacs _already_ works. Which is exactly the confusing part. > If this isn't sufficient, we must improve this, instead of introducing > another mechanism. I'm not proposing new mechanisms or changes to existing ones. Simply to invalidate a cache value when there are changes to the source of truth whence said cached value came. IME, this is pretty standard thing to do. > And remember, remote processes are not designed to be > as flexible as local processes, where you could simply call > (setenv "PATH" ...) I never do that, and I don't want to do that anyway. I just want executable-find to not be tricked by some misinvalidated cache. Jo=C3=A3o From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 02 06:40:38 2023 Received: (at 61748) by debbugs.gnu.org; 2 Mar 2023 11:40:38 +0000 Received: from localhost ([127.0.0.1]:55988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXhIb-0002mL-QC for submit@debbugs.gnu.org; Thu, 02 Mar 2023 06:40:38 -0500 Received: from mout.gmx.net ([212.227.15.19]:34029) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXhIa-0002m8-JK for 61748@debbugs.gnu.org; Thu, 02 Mar 2023 06:40:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677757229; i=michael.albinus@gmx.de; bh=vYmP5xe8pj1J9eUGSdd1/fdKA+AsYp7596aG3PXmUrQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=myNsepzHpjRHB2yNwurEfpZY+XIsBZZqw+EEehAV76Q6px3qC88mMbTduZ9rQXaeK FERvc/1qEG6IrWU5CjAdDeia9fkLuHmO4ubEOpafrG0VQr+q2ZHIOoh9UMsPGkPTwN GoBwALRXHdl5PLUuHFRdlREEw4MEtrx9PZRL4hwuvHJbRnB5W4SjhhXLuAc4Zw50Rs meG1hqF6fp+w+bdiZlcVQztvlOGvwB75bUwVG5kcyfM57NO0/EUQA7jfv6TfPxFl0+ RQ943KwkAGC6/BUnp++aZeVDwi6yNokMBH0EhIpR6XstT0xXu4CGHFbOD3oLsxCHew zVpPDm6di/ojA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MbRfv-1q9Du82jKD-00bsGn; Thu, 02 Mar 2023 12:40:29 +0100 From: Michael Albinus To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file In-Reply-To: <877cvz8lrd.fsf@gmail.com> (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vor?= =?utf-8?Q?a=22's?= message of "Thu, 02 Mar 2023 10:56:22 +0000") References: <87sfeqq8z5.fsf@gmail.com> <75486564.6945596.1677592772065.JavaMail.root@zimbra60-e10.priv.proxad.net> <87r0u9devu.fsf@gmx.de> <87bkld6ctm.fsf@gmx.de> <87356p6b7g.fsf@gmx.de> <878rgfecra.fsf@gmx.de> <877cvz8lrd.fsf@gmail.com> Date: Thu, 02 Mar 2023 12:40:26 +0100 Message-ID: <87sfencrf9.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:EP1ZVg3tcepjTsIz38mFzsvbTLPbCNeCd8AKXCQh9X8q4kVByRZ Q1n7thYdmLWs0sFaEytf1A6sW8j7mbXNrwJo91+D0FmiWSMXLxDpFSJRHI340FkYuDWgqZy Tz+ltdvC+TMP8f7fYzb+oyJXYkDuRPrwIIVU8fsvZqdEKaBBgpmSklClrJjKZDnTdGwjWF9 x2rUrnECa+OggJP39VZIg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:VEERHd1gJzU=;xYkwjDWDirjSWor0yBs7HedAzE+ iWyOCkW7Aaka7F3u7Z7L4gSdRW9zFwOIYj6sM7s/3yzTpCKcHz/6/5BFhAQw/4es5fkoPWxfp 2BGmOsNySCYgkOsM9wv09DUK/JM0fTlNu2AGt/sz4AtIHt/B84sPhF2o49xuF7KXdoB1x8mM/ uIfplspRdgRm2qDxYBhsr8Gtg8VVjH6Mxi77faq31p+UXMctPtj5Bzrtp79hzNMjh5KJuUroJ jzWl4XHtUCx3b+OK+GNBQLsMdaKT/dpIClG+oJSAp6OFcGVdiqm4zppqm+MTuUcLtZ4avLrFV D9yMq+VoYmSF/gYjX5ISIbCNg2N8fATiQYU/ntyclOOVievgAASY6XUNEa5InDdb98XHAXImE LqjpyBQWQrkebwt59XUUJk90Lod5tRuBdJoXVlGuDiVFRQ4+82MTese61ZYeKB0TXGkHlCnxF XVAStpr/220gra7Rn0KY48KCgIHvPHnqvWqObtGGHOvz8Fl9OaN7b2ZSYBXT3D/LEYe+uGyI9 I5I5VleOMOTyluBvfMmzVyRiBmHCs+nEEt5kQZu6mXMcTRfonuqeQhBfWjuuYZsxiNtQAx7fT kqQG4BAMRWNabubcBn3GaaZSkK9n/GnWadFB22UCtKArNMOPrsqPtMRs25I36TdihpOv6ffVE +1TNuSOYEXaxhfbfrcEedYwiTd5zN/U/j6JGmauOcv+Yr2AaECRJ7W0fi9KeaHaaAYZ4cJ5L4 wAoM8IUOyGH8qc9Jf+5+qXPQXHTKQE91/nqwJWhmx9xGmhI0nE8DCslOz1Obj697KIIPXHc4m NLbR0b8x2iBz+iwu278E4XhKguGaRH1boslkCKGGrjo7M7uBXFJ5u2JAgh/Bxqwomc2hD4vlc pTEtEyKTk68StMZdiUuRSLMmK7zo8YQ5vn6MMAGT7B69aG6rwJirUhe4KRH+zm+flbRb1rLSY h/wYlQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Jo=C3=A3o T=C3=A1vora writes: Hi Jo=C3=A3o, >> Just flushing the connection property "remote-path" is not sufficient I >> believe. > > I've tested it and it works just fine on my end. What problems did you > see. Tramp has documented how a remote path could be set differently for several hosts. What you describe here does not solve the bug, it is rather a change request. I'd prefer to separate this request from the bug. Please write a new bug report (wishlist severity), and we'll discuss it then. As time permits, there are other Tramp bugs I need to fix first. > Jo=C3=A3o Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 02 08:29:17 2023 Received: (at 61748) by debbugs.gnu.org; 2 Mar 2023 13:29:17 +0000 Received: from localhost ([127.0.0.1]:56161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXizl-0004QO-04 for submit@debbugs.gnu.org; Thu, 02 Mar 2023 08:29:17 -0500 Received: from mail-oi1-f169.google.com ([209.85.167.169]:43985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXizi-0004QA-S4 for 61748@debbugs.gnu.org; Thu, 02 Mar 2023 08:29:15 -0500 Received: by mail-oi1-f169.google.com with SMTP id bk32so13470436oib.10 for <61748@debbugs.gnu.org>; Thu, 02 Mar 2023 05:29:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677763749; 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=sdAKyBd+uYKbe4YL3C2bVV7Q/0OOTdoQlm0RtN7O4UM=; b=PNMVqG7NiC5EZGfZG060orSfQJ6AMOisEnDEpZgZZDYwA/68uN5FAKm5AmBdGva9xd IRT8clEB7SWcYtqkN3Kzwgs8I52EtSW/c0hCJSFik5XLmwd9jccQNqB0PqXyh8CaVOgn 8v06Iame0m2i++QdlfbdDTyZ7atNU04V5Ka4ZvAJEGUPlnv4FQrEFJC3nErtdanYddvZ 1gTHpQGH6rqL3FBhLUlGRjAheEkBsGtfcWVESRGqBIZ4hA8E3Ry+wF+B2GUEbGeZHEaC w32mm2/68xIl2C/90vPlRhk8MGh6G0nNGjJqfU832ZuTaOGh7lYnyx4CD2dYXmNPt51K lZgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677763749; 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=sdAKyBd+uYKbe4YL3C2bVV7Q/0OOTdoQlm0RtN7O4UM=; b=wlWOOqJJZMLy/oTHom6W5jF04UvAl9TaXnmuR9rU1x7OZHW+L9zChIyT+Df/gTT+X5 QQ+52sdWg2Fy4Rkb4WdAlwIVRF1JngBkntBgmNWEeJ9C1mJN16yW2lNzuzowW1adp/2B 1quetH0zZzJ6kYCbFxFEBP+iyQRp8mPXP9SNQgw77zdQoR45NbXzez5RVmgmKduaOKRh 0IBaAmkFKX5tZobUm/fL8mJS11zxopUmCvs8yvnC7uRhhZtuvu9bTvE6hPexXHqNozYq xX5wLZ5WOxHYVcKY8oJMWp3X7OnE7gWi/YXpzOFmFp788u84bF+9IvNZ/SUrK8fPJMMb Y6yg== X-Gm-Message-State: AO0yUKUSh0arJUesu9EIhg6EmJ6OGSUfgQjch1McDYXC2vi6JRK8xEe9 zrhsElL7VVevf9s3NpNpRsAzRsue+oT7I9rRNC8= X-Google-Smtp-Source: AK7set/Qz5qJ1N+0fJAbDIzusjgRDbnDK8qSH+RlLqTQ3vxfZQNqE56ipZ8ecu1SHaPbjy8jpdeYU1lRQWOKZWwQBQQ= X-Received: by 2002:a05:6808:2c3:b0:383:d3ae:2ef4 with SMTP id a3-20020a05680802c300b00383d3ae2ef4mr3138558oid.8.1677763749265; Thu, 02 Mar 2023 05:29:09 -0800 (PST) MIME-Version: 1.0 References: <1055906941.11380565.1677658193477.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: <1055906941.11380565.1677658193477.JavaMail.root@zimbra60-e10.priv.proxad.net> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Thu, 2 Mar 2023 13:28:58 +0000 Message-ID: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: jeberger@free.fr Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: Michael Albinus , 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Wed, Mar 1, 2023 at 8:09=E2=80=AFAM wrote: > `tramp-own-remote-path` and making sure that it is set correctly > fixes my point 2, but then `rust-analyzer` doesn't have the path set and > so fails to find the Rust toolchain. AFAIC is a different problem now. Earlier, the program couldn't be invoked at all. > So my patch is still required to fix that part. I've pushed a simpler patch to emacs-29. Please test. Jo=C3=A3o From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 02 19:22:47 2023 Received: (at 61748) by debbugs.gnu.org; 3 Mar 2023 00:22:47 +0000 Received: from localhost ([127.0.0.1]:59260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXtCA-0007ab-Us for submit@debbugs.gnu.org; Thu, 02 Mar 2023 19:22:47 -0500 Received: from mail-ot1-f41.google.com ([209.85.210.41]:38575) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXtC8-0007aN-ML for 61748@debbugs.gnu.org; Thu, 02 Mar 2023 19:22:45 -0500 Received: by mail-ot1-f41.google.com with SMTP id e26-20020a9d6e1a000000b00694274b5d3aso612409otr.5 for <61748@debbugs.gnu.org>; Thu, 02 Mar 2023 16:22:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677802959; 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=V/OlCPUlV3fgu7lzo2XSgZdcGl9x7AKhqj8Pd0OPabM=; b=H3YulpHCrArLO+PGvjtcbgrScNP5MYpNFrnUL5dSxokj9asXxB/iI6cPuShQm6X6WI VfiX5Lvgl2ALWqqU7nsvFcDsP/U653sroQJmuSJSheB1Ib6mBPasldbuo3YrEDAW83pB h8IbG73r0li7JWwv/h0YpRN37ltVqfsQ6OxjKI/sPxEARunN5d8wIzsF50ND7LYSOZsX ek34+hobAmxFEuBelNlY+lZcMFqziJ7ehoGpEKRXIOvHZLTgZDR22Ciw0uU1q1+QJZjs NDlUBbKjbcsojHRhX8NUMwKXcODS6rXbskPQu08N97uPqb1EC6FMmU+6Jj6IBoME/WVT FWhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677802959; 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=V/OlCPUlV3fgu7lzo2XSgZdcGl9x7AKhqj8Pd0OPabM=; b=U9x0BIuXRo8wKnxTIKzt0QXv0u9B0ensJcQYX4qbhpxlQ2PmupGk3T8Ulm6uePMVGh DiPLJCjj/9q0+Eqvksne9hRaWsC7AM7NQmBDGDev+Xv6Rx+Ubvv9PfQn8Oj8mpGLfQoJ XMMo2IfMFFlxJ+ueCmH0KFzY0xbrophIYIh/X3vRBF9Z8iViKBl5F0KjHddcmJT7BFy7 9p8LjRD25gicOF2keHat3rw2HFrjOGWvexcxWImBisLmdPTRkUGl1wNMQItWEdnInuRw vqMobx7RmYnwMUgBDgMv8+FpvEfutiM8q9/BtEPP3sh54zTybg8Y7YqyDlgmdeW0BsEV 5c6A== X-Gm-Message-State: AO0yUKW/PKww9PfbM0XjVxP5ORtpLV19rEOM9ckKgjFCYSBDbL1kes87 sNCeAf6FGdB3nx5GOXB02s4B5+HLvAFbrK68L38= X-Google-Smtp-Source: AK7set/VooSzFWEmph85qO6egLeIpztTQ4Q3BqvLJzG7Ylt5E7lsUR7mZzKrCRGfyxVq/TkNS7zCNPQmy4GLgBJY3aY= X-Received: by 2002:a9d:6005:0:b0:690:f512:20a with SMTP id h5-20020a9d6005000000b00690f512020amr4120444otj.3.1677802958885; Thu, 02 Mar 2023 16:22:38 -0800 (PST) MIME-Version: 1.0 References: <87sfeqq8z5.fsf@gmail.com> <75486564.6945596.1677592772065.JavaMail.root@zimbra60-e10.priv.proxad.net> <87r0u9devu.fsf@gmx.de> <87bkld6ctm.fsf@gmx.de> <87356p6b7g.fsf@gmx.de> <878rgfecra.fsf@gmx.de> <877cvz8lrd.fsf@gmail.com> <87sfencrf9.fsf@gmx.de> In-Reply-To: <87sfencrf9.fsf@gmx.de> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Fri, 3 Mar 2023 00:24:22 +0000 Message-ID: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: Michael Albinus Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748 Cc: jeberger@free.fr, 61748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Thu, Mar 2, 2023 at 11:40=E2=80=AFAM Michael Albinus wrote: > > Jo=C3=A3o T=C3=A1vora writes: > > I'd prefer to separate this request from the bug. Please write a new bug > report (wishlist severity), and we'll discuss it then. As time permits, > there are other Tramp bugs I need to fix first. Done. See bug#61926. The patch is attached. From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 07 05:13:36 2023 Received: (at 61748-done) by debbugs.gnu.org; 7 Mar 2023 10:13:36 +0000 Received: from localhost ([127.0.0.1]:44530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZUK7-00047Z-LD for submit@debbugs.gnu.org; Tue, 07 Mar 2023 05:13:35 -0500 Received: from mail-oi1-f173.google.com ([209.85.167.173]:38818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZUK5-00047J-7D for 61748-done@debbugs.gnu.org; Tue, 07 Mar 2023 05:13:34 -0500 Received: by mail-oi1-f173.google.com with SMTP id bg11so9205504oib.5 for <61748-done@debbugs.gnu.org>; Tue, 07 Mar 2023 02:13:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678184006; 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=xpJT4Ve9Y6xh2L5DPmmsqe+XEUXpahTY2jEZ4hDQVoU=; b=YUOLo4sMrBdMRUqFzcUKFN8A9FFcXx2VCyUWNKpSLmYXd6hHdAFXqbidYZBBdGpjYD sH9tZWRxhtv3s7BCYyoBvdiZfeYFu6/+Qycihh4Q4HB8MOUvyhJeQZSZtUzvCmsAdwQd d8y0FMC6WO1JzsmyfNCPA/NEPDI5FueFgHHPbAHk9hBqteZi51NRXqGF4fNPpiqBPvUC CqCsO6L5Mb8V+nOCQtXRtoWlDk6utcaRwW2SRYoJQ9Np8U7odgj1DNtGWwobJjTHzwvp QPCK7wT1HO4G1+6WnYDF0PgBLm9c9gf5ciJfQxxfwrYICpanJsILPrNE6ChtYBVEHYJn IxLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678184006; 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=xpJT4Ve9Y6xh2L5DPmmsqe+XEUXpahTY2jEZ4hDQVoU=; b=E3LYHLkYp/XKzHeRXIsmqfOn3E8L6vazxlqHE7eJqCHudCHxZ5f2fuy/ic3a/jB5qF 4Ha2gI14+o2uXUd2dW1aHVTv35gAXsv3zfp2qpU3CMxoK73dYnL0HOK89KlZ6y0xtgMh WZXdRTx2fy4guPeDN92Iy83N3De54fSJlszd9LoqfuduH91rsWAMwoLeIg7iY/hrJ3Pe v6XMaMt89VpgD9v+0dAoIIBO0OChO4EOm9JtoR2HE0bTv06aXz8aZgKzfbLaTq84Exvq YHkvOzP2n9XRGasrg/vlpcSBlNK3U1yojvGwhB6ktVJUJK8WOoz7xlRnrFH5oUTrCnZM dkJQ== X-Gm-Message-State: AO0yUKUSNXqv1SzisymIL47g1crzm76PACjcgzKzFOiDHnbjHLFKdfgV KQXSXhcLA8VqTx90sbuCCs5K0vUi/lMfPT3/zg0= X-Google-Smtp-Source: AK7set+EkRMcy9bbmfo8OtcsInrE/SKNkYo0pETVBOzsPUEglMlVVFwuvB3BSUzKAL43iZLNapR+o9TZ5ibOXOVJCCo= X-Received: by 2002:a05:6808:7c5:b0:37f:a3b7:c877 with SMTP id f5-20020a05680807c500b0037fa3b7c877mr4598435oij.8.1678184006494; Tue, 07 Mar 2023 02:13:26 -0800 (PST) MIME-Version: 1.0 References: <1055906941.11380565.1677658193477.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Tue, 7 Mar 2023 10:15:13 +0000 Message-ID: Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file To: jeberger@free.fr, 61748-done@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61748-done Cc: Michael Albinus X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Thu, Mar 2, 2023 at 1:28=E2=80=AFPM Jo=C3=A3o T=C3=A1vora wrote: > > On Wed, Mar 1, 2023 at 8:09=E2=80=AFAM wrote: > > `tramp-own-remote-path` and making sure that it is set correctly > > fixes my point 2, but then `rust-analyzer` doesn't have the path set an= d > > so fails to find the Rust toolchain. > > AFAIC is a different problem now. Earlier, the program couldn't be invoke= d > at all. > > > So my patch is still required to fix that part. > > I've pushed a simpler patch to emacs-29. Please test. I'm going to assume the lack of reply is because the problem doesn't happen anymore. It doesn't in my tests, but my remote language server in the remote $HOME doesn't rely on PATH to figure out the toolchain and thus doesn't suffer from this vulnerability. Closing. If the problem persists, we can reopen. Jo=C3=A3o From unknown Thu Sep 11 16:39:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 04 Apr 2023 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator