Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ElixirLS - linked_list client: couldn't create connection to server. #339

Closed
Maxino22 opened this issue Jun 9, 2023 · 7 comments
Closed

Comments

@Maxino22
Copy link

Maxino22 commented Jun 9, 2023

Hello, am new to elixir I installed the vs code Extension on my windows but i keep getting this error ... I installed Elixir and Erlang with choco
I have added Elixir to path correctly iex work fine also mix ... the vscode extension thou will not connect to server

This is the ouput of error on terminal

Starting ElixirLS release v0.14.6
Running in e:/Elixir/linked_list
** (Mix.Error) Could not find an SCM for dependency :sourceror from ElixirLS.LanguageServer.Mixfile
    (mix 1.14.4) lib/mix.ex:513: Mix.raise/2
    (mix 1.14.4) lib/mix/dep/loader.ex:195: Mix.Dep.Loader.with_scm_and_app/4
    (mix 1.14.4) lib/mix/dep/loader.ex:141: Mix.Dep.Loader.to_dep/3
    (elixir 1.14.4) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
    (elixir 1.14.4) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
    (mix 1.14.4) lib/mix/dep/loader.ex:358: Mix.Dep.Loader.mix_children/2
    (mix 1.14.4) lib/mix/dep/loader.ex:316: anonymous fn/4 in Mix.Dep.Loader.mix_dep/2
    (mix 1.14.4) lib/mix/project.ex:397: Mix.Project.in_project/4
[Error - 11:24:34 AM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 11:24:34 AM] Connection to server got closed. Server will restart.
true
[Error - 11:24:34 AM] ElixirLS - linked_list client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
Starting ElixirLS release v0.14.6
Running in e:/Elixir/linked_list
** (Mix.Error) Could not find an SCM for dependency :sourceror from ElixirLS.LanguageServer.Mixfile
    (mix 1.14.4) lib/mix.ex:513: Mix.raise/2
    (mix 1.14.4) lib/mix/dep/loader.ex:195: Mix.Dep.Loader.with_scm_and_app/4
    (mix 1.14.4) lib/mix/dep/loader.ex:141: Mix.Dep.Loader.to_dep/3
    (elixir 1.14.4) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
    (elixir 1.14.4) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
    (mix 1.14.4) lib/mix/dep/loader.ex:358: Mix.Dep.Loader.mix_children/2
    (mix 1.14.4) lib/mix/dep/loader.ex:316: anonymous fn/4 in Mix.Dep.Loader.mix_dep/2
    (mix 1.14.4) lib/mix/project.ex:397: Mix.Project.in_project/4
[Error - 11:24:39 AM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 11:24:39 AM] Connection to server got closed. Server will restart.
true
[Error - 11:24:39 AM] ElixirLS - linked_list client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
Starting ElixirLS release v0.14.6
Running in e:/Elixir/linked_list
** (Mix.Error) Could not find an SCM for dependency :sourceror from ElixirLS.LanguageServer.Mixfile
    (mix 1.14.4) lib/mix.ex:513: Mix.raise/2
    (mix 1.14.4) lib/mix/dep/loader.ex:195: Mix.Dep.Loader.with_scm_and_app/4
    (mix 1.14.4) lib/mix/dep/loader.ex:141: Mix.Dep.Loader.to_dep/3
    (elixir 1.14.4) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
    (elixir 1.14.4) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
    (mix 1.14.4) lib/mix/dep/loader.ex:358: Mix.Dep.Loader.mix_children/2
    (mix 1.14.4) lib/mix/dep/loader.ex:316: anonymous fn/4 in Mix.Dep.Loader.mix_dep/2
    (mix 1.14.4) lib/mix/project.ex:397: Mix.Project.in_project/4
[Error - 11:24:45 AM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 11:24:45 AM] Connection to server got closed. Server will restart.
true
[Error - 11:24:45 AM] ElixirLS - linked_list client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 11:24:45 AM] Restarting server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 
Starting ElixirLS release v0.14.6
Running in e:/Elixir/linked_list
** (Mix.Error) Could not find an SCM for dependency :sourceror from ElixirLS.LanguageServer.Mixfile
    (mix 1.14.4) lib/mix.ex:513: Mix.raise/2
    (mix 1.14.4) lib/mix/dep/loader.ex:195: Mix.Dep.Loader.with_scm_and_app/4
    (mix 1.14.4) lib/mix/dep/loader.ex:141: Mix.Dep.Loader.to_dep/3
    (elixir 1.14.4) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
    (elixir 1.14.4) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
    (mix 1.14.4) lib/mix/dep/loader.ex:358: Mix.Dep.Loader.mix_children/2
    (mix 1.14.4) lib/mix/dep/loader.ex:316: anonymous fn/4 in Mix.Dep.Loader.mix_dep/2
    (mix 1.14.4) lib/mix/project.ex:397: Mix.Project.in_project/4
[Error - 11:24:49 AM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 11:24:49 AM] Connection to server got closed. Server will restart.
true
[Error - 11:24:49 AM] ElixirLS - linked_list client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 11:24:49 AM] Restarting server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 
Starting ElixirLS release v0.14.6
Running in e:/Elixir/linked_list
** (Mix.Error) Could not find an SCM for dependency :sourceror from ElixirLS.LanguageServer.Mixfile
    (mix 1.14.4) lib/mix.ex:513: Mix.raise/2
    (mix 1.14.4) lib/mix/dep/loader.ex:195: Mix.Dep.Loader.with_scm_and_app/4
    (mix 1.14.4) lib/mix/dep/loader.ex:141: Mix.Dep.Loader.to_dep/3
    (elixir 1.14.4) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
    (elixir 1.14.4) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
    (mix 1.14.4) lib/mix/dep/loader.ex:358: Mix.Dep.Loader.mix_children/2
    (mix 1.14.4) lib/mix/dep/loader.ex:316: anonymous fn/4 in Mix.Dep.Loader.mix_dep/2
    (mix 1.14.4) lib/mix/project.ex:397: Mix.Project.in_project/4
[Error - 11:24:53 AM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 11:24:53 AM] The ElixirLS - linked_list server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 11:24:53 AM] ElixirLS - linked_list client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 11:24:53 AM] Restarting server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097
@lukaszsamson
Copy link
Collaborator

Please try to remove Mix.Utils.mix_cache() directory

@Maxino22
Copy link
Author

Maxino22 commented Jun 9, 2023

Did soo am still getting same error after restart

@jpacker
Copy link

jpacker commented Jun 10, 2023

I have the same issue, even after removing the mix cache directory. However, I installed Elixir with the installer to the default directories.

Ahh. Hex had to be installed and initialized. It works now after I cloned an existing project and did a mix deps.get

@lukaszsamson
Copy link
Collaborator

@jpacker so your problem was missing hex installation? @Maxino22 do you have hex installed?

@Maxino22
Copy link
Author

how do i install hex in windows

@lukaszsamson
Copy link
Collaborator

mix local.hex

@Maxino22
Copy link
Author

Thanks, I installed hex and it works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants