I’ve been trying to get my Elixir setup working but LSP-Elixir consistently crashes. I’ve tried removing it, and all other Elixir packages and reinstalling them but it always ends up crashing.
This is the message from the console:
Traceback (most recent call last):
File "/Users/travis/Library/Application Support/Sublime Text/Installed Packages/LSP.sublime-package/plugin/core/transports.py", line 181, in invoke
File "/Users/travis/Library/Application Support/Sublime Text/Installed Packages/LSP.sublime-package/plugin/core/sessions.py", line 1962, in on_transport_close
File "/Users/travis/Library/Application Support/Sublime Text/Installed Packages/LSP.sublime-package/plugin/core/windows.py", line 395, in on_post_exit_async
File "./python3.3/_weakrefset.py", line 60, in __iter__
RuntimeError: Set changed size during iteration
I have the latest version of Sublime. Installed LSP and Elixir Sublime Syntax.
Just noticed somebody liked this so I’m going to provide a brief update.
Unfortunately, I can’t remember all the steps I went through to get this working (I was working through a few disparate issues at the time and I’ve since switched machines) but I believe it had to do with my ASDF path where the Elixir LS was vs where the Sublime plugin was looking.
I’m linking to a related, but different, issue I had about the auto-format on save for lsp-elixir and the elixir sublime syntax, princemaple and azizk had some really good tips for troubleshooting which may prove helpful.