Linter not working after huge refactoring

I did a huge refactoring yesterday and apparently some code doesn’t fully compile so my linter isn’t working. it’s the same behaviour as when I am writing code and some import is missing or some obscure syntax error is there or something along those lines so until I figure it out it doesn’t lint everything properly, except this time I have no idea where the problem may be and elixir doesn’t seem to want to tell me. Any idea on how can I figure it out?

These are the errors that I’m getting from the output btw, it’s just nonsense

[Error - 10:48:01 AM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 10:48:01 AM] Connection to server got closed. Server will restart.
true
[Error - 10:48:01 AM] ElixirLS - server client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 10:48:02 AM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 10:48:02 AM] Connection to server got closed. Server will restart.
true
[Error - 10:48:02 AM] ElixirLS - server client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 10:48:03 AM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 10:48:03 AM] Connection to server got closed. Server will restart.
true
[Error - 10:48:03 AM] ElixirLS - server client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 10:48:03 AM] Restarting server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 10:48:04 AM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 10:48:04 AM] Connection to server got closed. Server will restart.
true
[Error - 10:48:04 AM] ElixirLS - server client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 10:48:04 AM] Restarting server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 10:48:05 AM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 10:48:05 AM] The ElixirLS - server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 10:48:05 AM] ElixirLS - server client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 10:48:05 AM] Restarting server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 

These are likely errors of the new elixir-ls 0.14.0, which was releases yesterday and not your refactoring. In VScode you can try installing 0.13.0 (can be done in the UI) to confirm.

1 Like

Thank you so much for that, you are correct.

I had the same kind of bug the other day and it competely filled my RAM :smiley:

What worked for me : close all vscode windows ; killall beam.smp; delete the .elixir-ls directory in the project ; launch vs code.

After this, 0.14 worked like a charm.

2 Likes