I’m new here and sorry for my bad english. I’m trying to learn Elixir on my PC with Windown 10 Pro and I have problem at the begining in VS code.
1> ElixirLS - Elixir client: couldn’t create connection to server.
2> The ElixirLS - Elixir server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
3> Pending response rejected since connection got disposed.
Tried to reinstall everything, but problem still exist.
Current version of ElixirLS: Elixir support and debugger is 0.23.1
Hi. In my experience, the language server is a bit flakey on Windows. Sometimes I close the editor, delete the .elixir_ls and _build folders, compile it and hope for the best after I reopen the editor.
There is an output window where you can see what the extension is doing in more detail.
This is what i get in output window. Mby this can help to understand what it wants?!
Installing ElixirLS release v0.23.0
Running in c:/Users/Admin/Desktop/Elixir
Getting elixir_ls (GitHub - elixir-lsp/elixir-ls: A frontend-independent IDE "smartness" server for Elixir. Implements the "Language Server Protocol" standard and provides debugger support via the "Debug Adapter Protocol" - v0.23.0)
Mix.install failed with ** (Mix.Error) Error fetching/updating Git repository: the “git” executable is not available in your PATH. Please install Git on this machine or pass --no-deps-check if you want to run a previously built application on a system without Git.
(mix 1.17.3) lib/mix.ex:588: Mix.raise/2
(mix 1.17.3) lib/mix/scm/git.ex:109: anonymous fn/2 in Mix.SCM.Git.checkout/1
(elixir 1.17.3) lib/file.ex:1665: File.cd!/2
(mix 1.17.3) lib/mix/dep/fetcher.ex:64: Mix.Dep.Fetcher.do_fetch/3
(mix 1.17.3) lib/mix/dep/converger.ex:238: Mix.Dep.Converger.all/9
(mix 1.17.3) lib/mix/dep/converger.ex:170: Mix.Dep.Converger.init_all/8
(mix 1.17.3) lib/mix/dep/converger.ex:110: Mix.Dep.Converger.all/4
(mix 1.17.3) lib/mix/dep/converger.ex:89: Mix.Dep.Converger.converge/4
Retrying Mix.install with force: true
Installing ElixirLS release v0.23.0
Running in c:/Users/Admin/Desktop/Elixir
Getting elixir_ls (GitHub - elixir-lsp/elixir-ls: A frontend-independent IDE "smartness" server for Elixir. Implements the "Language Server Protocol" standard and provides debugger support via the "Debug Adapter Protocol" - v0.23.0)
** (Mix.Error) Error fetching/updating Git repository: the “git” executable is not available in your PATH. Please install Git on this machine or pass --no-deps-check if you want to run a previously built application on a system without Git.
(mix 1.17.3) lib/mix.ex:588: Mix.raise/2
(mix 1.17.3) lib/mix/scm/git.ex:109: anonymous fn/2 in Mix.SCM.Git.checkout/1
(elixir 1.17.3) lib/file.ex:1665: File.cd!/2
(mix 1.17.3) lib/mix/dep/fetcher.ex:64: Mix.Dep.Fetcher.do_fetch/3
(mix 1.17.3) lib/mix/dep/converger.ex:238: Mix.Dep.Converger.all/9
(mix 1.17.3) lib/mix/dep/converger.ex:170: Mix.Dep.Converger.init_all/8
(mix 1.17.3) lib/mix/dep/converger.ex:110: Mix.Dep.Converger.all/4
(mix 1.17.3) lib/mix/dep/converger.ex:89: Mix.Dep.Converger.converge/4
[Error - 6:45:46 PM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 6:45:46 PM] Connection to server got closed. Server will restart.
true
[Error - 6:45:46 PM] ElixirLS - Elixir client: couldn’t create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 6:45:46 PM] Server process exited with code 1.
Installing ElixirLS release v0.23.0
Running in c:/Users/Admin/Desktop/Elixir
Getting elixir_ls (GitHub - elixir-lsp/elixir-ls: A frontend-independent IDE "smartness" server for Elixir. Implements the "Language Server Protocol" standard and provides debugger support via the "Debug Adapter Protocol" - v0.23.0)
Mix.install failed with ** (Mix.Error) Error fetching/updating Git repository: the “git” executable is not available in your PATH. Please install Git on this machine or pass --no-deps-check if you want to run a previously built application on a system without Git.
(mix 1.17.3) lib/mix.ex:588: Mix.raise/2
(mix 1.17.3) lib/mix/scm/git.ex:109: anonymous fn/2 in Mix.SCM.Git.checkout/1
(elixir 1.17.3) lib/file.ex:1665: File.cd!/2
(mix 1.17.3) lib/mix/dep/fetcher.ex:64: Mix.Dep.Fetcher.do_fetch/3
(mix 1.17.3) lib/mix/dep/converger.ex:238: Mix.Dep.Converger.all/9
(mix 1.17.3) lib/mix/dep/converger.ex:170: Mix.Dep.Converger.init_all/8
(mix 1.17.3) lib/mix/dep/converger.ex:110: Mix.Dep.Converger.all/4
(mix 1.17.3) lib/mix/dep/converger.ex:89: Mix.Dep.Converger.converge/4