You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I appeared to have LSP_USE_PLISTS correctly set both for the installation and initialisation of lsp-mode, but it stopped working when I switched to running Emacs as a daemon and was harder to track down than it needed to be.
When opening a buffer that would call lsp, the server(s) would be stuck starting indefinitely. I couldn't work out what the issue was easily; *lsp-log* showed that the path was correct but none of the other buffers showed anything that would hint to problems with LSP_USE_PLISTS. Fortunately I decided to run lsp-doctor and saw that the plist feature was marked as optional and not OK as I expected.
It would be nice if lsp-mode would detect being run without plists when installed as such and perhaps show an error in the echo area and perhaps highlight the issue when lsp-doctor is called by making the plists item red instead of orange (after a longer time, I could easily have forgotten that I had set this up). An FAQ item could also be reasonable: "server stuck starting with plists enabled?...". If you don't agree with any this, feel free to close the issue; if someone searches for it in the future, hopefully they'll find it anyway.
The cause of the issue was in my own config, namely that I defer loading lsp-mode in a standalone Emacs session, but not when run as a daemon, roughly as below:
I appeared to have
LSP_USE_PLISTS
correctly set both for the installation and initialisation oflsp-mode
, but it stopped working when I switched to running Emacs as a daemon and was harder to track down than it needed to be.When opening a buffer that would call
lsp
, the server(s) would be stuck starting indefinitely. I couldn't work out what the issue was easily;*lsp-log*
showed that the path was correct but none of the other buffers showed anything that would hint to problems withLSP_USE_PLISTS
. Fortunately I decided to runlsp-doctor
and saw that the plist feature was marked as optional and not OK as I expected.It would be nice if
lsp-mode
would detect being run without plists when installed as such and perhaps show an error in the echo area and perhaps highlight the issue whenlsp-doctor
is called by making the plists item red instead of orange (after a longer time, I could easily have forgotten that I had set this up). An FAQ item could also be reasonable: "server stuck starting with plists enabled?...". If you don't agree with any this, feel free to close the issue; if someone searches for it in the future, hopefully they'll find it anyway.The cause of the issue was in my own config, namely that I defer loading
lsp-mode
in a standalone Emacs session, but not when run as a daemon, roughly as below:The
setenv
call was in a different file and it wasn't obvious which file would be loaded first. Once I called it inearly-init.el
the issue went awayThe text was updated successfully, but these errors were encountered: