From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#58790: Eglot URI parsing bug when using clojure-lsp server Date: Wed, 16 Nov 2022 08:53:01 +0100 Message-ID: <87iljf72ua.fsf@gmx.de> References: <87ilk5xq01.fsf@gmail.com> <87r0yrwfn3.fsf@gmail.com> <37716e41-5955-99f6-5204-e760a716fbf6@yandex.ru> <9bb290c8-f000-31d8-265d-b5441c33eb38@dfreeman.email> <4d50b820-7053-75eb-5b11-d3d36a02b013@dfreeman.email> <87v8nxsrq6.fsf@gmail.com> <87cza40xgs.fsf@dfreeman.email> <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> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28419"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: felician.nemeth@gmail.com, 58790@debbugs.gnu.org, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , dgutov@yandex.ru, Eli Zaretskii , stefankangas@gmail.com To: Danny Freeman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 16 08:54:15 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 1ovDFP-00079r-2Z for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Nov 2022 08:54:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovDFG-0005Rn-Fe; Wed, 16 Nov 2022 02:54:06 -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 1ovDFC-0005QU-2d for bug-gnu-emacs@gnu.org; Wed, 16 Nov 2022 02:54: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 1ovDFB-0006CP-OY for bug-gnu-emacs@gnu.org; Wed, 16 Nov 2022 02:54:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovDFB-0003wJ-Ka for bug-gnu-emacs@gnu.org; Wed, 16 Nov 2022 02:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Nov 2022 07:54: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.166858519915076 (code B ref 58790); Wed, 16 Nov 2022 07:54:01 +0000 Original-Received: (at 58790) by debbugs.gnu.org; 16 Nov 2022 07:53:19 +0000 Original-Received: from localhost ([127.0.0.1]:55912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovDEU-0003v6-IN for submit@debbugs.gnu.org; Wed, 16 Nov 2022 02:53:18 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:51589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovDES-0003us-D2 for 58790@debbugs.gnu.org; Wed, 16 Nov 2022 02:53:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1668585184; bh=2t1q9CDBx7YENAen6IAc0nR2g/nAfj/N/lxKHPhyQyE=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=jHHvqF09c8rZZuTCkglqbkbh8n+l+2UMwrcQY74bKEriEoTG8SrjrkcmJbqhXQQKK goZYsjQNWD6Em5M09yiOKNWQQpsyMV9w4yKEGO7U5kq2k7l+hw8MIe4vJYJWnRlZYR ZhohSylcTZyWvBYt8Oi4DL1xPWpAGzq/iQl6vYIFTJ6/O9/V+FYKE4WKaxqDONIwbK UQ8hTqeVbvrDrDzsYbffkBGhHoBhWHwnSgxmjAERmoq6GN32yujMlizIyNHGnH/EDQ lylT2WRFwUtglgNCYnUi43w4sRVl7gs+m2DsfAvRmzYGd5YcDrMr+PkWDilgZPkDoU Z7+Rm5qJOJNRw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.14]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MI5QF-1ohkYx1dAt-00FCr4; Wed, 16 Nov 2022 08:53:04 +0100 In-Reply-To: <87r0y3luad.fsf@dfreeman.email> (Danny Freeman's message of "Tue, 15 Nov 2022 17:28:54 -0500") X-Provags-ID: V03:K1:WDBuUMHrqv8kL97w+Tot804p78xjF/70PZwuysNFzsNMhlIQLBh rCTIMzG8VadxyUntntvMyJ2O0E8dHeA5xxZd2uhtZ2TaN+DLvjEsKYk7iqNanJDNMbdPTdF t1VzaIuQIO105x6vyrkBXMLmq8Jwh6jLxgTQuhx5pfHsHgr0RdSyn/3dnJF6wkbdSy3WUd4 kHYpLLg0uG4iXYtRl9Vhg== UI-OutboundReport: notjunk:1;M01:P0:sCJIW1mEXrw=;XjbdfXtk4Q2EvQJAm0vM8H8ZMCg 49BI1S+4AI6CIoxRk6np8nMi/n2eZJJcho2er9KDk90Y2NMqhMRDYoDMB1gxby8L68aINmU4Q SlPQYYkyokp4TJk8BnOufb+PtwsxCqZnGknQoD0yBNtTtwlRUhYAODagS90ngFrokfMWvekp5 OEEuu8Gk80NwWVYdCpk3lJqvuSF6isWNrnecOFRQEjgU9ACY8y3clFYdNVX+rspI3RxbMcDHr 2i+POKDw4xGLVqDngY+L/C7sWr4btQoFaHIakYRCBE90ahTJThqB0YT67hjwI2m2mLuDgobgI f02fbdnZ6AECUPXa4aGoUHUfIN/e5UAdUMcXozuqQOurLXy2agkR9sFHxHqbpHPbXKu3q/GgM 4dbnr4C0F1EvNH9nzy/KLhDNI+YC7DzOoIMGMvdiCAa5Ohbe6pPLU+BBQ5/Lr0gZNg3UZAL9n s7/UsILVLjkAG28qzBCPoOz363dopWqh/iVMJCwsL7zhRMSl1kSTMA8EyNxIhOAOXm3rzMkXM t/5g/mXdYDBU/jTIcsjN33MZerefMkOomTwer8bQAYezKFH27IlPX74iQDn789jAgZBY8On2P 4JMsvRlES+umNfc9Ti8hKdd1A40httI0I+y3BR/EDtdTAmp1lJPxyYiqlU71kR4/CqvztXXB9 PPCqEXHG0GE17sjVLGXiUqf9U920DRDy5W9MkV4Sk1QudiA4Bi5R/nt9dc2GJ2/LByFBqWGod oETcvLBDGxhDBrXjFWjjd7oN2VGBW6GlUprtO9At2exaFflYHwvVm49Z83R5/21dtbAKUo5i 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:247992 Archived-At: Danny Freeman writes: Hi Danny, >> Another approach is to simply require url-handlers in eglot.el, when it >> comes to handle a URI. It shall do what you want. > > That is a really interesting idea. I didn't know about the url-handlers > package. I think we would want the user to turn on that mode themselves > if they were expecting those types of URLs (http, ftp, etc). You could control this by a user option. > There are other URI schemes we have seen come through this function that > are outside the scope of the url-handlers package. The ones in this > particular thread are `jar` and `zipfile` URIs. I've seen other obscure > URIs as well that aren't really even standardized and only used by one > particular LSP server. url-handlers.el supports already non-canonical schemes, see `url-tramp-protocols'. We could add "jar" and "zipfile" to another user option, `url-archive-protocols', and let tramp-archive.el do the job. The current restriction is, that tramp-archive.el works only on GNU/Linux systems. When this is replaced by a native integration of libarchive(3) into Emacs, it would work everywhere. Best regards, Michael.