teatimes

teatimes

ElixirLS crashing on Mac M2

I suddenly started having problems with ElixirLS crashing in Visual Studio Code. I ran Elixir 1.15.2 and OTP-26, and have tried to upgrade to Elixir 1.16.1, with no luck.

I have installed erlang 26.2.2 and elixir 1.16.1-otp-16 with asdf. I have tried downgrading the ElixirLS version, uninstalled it, restarted, and reinstalled, and deleted the .elixir_ls folder. Nothing work, and the .elixir_ls folder has not reappeared. I have also tried to remove and reinstall elixir and erlang.

The errors I get are

Running /Users/username/.vscode/extensions/jakebecker.elixir-ls-0.19.0/elixir-ls-release/launch.sh
Preferred shell is zsh, relaunching
Looking for ASDF install
ASDF install found in /opt/homebrew/opt/asdf/libexec/asdf.sh, sourcing
Installing ElixirLS release v0.19.0
Running in /Users/username/Coding/myProject
Install complete
[Info  - 11:52:37] Started ElixirLS v0.19.0
[Info  - 11:52:37] Running in /Users/username/Coding/myProject
[Info  - 11:52:37] ElixirLS built with elixir "1.16.1" on OTP "26"
[Info  - 11:52:37] Running on elixir "1.16.1 (compiled with Erlang/OTP 26)" on OTP "26"
[Info  - 11:52:37] Protocols are not consolidated
[Info  - 11:52:37] Elixir sources not found (checking in /home/runner/work/elixir/elixir). Code navigation to Elixir modules disabled.
[Info  - 11:52:37] Received client configuration via workspace/configuration
%{"additionalWatchedExtensions" => ["*_test.exs"], "autoBuild" => true, "autoInsertRequiredAlias" => true, "dialyzerEnabled" => true, "dialyzerFormat" => "dialyxir_long", "dialyzerWarnOpts" => [], "enableTestLenses" => true, "envVariables" => %{}, "fetchDeps" => false, "languageServerOverridePath" => "", "mixEnv" => "test", "mixTarget" => "", "projectDir" => "", "signatureAfterComplete" => true, "suggestSpecs" => true, "trace" => %{"server" => "off"}}
[Error - 11:52:37] Invalid `additionalWatchedExtensions`: ["*_test.exs"]
[Error - 11:52:39] Server process exited with code 1.
[Error - 11:52:39] The ElixirLS - myProject server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

Anyone who have experienced this or ideas on how to fix it?

Marked As Solved

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

Hey @teatimes as an initial sanity check if you rm -rf .elixir_ls in your project does it help?

Also Liked

smathy

smathy

Looks like 0.19.0 added extra config validation, ElixirLS now barfs if the extensions don’t begin with a period.

Where Next?

Popular in Questions Top

albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New
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
polypush135
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
Phillipp
Hey, I have a NanoPi-M3 and try to install Elixir on their Ubuntu image. I followed the Raspberry Pi installation instructions from the ...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
LegitStack
I’m trying to make a websocket server in Phoenix or raw Elixir. I heard about gun, I think I could use cowboy, but since I’m not that sma...
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
wernerlaude
In AR this is so simple @articles = current_user.articles How to do in Ecto? def index(conn, _params) do current_user = conn.assig...
New

Other popular topics Top

sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
977 41022 311
New
dotdotdotPaul
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
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
William
I would like to know that is there any online source for learning Phoenix Framework for building E-Commerce Store? Any advantage on build...
New
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
mgjohns61585
Could someone help me? I'm making my first elixir program, number guessing game. I can't figure out how to convert the user's guess from ...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New

We're in Beta

About us Mission Statement