From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.bugs Subject: bug#58790: Eglot URI parsing bug when using clojure-lsp server Date: Wed, 23 Nov 2022 11:55:00 +0000 Message-ID: <720bcf72-e944-4978-982f-4b6fa8b31e5c@gmail.com> References: <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> <87iljf72ua.fsf@gmx.de> <87a64qykcf.fsf@gmx.de> <8735ab12pr.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2882"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: Felician Nemeth , 58790@debbugs.gnu.org, Michael Albinus , Stefan Kangas , Dmitry Gutov , Eli Zaretskii , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= To: Danny Freeman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 23 12:56:19 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 1oxoMV-0000XK-Lt for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Nov 2022 12:56:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxoMH-0005za-1I; Wed, 23 Nov 2022 06:56:05 -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 1oxoMF-0005y3-1M for bug-gnu-emacs@gnu.org; Wed, 23 Nov 2022 06:56:03 -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 1oxoME-00021K-PE for bug-gnu-emacs@gnu.org; Wed, 23 Nov 2022 06:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oxoME-0000lb-GM for bug-gnu-emacs@gnu.org; Wed, 23 Nov 2022 06:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Copley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Nov 2022 11:56: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.16692045142887 (code B ref 58790); Wed, 23 Nov 2022 11:56:02 +0000 Original-Received: (at 58790) by debbugs.gnu.org; 23 Nov 2022 11:55:14 +0000 Original-Received: from localhost ([127.0.0.1]:54018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxoLR-0000kU-NT for submit@debbugs.gnu.org; Wed, 23 Nov 2022 06:55:14 -0500 Original-Received: from mail-wm1-f42.google.com ([209.85.128.42]:53814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxoLN-0000kA-S7 for 58790@debbugs.gnu.org; Wed, 23 Nov 2022 06:55:13 -0500 Original-Received: by mail-wm1-f42.google.com with SMTP id p16so12883540wmc.3 for <58790@debbugs.gnu.org>; Wed, 23 Nov 2022 03:55:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=mv7dv6RZYohUWenb5v5WTAe2YQAh7DlGRdz66yIqD+s=; b=PpJNr9eiwv5f7+J6HZaeIvT2FVj6BX38mu+A9AYuembRVEUiP3T26LpNoBMOAnCyBh 5TR58iifE5JQBKzgQKotqehOiAwD0e1vmPY9XCEqblBNN/H3VXRAs91ir/Cza9522a5Y E1UVOb3l6lT0OzdtZoh0dp4wIZ8jNY5vVRoPYjHd5KFlfrqpmq5/3tzdE8kz4xqC8H9U rB5gLsJ68cKFWIhBqV43OmsXhHCd4EX50uQiXLJB9RFZFSMrsnU+NOViBEaGTqoMf7zR AIpzOIT69RSRvxPmQrWy02QoNiIApRa6qStiXHRT9hi65ALcujAp/QSG5GCi8BRkb3FJ 4VGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=mv7dv6RZYohUWenb5v5WTAe2YQAh7DlGRdz66yIqD+s=; b=MIbP2Dv8Ybe6QC/6yKri2+2GnqrtYuNDn1QplkgEJT+VycBGmdacfI1QLaxjGvtK8j OBVvXxOdi82GkodEDO3UWJY7pKtVwER5P3BmVVVvmNGJhb8+DEaqHoeW59nF3aKal7B0 sJQxuot3BIHKYgXDrxSzICCzPPR15mRzLslu1FZoSOfNWnt2oh2us3wZYPQ/41H9jk+v E/JmTLwBZ+KJiNlhF1BuL0FapED6nsQqmtJ/QhblEgUIWeAdpWhoqtopteEvgRIhKNLH teWZiLeY7yGep4n/rSmi8qUzMrrK0OXy7UoiY/+ULBs/t7Scv0fCzP1offPAeUXuTnsF 1qkg== X-Gm-Message-State: ANoB5pmzeUewxFT7ECTB1FXEpg4KzyAkYMk/1Hfyp/RqsQ68USr73Dhw p3xXgjuqA2R3YVcXFDAmTcQ= X-Google-Smtp-Source: AA0mqf4IZcunU0D+EGhnCCzT5BDdrDBewnBhx7gw5MYmY7GA0O5Qfx0cYsIcaMfxF/iInDZSVppfEQ== X-Received: by 2002:a1c:2743:0:b0:3c6:e471:7400 with SMTP id n64-20020a1c2743000000b003c6e4717400mr6213845wmn.98.1669204503747; Wed, 23 Nov 2022 03:55:03 -0800 (PST) Original-Received: from [192.168.1.101] (dsl-multi-static-81-140-129-201.in-addr.broadbandscope.com. [81.140.129.201]) by smtp.gmail.com with ESMTPSA id b13-20020a5d45cd000000b002258235bda3sm16389326wrs.61.2022.11.23.03.55.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Nov 2022 03:55:03 -0800 (PST) In-Reply-To: <8735ab12pr.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:248727 Archived-At: On 22/11/2022 14:30, Michael Albinus wrote: > João Távora writes: > > Hi João, > >> Both seem to be OK, although I'm not sure that it is the right >> approach in eglot--path-to-uri just to concat "file://" and the >> file-local-name part of a remote file name. >> >> Can you describe a case where this would be problematic? Remember >> that, from the point of view of the server, the file is always local. >> That's regardless of whether eglot invoked the server remotely or >> locally. > > Got it. > > Best regards, Michael. Hi All, For file names with a Windows drive letter and forward slashes (as emitted by CMAKE_EXPORT_COMPILE_COMMANDS), the drive letter is misinterpreted as a URL type, leading to repeated errors, "clangd only supports 'file' URI scheme for workspace files". (let ((path "c:/projects/awesome-project/source/main.cpp")) (message "type %s, url %s" (url-type (url-generic-parse-url path)) (eglot--path-to-uri path))) ;; => "type c, url c:/projects/awesome-project/source/main.cpp"