<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Gopls on 怠惰技術ブログ</title>
    <link>/tags/gopls/</link>
    <description>Recent content in Gopls on 怠惰技術ブログ</description>
    <generator>Hugo -- 0.147.7</generator>
    <language>ja</language>
    <lastBuildDate>Sun, 22 Mar 2026 00:00:00 +0900</lastBuildDate>
    <atom:link href="/tags/gopls/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>EmacsでGoのLsp補完が死んだときの調査記録</title>
      <link>/posts/2026-03-21-emacs-gopls-failed-loop/</link>
      <pubDate>Sun, 22 Mar 2026 00:00:00 +0900</pubDate>
      <guid>/posts/2026-03-21-emacs-gopls-failed-loop/</guid>
      <description>&lt;h2 id=&#34;症状&#34;&gt;症状&lt;/h2&gt;
&lt;p&gt;Emacsで &lt;code&gt;.go&lt;/code&gt; ファイルを開くと以下のログが無限ループする。&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[eglot] Asking EGLOT (mydns/(go-ts-mode go-mod-ts-mode)) politely to terminate
[jsonrpc] Server exited with status 2
[eglot] Reconnected!
[eglot] Connected! Server &amp;#39;gopls&amp;#39; now managing &amp;#39;(go-ts-mode go-mod-ts-mode)&amp;#39; buffers in project &amp;#39;mydns&amp;#39;.
[jsonrpc] (warning) Sentinel for EGLOT (...) still hasn&amp;#39;t run, deleting it!
[jsonrpc] Server exited with status 9
[eglot] Reconnected! [2 times]
Error running timer: (error &amp;#34;Selecting deleted buffer&amp;#34;)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;code&gt;status 9&lt;/code&gt; は SIGKILL。gopls が起動→即死→reconnect を繰り返し、補完が一切効かない状態。&lt;/p&gt;
&lt;p&gt;&lt;code&gt;fmt.&lt;/code&gt; と打っても候補が出ない、もしくは関係のないゴミ候補が出る。手動で &lt;code&gt;M-x completion-at-point&lt;/code&gt; を叩いても &lt;code&gt;No match&lt;/code&gt;。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
