From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Brown Newsgroups: gmane.emacs.bugs Subject: bug#58790: Date: Tue, 8 Nov 2022 19:59:45 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000dcb37b05ecff2ce3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33280"; mail-complaints-to="usenet@ciao.gmane.io" To: 58790@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 09 02:01:28 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 1osZT5-0008YI-Fb for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Nov 2022 02:01:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osZSo-0007tt-IB; Tue, 08 Nov 2022 20:01:10 -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 1osZSh-0007t7-BU for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2022 20:01: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 1osZSg-0003Bb-9H for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2022 20:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1osZSg-0000Rl-4P for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2022 20:01:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Robert Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Nov 2022 01:01:02 +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.16679556061569 (code B ref 58790); Wed, 09 Nov 2022 01:01:02 +0000 Original-Received: (at 58790) by debbugs.gnu.org; 9 Nov 2022 01:00:06 +0000 Original-Received: from localhost ([127.0.0.1]:38410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osZRl-0000PF-PB for submit@debbugs.gnu.org; Tue, 08 Nov 2022 20:00:06 -0500 Original-Received: from mail-ed1-f53.google.com ([209.85.208.53]:40505) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osZRj-0000OD-Pk for 58790@debbugs.gnu.org; Tue, 08 Nov 2022 20:00:04 -0500 Original-Received: by mail-ed1-f53.google.com with SMTP id r14so25055256edc.7 for <58790@debbugs.gnu.org>; Tue, 08 Nov 2022 17:00:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Y6/H12Q2Iy6PsPnnV53VuCmk8t0jms0Tt8YBKdLnUaI=; b=YN+81039Iqy4dlJCpr5x8ZNJyhP0rJC2nMY0RKgJLdJUKkrWPxZ9tVYpgh4CTLb2P5 8D8PFSaTa966EQPy+mofUlmBCWYpEYQVZZ63dD33TclqUcFQqPOgn6pN5pP3SKohf0GU 7JIskU7QHgD9FuVVTRW4ijePjZ3d+atj+QiW93s5WraspOSrt4WHSFN0FFQm4C6BCrK0 norga/PQg4v396w0ma+aWW+OVx7Dkf/jqEw9Y7Nm0Z8m0BV+aSs/5gYHMiWNsJkg6d/R eGwHEYxcm7W4dz0N8r8LCBPDvDp9H6fnP/bbsF42nZMr+0RjYbY2A9Pt9l99Q3IdpUd4 smmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Y6/H12Q2Iy6PsPnnV53VuCmk8t0jms0Tt8YBKdLnUaI=; b=3JTu/YFFzkddY3uBkYQcjfJpMaNz++5/LbnRVs2y9HG8Z2EfYH1ADvQgqFvJmWbCTb ZJt11fvxrKMvMCutS1NdGslzb7nzh/PIewL2o4mWnzlh/papqnabdlOjXh/UZhbFcxmO AS+D/GFCFzVq4tNPC7Oz6pkG3PasKQnzDSBXmhkl1TIw5o8ID9ijtZx3JxnZEziHo9LB Ijh+lJ2q7PvbEp7FCa+dP7/UPJezllog2a/84L30YRr4ze3dSaHdZDxlUvgZBWML53re nIiA5QloQm++xcy0FqumuWM8A/ONmoN8jxWkOrAytSEeXB5RUa4oH5hFbeUekWy5rj5U 22KQ== X-Gm-Message-State: ACrzQf183BBGow2StoVI1TSBocJVR5KOF44YQMpl7Jro7qE4Py/oGq+2 3HsNIDrhIeB+kFsiVClqWCm+qS9wS45IHrtbGI+mJt1h X-Google-Smtp-Source: AMsMyM6LCFf+ulpCY2kc/ex+9zU5uGvG+DWYPoX8DmdRlAM6ZcABn+b2qF8XVq0nsGBH71aVMlvaFJk6mwLkzpRZHHM= X-Received: by 2002:aa7:c504:0:b0:461:122b:882b with SMTP id o4-20020aa7c504000000b00461122b882bmr59152313edq.14.1667955597024; Tue, 08 Nov 2022 16:59:57 -0800 (PST) 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:247374 Archived-At: --000000000000dcb37b05ecff2ce3 Content-Type: text/plain; charset="UTF-8" I use a Java language server with Eglot that returns "jar:" URIs like those discussed in this bug thread. I took Danny's jarchive.el and combined it with the attached patch, which modifies Eglot so that it does not convert non-file URIs into file paths. With this patch and jarchive.el, "goto definition" works as expected when the Java source code is inside a jar file. --000000000000dcb37b05ecff2ce3 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Do-not-convert-non-file-URIs-into-file-paths.patch" Content-Disposition: attachment; filename="0001-Do-not-convert-non-file-URIs-into-file-paths.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_la8xnzw50 RnJvbSA3YTVlOTk1OWNhOWMxOTg5ZjQ2MTExOTk3MTBkOTVhODRhYzlkMjZiIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBSb2JlcnQgQnJvd24gPHJvYmVydC5icm93bkBnbWFpbC5jb20+ CkRhdGU6IFR1ZSwgOCBOb3YgMjAyMiAxOTo1Nzo1MCAtMDUwMApTdWJqZWN0OiBbUEFUQ0hdIERv IG5vdCBjb252ZXJ0IG5vbi1maWxlIFVSSXMgaW50byBmaWxlIHBhdGhzLgoKLS0tCiBlZ2xvdC5l bCB8IDU3ICsrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKystLS0tLS0tLS0tLS0tLS0t LS0tLS0tCiAxIGZpbGUgY2hhbmdlZCwgMzUgaW5zZXJ0aW9ucygrKSwgMjIgZGVsZXRpb25zKC0p CgpkaWZmIC0tZ2l0IGEvZWdsb3QuZWwgYi9lZ2xvdC5lbAppbmRleCA5MDFiZjMwLi44M2I0N2M2 IDEwMDY0NAotLS0gYS9lZ2xvdC5lbAorKysgYi9lZ2xvdC5lbApAQCAtMTQ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UgdXJsKSkKKyAgICAgICAgOzsgUEFUSCBpcyBhIGZpbGUgcGF0aC4g IENvbnZlcnQgaXQgaW50byBhIFVSSS4KKyAgICAgICAgKGxldCAoKHRydWVwYXRoIChmaWxlLXRy dWVuYW1lIHBhdGgpKSkKKyAgICAgICAgICAoY29uY2F0ICJmaWxlOi8vIgorICAgICAgICAgICAg ICAgICAgOzsgQWRkIGEgbGVhZGluZyAiLyIgZm9yIGxvY2FsIE1TIFdpbmRvd3Mtc3R5bGUgcGF0 aHMuCisgICAgICAgICAgICAgICAgICAoaWYgKGFuZCAoZXEgc3lzdGVtLXR5cGUgJ3dpbmRvd3Mt bnQpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAobm90IChmaWxlLXJlbW90ZS1wIHRydWVw YXRoKSkpCisgICAgICAgICAgICAgICAgICAgICAgIi8iKQorICAgICAgICAgICAgICAgICAgKHVy bC1oZXhpZnktc3RyaW5nCisgICAgICAgICAgICAgICAgICAgOzsgQWdhaW4gd2F0Y2ggb3V0IGZv ciB0cmFtcHkgcGF0aHMuCisgICAgICAgICAgICAgICAgICAgKGRpcmVjdG9yeS1maWxlLW5hbWUg KGZpbGUtbG9jYWwtbmFtZSB0cnVlcGF0aCkpCisgICAgICAgICAgICAgICAgICAgZWdsb3QtLXVy aS1wYXRoLWFsbG93ZWQtY2hhcnMpKSkKKyAgICAgIDs7IFBBVEggaXMgYWxyZWFkeSBhIFVSSS4K KyAgICAgIHBhdGgpKSkKIAogKGRlZnVuIGVnbG90LS11cmktdG8tcGF0aCAodXJpKQotICAiQ29u dmVydCBVUkkgdG8gZmlsZSBwYXRoLCBoZWxwZWQgYnkgYGVnbG90LS1jdXJyZW50LXNlcnZlcicu IgorICAiV2hlbiBVUkkgaXMgYSBmaWxlIFVSSSwgY29udmVydCBpdCBpbnRvIGEgZmlsZSBwYXRo LCBoZWxwZWQgYnkKK2BlZ2xvdC0tY3VycmVudC1zZXJ2ZXInLiAgT3RoZXJ3aXNlLCBqdXN0IHJl dHVybiB0aGUgVVJJIHVuY2hhbmdlZC4iCiAgICh3aGVuIChrZXl3b3JkcCB1cmkpIChzZXRxIHVy aSAoc3Vic3RyaW5nIChzeW1ib2wtbmFtZSB1cmkpIDEpKSkKLSAgKGxldCogKChzZXJ2ZXIgKGVn bG90LWN1cnJlbnQtc2VydmVyKSkKLSAgICAgICAgIChyZW1vdGUtcHJlZml4IChhbmQgc2VydmVy IChlZ2xvdC0tdHJhbXBpc2gtcCBzZXJ2ZXIpKSkKLSAgICAgICAgIChyZXR2YWwgKHVybC11bmhl eC1zdHJpbmcgKHVybC1maWxlbmFtZSAodXJsLWdlbmVyaWMtcGFyc2UtdXJsIHVyaSkpKSkKLSAg ICAgICAgIDs7IFJlbW92ZSB0aGUgbGVhZGluZyAiLyIgZm9yIGxvY2FsIE1TIFdpbmRvd3Mtc3R5 bGUgcGF0aHMuCi0gICAgICAgICAobm9ybWFsaXplZCAoaWYgKGFuZCAobm90IHJlbW90ZS1wcmVm aXgpCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoZXEgc3lzdGVtLXR5cGUgJ3dpbmRv d3MtbnQpCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoY2wtcGx1c3AgKGxlbmd0aCBy ZXR2YWwpKSkKLSAgICAgICAgICAgICAgICAgICAgICAgICAoc3Vic3RyaW5nIHJldHZhbCAxKQot ICAgICAgICAgICAgICAgICAgICAgICByZXR2YWwpKSkKLSAgICAoY29uY2F0IHJlbW90ZS1wcmVm aXggbm9ybWFsaXplZCkpKQorICAobGV0ICgodXJsICh1cmwtZ2VuZXJpYy1wYXJzZS11cmwgdXJp KSkpCisgICAgKGlmIChlcXVhbCAodXJsLXR5cGUgdXJsKSAiZmlsZSIpCisgICAgICAgIDs7IFRy YW5zZm9ybSBhIGZpbGUgVVJJIGludG8gYSBmaWxlIHBhdGgsIHdoaWNoIG1heSBiZSBhCisgICAg ICAgIDs7IHJlbW90ZSB0cmFtcCBwYXRoLgorICAgICAgICAobGV0KiAoKHNlcnZlciAoZWdsb3Qt Y3VycmVudC1zZXJ2ZXIpKQorICAgICAgICAgICAgICAgKHJlbW90ZS1wcmVmaXggKGFuZCBzZXJ2 ZXIgKGVnbG90LS10cmFtcGlzaC1wIHNlcnZlcikpKQorICAgICAgICAgICAgICAgKHJldHZhbCAo dXJsLXVuaGV4LXN0cmluZyAodXJsLWZpbGVuYW1lIHVybCkpKQorICAgICAgICAgICAgICAgOzsg UmVtb3ZlIHRoZSBsZWFkaW5nICIvIiBmb3IgbG9jYWwgTVMgV2luZG93cy1zdHlsZSBwYXRocy4K KyAgICAgICAgICAgICAgIChub3JtYWxpemVkIChpZiAoYW5kIChub3QgcmVtb3RlLXByZWZpeCkK KyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChlcSBzeXN0ZW0tdHlwZSAnd2lu ZG93cy1udCkKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChjbC1wbHVzcCAo bGVuZ3RoIHJldHZhbCkpKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChzdWJzdHJp bmcgcmV0dmFsIDEpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHZhbCkpKQorICAg ICAgICAgIChjb25jYXQgcmVtb3RlLXByZWZpeCBub3JtYWxpemVkKSkKKyAgICAgIDs7IE5vbi1m aWxlIFVSSXMgYXJlIHVubW9kaWZpbGVkLgorICAgICAgdXJpKSkpCiAKIChkZWZ1biBlZ2xvdC0t c25pcHBldC1leHBhbnNpb24tZm4gKCkKICAgIkNvbXB1dGUgYSBmdW5jdGlvbiB0byBleHBhbmQg c25pcHBldHMuCi0tIAoyLjI1LjEKCg== --000000000000dcb37b05ecff2ce3--