<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="128085" data-post-id="128085">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="axelson" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/axelson/120/26351_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  axelson
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Scenic Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I actually just disable that with <code>'(lsp-ui-doc-enable nil)</code> in spacemacs <code>custom-set-variables</code>. But it would probably be better to raise an error on lsp-ui. It looks like there is a semi-related issue open already: <a href="https://github.com/emacs-lsp/lsp-ui/issues/267" class="inline-onebox" rel="nofollow">Too small window for docstring · Issue #267 · emacs-lsp/lsp-ui · GitHub</a> And perhaps you could try setting <code>lsp-ui-doc-use-webkit</code> to <code>t</code>?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="128085" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/emacs-elixir-setup-configuration-wiki/19196/83">Post #82</a>
	                </div>
	            </div>
              <div id="likers-container-128085" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="128085"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #82"></div>
  </section>
</div>
    <div class="postbit" id="128091" data-post-id="128091">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="zetashift" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/zetashift/120/15779_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  zetashift
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Doesn’t do anything <img src="https://forum.elixirforum.com/images/emoji/apple/frowning.png?v=15" title=":frowning:" class="emoji" alt=":frowning:" loading="lazy" width="20" height="20"> I’ll just disable it for now and keep watching the issue.</p>
<p>FWIW, the scala LSP doesn’t have these big popups</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="128091" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/emacs-elixir-setup-configuration-wiki/19196/84">Post #83</a>
	                </div>
	            </div>
              <div id="likers-container-128091" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="128091"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #83"></div>
  </section>
</div>
    <div class="postbit" id="128769" data-post-id="128769">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="martinstannard" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/martinstannard/120/1037_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  martinstannard
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I’m trying to use elixir_ls on a monorepo with an elixir application in a subdirectory in spacemacs. lsp-mode works when I use it on a standalone elxiir repo, with flycheck errors showing up.</p>
<p>From googling it seems I need to set ElixirLS.ProjectDir - <a href="https://github.com/JakeBecker/elixir-ls/issues/29" class="inline-onebox" rel="noopener nofollow ugc">Monorepo: "No mixfile found in project root." · Issue #29 · JakeBecker/elixir-ls · GitHub</a>. I’ve tried doing this with :lsp-add-project-dir and :lsp-switch-project-dir, but that doesn’t seem to help. Has anyone had any success with this scenario?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="128769" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/emacs-elixir-setup-configuration-wiki/19196/85">Post #84</a>
	                </div>
	            </div>
              <div id="likers-container-128769" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="128769"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #84"></div>
  </section>
</div>
    <div class="postbit" id="129567" data-post-id="129567">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="bodgix" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/bodgix/120/9879_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  bodgix
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Thanks for putting this wiki together first of all.</p>
<p>I used to get this working on spacemacs, but I have a new laptop at work and although I copied all my spacemacs and emacs settings, I cannot get elixir_ls to work.</p>
<p>I’m getting the following error:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">LSP :: elixir-ls has exited (exited abnormally with code 127)
</code></pre>
<p>I think it may have sth to do with elixir version. I initially installed 1.8 using homebrew, but having re-read the instructions, I installed asdf and I think I switched to the recommended version of Elixir. But still no joy and elixir-ls seems to be crashing when I open an Elixir file in spacemacs.</p>
<p>Any idea how to troubleshoot this?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="129567" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/emacs-elixir-setup-configuration-wiki/19196/86">Post #85</a>
	                </div>
	            </div>
              <div id="likers-container-129567" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="129567"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #85"></div>
  </section>
</div>
    <div class="postbit" id="129570" data-post-id="129570">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="pedroassumpcao" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/pedroassumpcao/120/996_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  pedroassumpcao
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a class="mention" href="/u/clag" rel="nofollow">@clag</a> try to add this line before the one you are using:</p>
<p><code>(require 'eglot)</code></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="129570" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/emacs-elixir-setup-configuration-wiki/19196/87">Post #86</a>
	                </div>
	            </div>
              <div id="likers-container-129570" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="129570"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #86"></div>
  </section>
</div>
    <div class="postbit" id="129571" data-post-id="129571">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="bodgix" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/bodgix/120/9879_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  bodgix
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="bodgix" data-post="86" data-topic="19196">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/bodgix/48/9879_2.png" class="avatar"> bodgix:</div>
<blockquote>
<p>LSP :: elixir-ls has exited (exited abnormally with code 127)</p>
</blockquote>
</aside>
<p>Ok. I found that spacemacs cannot find the elixir binary.</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">code/elixir/elixir-ls/release/language_server.sh: line 18: elixir: command not found
</code></pre>
<p>I tried adding ~/.asdf/shims to the path but still not working. But I think I may be on the right track. Just need to figure out how to support asdf in spacemacs.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="129571" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/emacs-elixir-setup-configuration-wiki/19196/88">Post #87</a>
	                </div>
	            </div>
              <div id="likers-container-129571" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="129571"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #87"></div>
  </section>
</div>
    <div class="postbit" id="129579" data-post-id="129579">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="axelson" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/axelson/120/26351_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  axelson
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Scenic Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Does your <code>.spacemacs.env</code> (<code>~/.spacemacs.env</code> or <code>~/.spacemacs.d/.spacemacs.env</code>) have elixir in <code>$PATH</code>?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="129579" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/emacs-elixir-setup-configuration-wiki/19196/89">Post #88</a>
	                </div>
	            </div>
              <div id="likers-container-129579" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="129579"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #88"></div>
  </section>
</div>
    <div class="postbit" id="129588" data-post-id="129588">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="bodgix" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/bodgix/120/9879_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  bodgix
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I added <code>~/.asdf/shims</code> to <code>$PATH</code> in <code>~/.spacemacs.env</code> and checked the value of <code>exec-path</code> variable in spacemacs and it now contains the path to elixir from from asdf but elixir-ls is still not starting with the same error.</p>
<p>I instrumented the <code>language_server.sh</code> script by adding:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">&gt;&amp;2 echo Environment is
&gt;&amp;2 env
&gt;&amp;2 echo elixir is
&gt;&amp;2 which elixir
</code></pre>
<p>And now can see in the <code>*elixir-ls::stderr*</code> buffer that something is resetting the $PATH to:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">Environment is
...
PATH=/usr/bin:/bin:/usr/sbin:/sbin
...
elixir is
/Users/myuser/code/elixir/elixir-ls/release/language_server.sh: line 24: elixir: command not found
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="129588" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/emacs-elixir-setup-configuration-wiki/19196/90">Post #89</a>
	                </div>
	            </div>
              <div id="likers-container-129588" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="129588"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #89"></div>
  </section>
</div>
    <div class="postbit" id="129592" data-post-id="129592">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="axelson" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/axelson/120/26351_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  axelson
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Scenic Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>What operating system is this? Also what shell are you using? I’m wondering if this is a difference between something like <code>~/.bash_profile</code> and <code>~/.bashrc</code>. My <code>~/.bash_profile</code> contains <code>. ~/.bashrc</code> to source my whole bashrc (although in this case you only need the correct <code>$PATH</code>)</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="129592" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/emacs-elixir-setup-configuration-wiki/19196/91">Post #90</a>
	                </div>
	            </div>
              <div id="likers-container-129592" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="129592"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #90"></div>
  </section>
</div>
    <div class="postbit" id="129599" data-post-id="129599">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="bodgix" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/bodgix/120/9879_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  bodgix
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>The operating system is macOS Mojave. Shell is zsh + oh-my-zsh plugins.</p>
<p>I found a post on Reddit suggesting to delete emac.d/melpa: <a href="https://www.reddit.com/r/emacs/comments/ab34v5/lspmode_unable_get_up_and_running/" rel="noopener nofollow ugc">https://www.reddit.com/r/emacs/comments/ab34v5/lspmode_unable_get_up_and_running/</a></p>
<p>Having done so I found that my <code>.spacemacs.env</code> had two PATH= lines so I deleted the one which had fewer directories. Not sure which step fixed it because unfortunately I did both things at the same time but everything is working now.</p>
<p>I’ve later added the incomplete PATH= back to my <code>.spacemacs.env</code> and it’s still working so it looks more like  purging melpa packages and re-installing them did the trick.</p>
<p>I had moved my <code>.emacs.d</code> directory from a different laptop which was running a different version of MacOS so there may have been some binaries there which were not compatible with the current OS ?</p>
<p>Thanks for the help!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="129599" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/emacs-elixir-setup-configuration-wiki/19196/92">Post #91</a>
	                </div>
	            </div>
              <div id="likers-container-129599" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="129599"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #91"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/19196/load_more?page=10">Load more posts (136 remaining)</a>
</div></template></turbo-stream>