doo

doo

My problem

Env

OS: Window

# installed by asdf
elixir 1.15.2-otp-26
erlang 26.2.0

ElixirLS
0.20.0 (LTS)

When I run vscode and open the elixir file, a pop-up message like the below

Failed to run 'elixir' command. ElixirLS will probably fail to launch. Logged PATH to Development Console.

So, I checked view - output - elixirLS

[Error - 6:46:56 PM] Server process exited with code 1.
C:\Users\doo\.asdf\shims\erl.exe�� ������ ���� ���� Windows ������ ȣȯ���� �ʽ��ϴ�. ��ǻ���� �ý��� ������ Ȯ���ϰ� ����Ʈ���� �Խ��ڿ��� �����Ͻʽÿ�.
[Error - 6:46:56 PM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 6:46:56 PM] The ElixirLS - server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 6:46:56 PM] ElixirLS - client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 6:46:56 PM] Restarting server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 6:46:56 PM] Server process exited with code 1.

Nothing works except for the highlighting syntax

I tried to add PATH

echo $PATH

/c/Program Files/Elixir/bin:
/c/Program Files/Erlang OTP/bin:
/c/Users/doo/.asdf/shims:
/c/Users/doo/.asdf/bin

I’m using git bash in vscode *opened by git bash

Expected

intelliSense
Go to definition (custom function, built-in function

Please help me

Showing Posts 1 to 5

cmo

cmo

Can you run elixir? I didn’t think asdf worked on Windows.

doo

doo OP

Yes, It works well, but vscode can’t find elixir command

cmo

cmo

Can you only run it from git bash or does it work from cmd, pwsh, etc?

doo

doo OP

and i can run terminal(git bash) in vscode (ctrl + `)

doo

doo OP

I resolved

on Window
There is no .bat or .exe in .asdf/bin path

# .bashrc
export PATH=$PATH:$PATH:$HOME/.asdf/shims
export PATH=$PATH:$HOME/.asdf/bin

and I modified path
PATH=new_path:$PATH new path priority^
PATH=$PATH:new_path priority v

solution:

# .bashrc
export PATH=$HOME/.asdf/installs/elixir/1.15.2-otp-26/bin:$PATH
export PATH=$HOME/.asdf/installs/erlang/26.2.0/bin:$PATH
— 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
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
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
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
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
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

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
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
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews