From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Johann =?UTF-8?Q?H=C3=B6chtl?= Newsgroups: gmane.emacs.bugs Subject: bug#59883: Eglot gopls failed to connect Date: Wed, 7 Dec 2022 14:50:35 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000001bdab005ef3d35ff" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9191"; mail-complaints-to="usenet@ciao.gmane.io" To: 59883@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 07 14:51:23 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 1p2upW-00027d-KO for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Dec 2022 14:51:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2upE-0007PD-6s; Wed, 07 Dec 2022 08:51: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 1p2upC-0007Og-U9 for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 08:51: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 1p2upC-0003fa-MD for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 08:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p2upC-00017F-9A for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 08:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Johann =?UTF-8?Q?H=C3=B6chtl?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Dec 2022 13:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59883 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16704210534278 (code B ref -1); Wed, 07 Dec 2022 13:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Dec 2022 13:50:53 +0000 Original-Received: from localhost ([127.0.0.1]:50462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2up2-00016w-P8 for submit@debbugs.gnu.org; Wed, 07 Dec 2022 08:50:53 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:51774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2up0-00016q-W0 for submit@debbugs.gnu.org; Wed, 07 Dec 2022 08:50:51 -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 1p2up0-0007Nl-IU for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 08:50:50 -0500 Original-Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p2uoy-0003dm-HT for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 08:50:50 -0500 Original-Received: by mail-oi1-x22d.google.com with SMTP id v70so12386305oie.3 for ; Wed, 07 Dec 2022 05:50:47 -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=JkX4iD5nj+E39TIFWl/iw+KvcBtkOukwYcyKs9zZ/R0=; b=MyTBC/v3powQwHwEXM6SMAI56Ft4vIgulmxMxQNdHabN0YpuUXakjJIOtPxzAUqaI9 pTSEB1cGMi+xgxsVkCxp3tGA1jwcMTK+JND6+oCQThtVE8no/unS86baPEjsX7c/+PtE L5BCyErc/uNLStGhCpZhHVBu2Wc6zez8nBp0W0sgSe2Vr3wnRRbRDcBEx6V75d/Zlw9F fxHLXk3Xap48mBQRZokxOkYdSXGD20nlr6OgBoEZermqDNTgwQOfrfBwwc6QeTCQW4dY kZPYYF7+o7TLp3VUKdj59dqfXhXqMfLjpjRuQx3ue7nWdYen5oEWP6KjZERuwM9jm2kU /KHA== 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=JkX4iD5nj+E39TIFWl/iw+KvcBtkOukwYcyKs9zZ/R0=; b=rsjE3ZgbdLtOT6mhNFOLTWbdHRFmln5/5L46lYX1A6Mv3Wv+Y9Y8v5qt3O8UaNcmrq wVmYYJkYV380FqYqxuXh/U4Lnp6mWL0mBPLuzFKuOXcz5BVXsyysjnu+kFL4cpAl/XVw DufxqlDDVmII65/gDWR6AGCgHS7HAuJJ/f5SHoi023C8wyxdgGJf90eI/w8uCjuF5RU8 9d+VrH9EnAcR2/VIlekDfoqqkmN5gDx5zTSBd3+/V/Zc58gEVzJwE8n3h9h9cmbjdYtq J2vUZLkGdA74jA5iP19+RvlwsJbaPOHi9u/4+auJSg9U1FS2/DDRQNuljsMHyH1hAxPH GaOg== X-Gm-Message-State: ANoB5pkEOg7EIqLH6MTbLHgtcMvm4JfMyYOOtWxWdROKyG5aU9thEk2j rNadO/K06iVPLz1wgNhSMm8Pi2vACYLrCw5ioIeUjK1qvg== X-Google-Smtp-Source: AA0mqf6zxTHz5znzkiu8P+Md1sjd/Zax4Sr9l7ZnfXt4eb2wjFOxGKm+Qva/temlDE3xd6D66/uXLMfnQfS2cfD/XUw= X-Received: by 2002:a54:4612:0:b0:35b:cebf:b078 with SMTP id p18-20020a544612000000b0035bcebfb078mr17087919oip.24.1670421046613; Wed, 07 Dec 2022 05:50:46 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::22d; envelope-from=johann.hoechtl@gmail.com; helo=mail-oi1-x22d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:250191 Archived-At: --0000000000001bdab005ef3d35ff Content-Type: text/plain; charset="UTF-8" Using Emacs build https://github.com/kiennq/emacs-build/releases/tag/v29.169.20221201.4a23421 has builtin eglot: yes Running under git bash,Windows 10, German I am developing golang, the go LSP server is gopls. Installed @latest from golang.org/x/tools/gopls v0.10.1 golang.org/x/tools/gopls@v0.10.1 h1:JoHe17pdZ8Vsa24/GUO8iTVTKPh0EOBiWpPop7XJybI= Messages are: [eglot] Connected! Server `gopls' now managing `(go-mode go-dot-mod-mode go-dot-work-mode)' buffers in project `kennzahlenmonitor'. Error in menu-bar-update-hook (imenu-update-menubar): (jsonrpc-error "request id=2 failed:" (jsonrpc-error-message . "Timed out")) The EGLOT Buffer has these entries: [client-notification] Wed Dec 7 14:43:57 2022: (:jsonrpc "2.0" :method "textDocument/didOpen" :params (:textDocument (:uri "file:///c%3A/Users/HoechtlJ/code/kennzahlenmonitor/kennzahlenmonitor/units/serviceware/serviceware.go" :version 0 :languageId "go" :text [... snip ...] [client-request] (id:6) Wed Dec 7 14:43:58 2022: (:jsonrpc "2.0" :id 6 :method "textDocument/documentSymbol" :params (:textDocument (:uri "file:///c%3A/Users/HoechtlJ/code/kennzahlenmonitor/kennzahlenmonitor/units/serviceware/serviceware.go"))) [client-request] (id:7) Wed Dec 7 14:44:13 2022: (:jsonrpc "2.0" :id 7 :method "textDocument/signatureHelp" :params (:textDocument (:uri "file:///c%3A/Users/HoechtlJ/code/kennzahlenmonitor/kennzahlenmonitor/units/serviceware/serviceware.go") :position (:line 0 :character 0))) [client-request] (id:8) Wed Dec 7 14:44:13 2022: (:jsonrpc "2.0" :id 8 :method "textDocument/hover" :params (:textDocument (:uri "file:///c%3A/Users/HoechtlJ/code/kennzahlenmonitor/kennzahlenmonitor/units/serviceware/serviceware.go") :position (:line 0 :character 0))) [client-request] (id:9) Wed Dec 7 14:44:13 2022: (:jsonrpc "2.0" :id 9 :method "textDocument/documentHighlight" :params (:textDocument (:uri "file:///c%3A/Users/HoechtlJ/code/kennzahlenmonitor/kennzahlenmonitor/units/serviceware/serviceware.go") :position (:line 0 :character 0))) [internal] (id:7) Wed Dec 7 14:44:23 2022: (:timed-out :textDocument/signatureHelp :id 7 :params (:textDocument (:uri "file:///c%3A/Users/HoechtlJ/code/kennzahlenmonitor/kennzahlenmonitor/units/serviceware/serviceware.go") :position (:line 0 :character 0))) [internal] (id:8) Wed Dec 7 14:44:23 2022: (:timed-out :textDocument/hover :id 8 :params (:textDocument (:uri "file:///c%3A/Users/HoechtlJ/code/kennzahlenmonitor/kennzahlenmonitor/units/serviceware/serviceware.go") :position (:line 0 :character 0))) [internal] (id:9) Wed Dec 7 14:44:23 2022: (:timed-out :textDocument/documentHighlight :id 9 :params (:textDocument (:uri "file:///c%3A/Users/HoechtlJ/code/kennzahlenmonitor/kennzahlenmonitor/units/serviceware/serviceware.go") :position (:line 0 :character 0))) Symptom is, that the LSP server is running but actually not in a working state. Memory consumption is stable (low) but the server doens't seem to respond to request. If the project is very small, the server works. It seems the server is not yet ready scanning packages yet has to answer requests. Under some very rare circumstances even on a large codebase gopls works. Icouldn't yet identify a pattern when this is the case. --0000000000001bdab005ef3d35ff Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
has builtin=C2=A0eglot: yes

R= unning under git bash,Windows 10, German

I am deve= loping golang, the go LSP server is gopls. Installed=C2=A0@latest from=C2=A0

= Messages are:

[eglot] Connected! Server `gopls'= ; now managing `(go-mode go-dot-mod-mode go-dot-work-mode)' buffers in = project `kennzahlenmonitor'.
Error in menu-bar-update-hook (imenu-up= date-menubar): (jsonrpc-error "request id=3D2 failed:" (jsonrpc-e= rror-message . "Timed out"))


The EGLOT Buffer has these entries:
[client-notification]= Wed Dec =C2=A07 14:43:57 2022:
(:jsonrpc "2.0" :method "= textDocument/didOpen" :params
=C2=A0(:textDocument
=C2=A0 = (:uri "file:///c%3A/Users/HoechtlJ/code/kennzahlenmonitor/kennzahlenmo= nitor/units/serviceware/serviceware.go" :version 0 :languageId "g= o" :text
=C2=A0[... snip ...]

[= client-request] (id:6) Wed Dec =C2=A07 14:43:58 2022:
(:jsonrpc "2.= 0" :id 6 :method "textDocument/documentSymbol" :params
= =C2=A0(:textDocument
=C2=A0 (:uri "file:///c%3A/Users/HoechtlJ/= code/kennzahlenmonitor/kennzahlenmonitor/units/serviceware/serviceware.go&q= uot;)))
[client-request] (id:7) Wed Dec =C2=A07 14:44:13 2022:
(:json= rpc "2.0" :id 7 :method "textDocument/signatureHelp" :p= arams
=C2=A0(:textDocument
=C2=A0 (:uri "file:///c%3A/User= s/HoechtlJ/code/kennzahlenmonitor/kennzahlenmonitor/units/serviceware/servi= ceware.go")
=C2=A0 :position
=C2=A0 (:line 0 :character 0)= ))
[client-request] (id:8) Wed Dec =C2=A07 14:44:13 2022:
(:jsonrpc &= quot;2.0" :id 8 :method "textDocument/hover" :params
= =C2=A0(:textDocument
=C2=A0 (:uri "file:///c%3A/Users/HoechtlJ/c= ode/kennzahlenmonitor/kennzahlenmonitor/units/serviceware/serviceware.go&qu= ot;)
=C2=A0 :position
=C2=A0 (:line 0 :character 0)))
[clien= t-request] (id:9) Wed Dec =C2=A07 14:44:13 2022:
(:jsonrpc "2.0&quo= t; :id 9 :method "textDocument/documentHighlight" :params
= =C2=A0(:textDocument
=C2=A0 (:uri "file:///c%3A/Users/HoechtlJ/c= ode/kennzahlenmonitor/kennzahlenmonitor/units/serviceware/serviceware.go&qu= ot;)
=C2=A0 :position
=C2=A0 (:line 0 :character 0)))
[inter= nal] (id:7) Wed Dec =C2=A07 14:44:23 2022:
(:timed-out :textDocument/sig= natureHelp :id 7 :params
(:textDocument
(:uri "file:///c%= 3A/Users/HoechtlJ/code/kennzahlenmonitor/kennzahlenmonitor/units/servicewar= e/serviceware.go")
:position
(:line 0 :character 0)))[internal] (id:8) Wed Dec =C2=A07 14:44:23 2022:
(:timed-out :textDocum= ent/hover :id 8 :params
(:textDocument
(:uri "file:///c%3= A/Users/HoechtlJ/code/kennzahlenmonitor/kennzahlenmonitor/units/serviceware= /serviceware.go")
:position
(:line 0 :character 0)))
= [internal] (id:9) Wed Dec =C2=A07 14:44:23 2022:
(:timed-out :textDocume= nt/documentHighlight :id 9 :params
(:textDocument
(:uri "= file:///c%3A/Users/HoechtlJ/code/kennzahlenmonitor/kennzahlenmonitor/units/= serviceware/serviceware.go")
:position
(:line 0 :charact= er 0)))

Symptom is, that the LSP server is run= ning but actually not in a working state. Memory consumption is stable (low= ) but the server doens't=C2=A0seem to respond to request.
If the project is very small, the server works.

<= /div>
It seems the server is not yet ready scanning packages yet has to= answer requests.

Under some very rare circumstanc= es even on a large codebase gopls works. Icouldn't yet identify a patte= rn when this is the case.
--0000000000001bdab005ef3d35ff--