curriculum
curriculum copied to clipboard
Add section on how to debug Elixir LS language server in Visual Studio Code
A recent Discord Message I posted that inspired this issue:
Some of you folks experiencing issues with Elixir LS (or when formatting adds weird brackets) it's likely an issue with Elixir LS.
You can run the "restart the language server" command have have a look at the Output section of the terminal to debug the problem. Make sure you've selected the Elixir LS server in the Output Dropdown.
One common cause is starting the visual studio code outside of the project. For example the following might cause problems:
code /blog
But the following might work:
cd blog code .
Because it changes how Elixir LS starts.
I think @John had this problem, but I'm sure others also did. I repeatedly encounter the issue and always forget the fix above 🤦♂️There's probably a way to configure this so it doesn't happen that I'm not aware of, but starting vsc in the project folder isn't too much of a workaround.