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#70036: a fix that Date: Fri, 19 Apr 2024 19:59:09 +0100 Message-ID: References: <4e670617-6483-4159-a5cf-27a921764c38@email.android.com> <864jbxden1.fsf@gnu.org> <86le59bo7z.fsf@gnu.org> <877cgtkyoq.fsf@thornhill.no> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21965"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 70036@debbugs.gnu.org, felician.nemeth@gmail.com To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 19 21:00:27 2024 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 1rxtTH-0005Wp-8K for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Apr 2024 21:00:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxtSh-0004m8-Lg; Fri, 19 Apr 2024 14:59:51 -0400 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 1rxtSf-0004lv-B2 for bug-gnu-emacs@gnu.org; Fri, 19 Apr 2024 14:59:50 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rxtSf-0003DZ-1h for bug-gnu-emacs@gnu.org; Fri, 19 Apr 2024 14:59:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rxtSt-0006Ug-8e for bug-gnu-emacs@gnu.org; Fri, 19 Apr 2024 15:00:03 -0400 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: Fri, 19 Apr 2024 19:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70036 X-GNU-PR-Package: emacs Original-Received: via spool by 70036-submit@debbugs.gnu.org id=B70036.171355318624798 (code B ref 70036); Fri, 19 Apr 2024 19:00:03 +0000 Original-Received: (at 70036) by debbugs.gnu.org; 19 Apr 2024 18:59:46 +0000 Original-Received: from localhost ([127.0.0.1]:59801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rxtSb-0006Ri-A7 for submit@debbugs.gnu.org; Fri, 19 Apr 2024 14:59:45 -0400 Original-Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]:45064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rxtSY-0006Qo-Bi for 70036@debbugs.gnu.org; Fri, 19 Apr 2024 14:59:43 -0400 Original-Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-518f8a69f82so2904241e87.2 for <70036@debbugs.gnu.org>; Fri, 19 Apr 2024 11:59:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713553162; x=1714157962; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=lxrrwoe+DpljB+Hs1pXEMAr8f03U02QXV95tq/pQWE8=; b=TbNWO/Y8xvwZC6Y/f1cQC3/YqEiqcfWtJhz8yxMfifYqs2USaGpuDkXfbAVvbyKlxe +APLtyVLe5tgOCzEgb8RvVOygOn+TVyQ96w8wSB1UxPqo8vqJdduk9hSM/arddXz3WB4 AIxpI7Elpwo3YyphKYvj5KqDIwuWb/W1mk5T3wVnyaKu4+RDdXT24MS+vYZLrft+LrSV 46oxKWWraHl86+AJhsh8B1h17APmAVN4qPTrR4PDBuG4l/b2Tw4LOk9SypxSZW5ATewp ladIH6Mgdr1e6baTDGFsJPEk4SOpt31BW4Lg2TXrMSoyX/fg2rEH+DCc+Px+WSdH54S3 Ib+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713553162; x=1714157962; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lxrrwoe+DpljB+Hs1pXEMAr8f03U02QXV95tq/pQWE8=; b=mae+KU5UAU7CVy1Inzf0f4UQbZ/JSmwu9ThGiGrLGfitREOllaBRtCLMf4PG36pAkL UJJ8+9KnEPqplmRvMSEtcpc65Foyjhmzo9Kz1MZQSTUFy44n3pat8gKmbDTfcxzaorAX C+jINbZ63U3fv9v1TfvCMi8kVJaTvpDAGvjDufEM7Bc+4/kuvMQIf0ZCOnAGwm2k6qcH ChGz5UayBu3jy1jH2QxTzDqENbqiF2Woox1FvPo30kYLICrUjmuAmGw8CFntmqSXa5a9 uvy+M11EgqDpEaEow4MJEqx9Ne7T6C3V/3NhNy2QIiKFoEwPQPUw5cbNXWAZId9IDfdf +J/A== X-Forwarded-Encrypted: i=1; AJvYcCXtohak2x8RhrBjcgBGCOosKrSXM+aAobgjSOHOZvz2k6VNvHoe5xCOkmOOrhZuo5ESCN2FFDe5OeEE31qoj4VJq8sbqP0= X-Gm-Message-State: AOJu0YwYJSZRWh4wKAnqiw2+nUGMKHf72M/JIpCzyXN7WqmQ4Tg6/YZb oRhJQfWgdcsAdR92qwgvjeI2kqCBc681xA9L7sCY1LHilbdKDhJ2Vy3eXDLARrKl8j/TO/Mysam H4qLWqq5ggd5JQG8QKKBEKBPFZTQ= X-Google-Smtp-Source: AGHT+IHkmmxRrXl0L5fEfdFh653/rRcrCTy2NDT5CeFqDTymL/wTs+mOYlwiAMCqM6p5npM8bB6Yo5UHLRSrbbWPzGg= X-Received: by 2002:a05:6512:2ee:b0:51a:d1cb:ba0a with SMTP id m14-20020a05651202ee00b0051ad1cbba0amr1040799lfq.12.1713553161835; Fri, 19 Apr 2024 11:59:21 -0700 (PDT) In-Reply-To: <877cgtkyoq.fsf@thornhill.no> 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:283702 Archived-At: On Fri, Apr 19, 2024 at 7:14=E2=80=AFPM Theodor Thornhill wrote: > > Jo=C3=A3o T=C3=A1vora writes: > > Open main.go in emacs and M-x eglot. Observe error: > ``` > compiler [DuplicateDecl]: main redeclared in this block (this error: othe= r declaration of main) > ``` Reproduced, but that's not Eglot's fault, couldn't be. Eglot told gopls _nothing_ about mainlink.go. Check your events buffer! No didOpen for mainlink.go! In fact you probably don't even need to didOpen any file for that problem to be reported as a project-wide diagnostic. A simple initialize will do, I bet. IOW, you barely need a client. Gopls decided to do some out-of-band (meaning out-of-LSP) analysis of the code, bumped into its own ignorance (or policy, who knows?) re. symlinks, and decided to issue diagnostics. Seems something a Go compiler would do. Maybe it does? Are symlinks even supported in Go projects? Bottom line is Eglot wasn't ever the hindrance for this to work and it should not suddenly become one. Not without a very good reason, which this performance matter clearly isn't (not least because there are lots of alternative solutions as we've seen) Jo=C3=A3o