Closed sergefdrv closed 1 year ago
So this seems to happen since invocation-directory
for the emacs snap is /snap/emacs/<revision>/usr/bin
and so then when lsp-start-plain
goes to launch emacs (via (expand-file-name invocation-name invocation-directory)
) it launches the emacs binary within the snap directly, and so the new emacs instance does not set itself up correctly - this can be worked around by calling lsp-start-plain
as:
(let ((invocation-directory "/snap/bin"))
(lsp-start-plain))
Or perhaps lsp-start-plain
could instead just launch emacs by something like:
(executable-find "emacs")
instead of (expand-file-name invocation-name invocation-directory)
After the last update
lsp-mode
stopped working normally. I'm trying to debug it withlsp-start-plain
but get the following: