Closed josefs closed 10 months ago
I've got the same error and managed to fix it for myself:
lsp-haskell
pinned to melpa, which installed version 20220809.2129
(latest from github)lsp-mode
also pinned to melpa, which installed the release version 8.0.0It turns out that the latest git version of lsp-haskell
uses the macro defcustom-lsp
which was implemented in lsp-mode
in https://github.com/emacs-lsp/lsp-mode/commit/491d667d1e113bd6b43d1f88d47383e7fb137ddb, Oct 27, 2021 but lsp-mode
8.0.0 was released Sep 4, 2021
Or in other words: your lsp-mode
version is too old for lsp-haskell
. And it appears that compiling lsp-haskell
with the missing macro somehow leads to broken byte code rather than aborting the compilation.
How to fix:
lsp-mode
lsp-haskell
(rm -rf ~/.emacs.d/elpa/lsp-haskell-*
) lsp-haskell
Not sure there's anything to do here
I'm having trouble starting to use lsp-haskell. I've followed the installation instructions but when I open a Haskell file I get:
What am I doing wrong and how do I fix it? I don't particularly need a formatter and I don't have any installed at the moment.
My currently installed package version: lsp-mode 8.0.0 lsp-haskell 20220809.2129