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

belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
logicmason
Hi there, I'm working through my first release with elixir/phoenix. I've built a release with distillery and found that it crashes when I...
New
tduccuong
Hi, is there any work on GUI with Elixir, that is similar to Electron/Javascript? My idea is to bundle Phoenix and BEAM into a single se...
New
Werner
Hi, I’m using Ubuntu 18.04 and after updating to OTP-24.0 yesterday i have this warning when I run “mix local.hex”: 14:57:30.512 [warn] ...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New

Other popular topics Top

freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
yurko
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
New
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New

We're in Beta

About us Mission Statement