- Sometimes it just gets flat-out confused and needs to be restarted.
:lsp-restart
in helixCtrl + Shift + P
and searchrestart language language server
in vscode
- Are you using lamdera? or elm-pages (which uses the lamdera compiler)?
- Tell your editor to use
lamdera
as theelm
path/command. - Try
lamdera reset
- ...you may need to trigger a build afterwards (e.g. by loading site after lamdera live)
- Try copying
~/.lamdera
to~/.elm
(supposedly this will be fixed in a future version)
- Tell your editor to use
- Sometimes setting up elm-tooling in the project will work when the global elm tools won't. Don't know why.
- Check logs. Search google and elm channels (below) for errors.
- visual studio code: open terminal pane and switch to "output" tab and select "elm" from the dropdown
- helix:
:log-open
- Check #elm-language-server and #editors-and-ides channels in the elm-slack
- Check
elm-language-server --version
and compare to elm-language-server repo- Compare your node version to the supported version according to the changelog
- Try updating if not on the most recent version
- If the latest version not working and there are unreleased fixes on main, try installing from source.
Make sure your
$PATH
is set up so the version installed withnpm link
has higher precedence than the regular npm version. Check withtype elm-language-server
.
- I'm not sure why this fixes it, but the past two times I've seen elm lsp fail with
No workspaces contains X.elm
, uninstalling and reinstallingelm-ui
fixed it. Not sure if it's specific to elm ui, or because it was the last line in the direct dependencies.
Last active
October 21, 2023 10:42
-
-
Save blaix/a709f0068ba0c022bb71c38f88d3045b to your computer and use it in GitHub Desktop.
Troubleshooting issues with elm language server
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment