From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#61350: Eglot over Tramp freezes with large project Date: Sun, 26 Feb 2023 21:45:46 +0000 Message-ID: <87a610f6d1.fsf@gmail.com> References: <87y1ootw2t.fsf@gmail.com> <69968923.705640.1677163650760@office.mailbox.org> <87a613f0b7.fsf@gmx.de> <87r0udvmzr.fsf@gmx.de> <878rglxrzm.fsf@gmail.com> <87cz5wmjbx.fsf@gmx.de> <87h6v8f7u9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14756"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Thomas Koch , 61350@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 26 22:45:29 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pWOpk-0003eG-F0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Feb 2023 22:45:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWOpV-0006yf-A8; Sun, 26 Feb 2023 16:45:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWOpL-0006y2-EH for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2023 16:45:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWOpK-0008Or-2n for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2023 16:45:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWOpJ-0005J2-RK for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2023 16:45:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Feb 2023 21:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61350 X-GNU-PR-Package: emacs Original-Received: via spool by 61350-submit@debbugs.gnu.org id=B61350.167744784320301 (code B ref 61350); Sun, 26 Feb 2023 21:45:01 +0000 Original-Received: (at 61350) by debbugs.gnu.org; 26 Feb 2023 21:44:03 +0000 Original-Received: from localhost ([127.0.0.1]:45170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWOoM-0005HN-Jr for submit@debbugs.gnu.org; Sun, 26 Feb 2023 16:44:03 -0500 Original-Received: from mail-wm1-f47.google.com ([209.85.128.47]:45024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWOoJ-0005Gi-K1 for 61350@debbugs.gnu.org; Sun, 26 Feb 2023 16:44:01 -0500 Original-Received: by mail-wm1-f47.google.com with SMTP id m25-20020a7bcb99000000b003e7842b75f2so2729766wmi.3 for <61350@debbugs.gnu.org>; Sun, 26 Feb 2023 13:43:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677447833; 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=j903svN/zz9Px/DTprBFr1/nC9O1AiBCM+K0OKRmSoY=; b=d+qcYpmtcVD91CD8kge0Prr2xsBZyj7Kn8ikj9MtHMzr0lxVPFoXV/oV9SS5VjxKGW +OgbRA2zgBssyfaMIGO/pBpFqSE7rUheL9AAwu7HrYdLDQAZG9T6EpZlUOcs20XuKfw1 9u/CukjUx106duxpZ7TwLvAnMdHimYpZNtNc8g8T2lRVapWRF6zFMMcm/DNNnS4Ydmif yXlajzNWOrE+e0qK0VlYADq4O4VvnREK6KKi8tfoPOC40AKjn+HgmBzmjJPEoFw5Q0WB du9zptp1V+m4yfJRo8LJOKgUQDfPjRcTSbj0Bwo1b1IQdWG+0Um55x8TKax7XNYdutrk DriQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677447833; 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=j903svN/zz9Px/DTprBFr1/nC9O1AiBCM+K0OKRmSoY=; b=uM04ldoA+XUnOSA7YFYTX/EOs17VQ+zPRLh1APwjX9Jwvg39lhwfdgQQ/cXo38b//M POtAcOO0W0Junagj6RYPR5fZ3Qubm1+2b88gIg7zTsIQa2FyPpoGYkVIh1wuJOS2o1+v Fu8OKdXRamfp4SU0Y4Bkz8lq6DrqYPAJwGXEKnha48B5s1k21NJrEEfoAvE/mouM0fUx hSIfrvkC5FyUPUbmnymgxWK+h2q/ZaXVA9yAxfQFCNfEUK7QRBu85zz61O8VaAHXKKrf 6MMEKVcJDaBkErS7eRppuDQV1pIBCzGsMuVRDnGxYS6yCeMlfsjHz8wbi7pPyOkPJA7q ErKQ== X-Gm-Message-State: AO0yUKXTPp/56VrbP/oz/4w3KpLnN4D59I04LHzMg66Xe8AeENk+CssG eU1N4iTbxjVMT56/Ee+KxOoEPCBajmY= X-Google-Smtp-Source: AK7set9tlsd/ktjKlsiN7xioxEV19FGACyQQ5HDj1666/tIFtETK29lNIs++jGn20Ltq/4SsC9PTYg== X-Received: by 2002:a05:600c:708:b0:3eb:3c76:c23c with SMTP id i8-20020a05600c070800b003eb3c76c23cmr1961124wmn.3.1677447833407; Sun, 26 Feb 2023 13:43:53 -0800 (PST) Original-Received: from krug (87-196-72-142.net.novis.pt. [87.196.72.142]) by smtp.gmail.com with ESMTPSA id m4-20020a05600c4f4400b003e209b45f6bsm11200561wmq.29.2023.02.26.13.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 13:43:52 -0800 (PST) In-Reply-To: <87h6v8f7u9.fsf@gmail.com> ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Sun, 26 Feb 2023 21:13:50 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256832 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Jo=C3=A3o T=C3=A1vora writes: > So maybe one should disable it by default. How does one disable it? I > have trouble understanding from tramp-use-ssh-controlmaster-options and > tramp-ssh-controlmaster-options. In the meantime I have finally, with great Docker-relearning hardship, setup a reproduction environment. You'll see it follows exactly Thomas's reproduction recipe almost until the end. It sets up a server on port 2022=20 I attach the dockerfile. $ docker build -t sshubuntu . $ docker run -d -p 2022:22 sshubuntu $ /path/to/emacs -Q /ssh:sshuser@localhost#2022:/home/sshuser/yacy_search_s= erver/source/net/yacy/yacy.java -f eglot Now the odd bit. Sometimes this works, sometimes it doesn't!!! Sometimes it finds '~/bin/jtdls' in the remote's PATH and sometimes it doesn't! I have no idea why. Maybe someone can help me debug: how is PATH to work? In the server I can see that on simple ssh login, ~/bin/jdtls _is_ found. Anyway, when I _do_ manage to get it to find sshuser's '~/bin/jtdls': * I do experience the hang regularly, but not always at the same point in time. * I don't know how to obtain the pretty Backtrace that you Michael got. Michael how do you get that?? Maybe you're using some tramp flag, because debug-on-error and debug-on-quit don't work. * If I set=20 (setq tramp-ssh-controlmaster-options nil tramp-use-ssh-controlmaster-options nil) I _no longer_ experience the hang. This is after visiting 5 or 6 files, trying some completion, M-. xref-find-definitions, etc. Michael can you confirm that these are per-buffer values? Would it make sense for Eglot to set them like so in its minor mode hook? Jo=C3=A3o --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline; filename=dockerfile Content-Transfer-Encoding: quoted-printable Content-Description: dockerfile 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"] --=-=-=--