emptytuple

emptytuple

Helix + ElixirLS Issues: 'elixir-ls' not found in $PATH

Hey. I’m having some issues getting elixir-ls to work properly with my installation of the Helix editor. I’ve been out of the game for a while, and coming back after a long programming hiatus, so please forgive me if my issue turns out to be trivial.

Since I travel constantly, my dev machine is currently running SteamOS 3.7. All of my tooling is installed via brew.

I’m having an issue getting Helix to recognize the ElixirLS:

(deck@steamdeck ~)$ type elixir-ls
elixir-ls is /home/linuxbrew/.linuxbrew/bin/elixir-ls
(deck@steamdeck ~)$ echo $PATH
/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/home/deck/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
(deck@steamdeck ~)$ hx --health elixir
F: Not sharing "/esp" with sandbox: Ignoring blocking autofs path "/esp"
Configured language servers:
  ✘ elixir-ls: 'elixir-ls' not found in $PATH
...

As you can see, elixir-ls should be in my PATH, but Helix is complaining it can’t find it. For what it’s worth, I also have a ~/.config/helix/languages.toml set up properly, I believe:

[[language]]
name = "elixir"
scope = "source.elixir"
file-types = ["ex", "exs", "html.heex"]
roots = ["mix.exs"]
auto-format = true
diagnostic-severity = "Hint"
comment-token = "#"
indent = {tab-width = 2, unit = " "}
language-server = {command = "elixir-ls"}

Can anyone help me with this issue? I’m at a bit of an impasse.

Thanks!
Brandon

Marked As Solved

emptytuple

emptytuple

Solved

It turned out to be something really silly. I’d forgotten I installed Helix using flatpack; I am not very experienced with flatpack, but I think it had something to do with its sandboxing behavior.

Anyway, I uninstalled and reinstalled using brew and now ElixirLS is working wonderfully in Helix.

As an aside, you should really give Helix a try, it’s a great editor.

Where Next?

Popular in Questions Top

siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
earth10
Hi, I’m just starting to build a side-project with Elixir and Phoenix and doing some basic test with Elixir alone. What strikes me is th...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
yawaramin
In the Dialyzer docs ( dialyzer — OTP 29.0.2 (dialyzer 6.0.1) ), there is a way to turn off a specific warning for a function: -dialyzer...
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

Other popular topics Top

WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 41539 114
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 43622 214
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 53690 245
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New

Latest on Elixir Forum

We're in Beta

About us Mission Statement