From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Danny Freeman via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#58790: Eglot URI parsing bug when using clojure-lsp server Date: Thu, 08 Dec 2022 14:07:59 -0500 Message-ID: <87cz8tvh9q.fsf@dfreeman.email> References: <83edubrvf0.fsf@gnu.org> <87cz9v9irh.fsf@gmail.com> <83o7terf9a.fsf@gnu.org> <87k042tqze.fsf@dfreeman.email> <87fseqtpiu.fsf@dfreeman.email> <875yfm8lzf.fsf@gmail.com> <83wn82osoo.fsf@gnu.org> <871qq8xfzr.fsf@gmx.de> <87mt8uwo2q.fsf@dfreeman.email> <87zgcs6nvb.fsf@gmx.de> <87r0y3luad.fsf@dfreeman.email> <87iljf72ua.fsf@gmx.de> <87a64qykcf.fsf@gmx.de> <87v8nejy32.fsf@dfreeman.email> <87o7sl6awm.fsf@gmx.de> <87h6y7uioy.fsf@dfreeman.email> <87wn72ovn1.fsf@gmx.de> Reply-To: Danny Freeman Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39863"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Felician Nemeth , 58790@debbugs.gnu.org, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , Dmitry Gutov , Eli Zaretskii , Stefan Kangas To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 08 20:16:18 2022 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 1p3MNU-000AAI-Mx for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Dec 2022 20:16:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3MNI-0006PA-E0; Thu, 08 Dec 2022 14:16:04 -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 1p3MNG-0006NH-Cv for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 14:16:02 -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 1p3MNG-00069k-5W for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 14:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p3MNG-0002Yt-0v for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 14:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Danny Freeman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Dec 2022 19:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58790 X-GNU-PR-Package: emacs Original-Received: via spool by 58790-submit@debbugs.gnu.org id=B58790.16705269409819 (code B ref 58790); Thu, 08 Dec 2022 19:16:01 +0000 Original-Received: (at 58790) by debbugs.gnu.org; 8 Dec 2022 19:15:40 +0000 Original-Received: from localhost ([127.0.0.1]:58533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3MMt-0002YJ-W8 for submit@debbugs.gnu.org; Thu, 08 Dec 2022 14:15:40 -0500 Original-Received: from out-246.mta0.migadu.com ([91.218.175.246]:19948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3MMr-0002Y7-9k for 58790@debbugs.gnu.org; Thu, 08 Dec 2022 14:15:38 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-reply-to: <87wn72ovn1.fsf@gmx.de> 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:250328 Archived-At: Michael Albinus writes: > > ??? > > I'm speaking about a clojure file which is located on a remote machine, > accessed via Tramp. I thought that Eglot uses an LSP server on that > remote machine then. I wasn't aware you were using tramp, I thought you were attempting to run clojure-lsp on a remote server to work with a project on a local machine, which shouldn't work. clojure-lsp needs access to the files, including jar files, to work properly. >> From what the clojure-lsp maintainers tell me, it will not run on a >> remote machine and be able to work with a project on your local machine. >> I'm not sure what it would return for a definition if it was able to run >> on a remote machine. > > The LSP server shouldn't care. It returns a local file name, like > "jar:file:///home/albinus/.m2/repository/org/clojure/clojure/1.10.3/clojure-1.10.3.jar!/clojure/core.clj". This > is because the file is local from the server's pov. > It is the client, Eglot, which must be able to access this file on the > remote machine. A task for your jarchive file name handler, I believe. > > Or do I misunderstand the architecture? I think I am just confused at this point. Can you explain more about what your current setup is for this question? In trying to understand, it sounds like you are using Emacs to connect to a remote machine somewhere via tramp. On the remote machine is a clojure project and a running clojure-lsp server. When you try to navigate to a definition in a jar, it is returning a jar URI pointing to something on your local machine, not the remote machine like it should? Does that sound right? Fwiw, I have never used tramp before, so I'm not sure how Eglot or clojure-lsp will behave in that kind of environment. -- Danny Freeman