teatimes

teatimes

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?

Showing Posts 1 to 5

snofang

snofang

Building everything from Elixir itself up from sources, fades out some doubts of platform inconsistencies; asdf is a quite help.

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?

smathy

smathy

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

lukaszsamson

lukaszsamson

ElixirLS Core Team

Why would anyone include .exs in additional watched extensions anyway? The server subscribes for changes on .exs and a couple of other standard elixir/erlang extensions by default

teatimes

teatimes OP

Thank you so much, that seems to have solved the issue for me!

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
kpanic
Hi everyone, I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding. I sta...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews