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

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
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
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
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
LegitStack
I’m hoping you guys can give me some general advice and perhaps code examples if you’re feeling up to it. I’m very interested in Elixir,...
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
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
sabri
Can someone explain the settings of pool_size of Ecto in config file? and what is the recommend size? Thanks
New

Other popular topics Top

Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
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
Tee
can someone please explain to me how Enum.reduce works with maps
New
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
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 45766 226
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
lk-geimfari
What is most correct way to open, read and parse JSON file with poison? For example if we have example.json file in root of some projec...
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
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
johnnyicon
Hi all, I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I'm trying to use Postg...
New

We're in Beta

About us Mission Statement