Comments (2)
I've got the same error and managed to fix it for myself:
- I'm using emacs native
- I had
lsp-haskell
pinned to melpa, which installed version20220809.2129
(latest from github) - I had
lsp-mode
also pinned to melpa, which installed the release version 8.0.0
It turns out that the latest git version of lsp-haskell
uses the macro defcustom-lsp
which was implemented in lsp-mode
in emacs-lsp/lsp-mode@491d667, 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:
- Install the latest git version of
lsp-mode
- Delete the cached compiled
lsp-haskell
(rm -rf ~/.emacs.d/elpa/lsp-haskell-*
) - Reinstall
lsp-haskell
from lsp-haskell.
Not sure there's anything to do here
from lsp-haskell.
Related Issues (20)
- Installation issue HOT 3
- Document (?) how to change the `eldoc` signature HOT 10
- Headscratching class plugin experience HOT 9
- haskell-language-server-wrapper from emacs behaviors is different from command line HOT 3
- Hlint HOT 3
- lsp haskell incredibly slow on latest emacs git HOT 12
- lsp-server exits with status 'exit' HOT 1
- Error in $.params.processId: parsing Int32 failed, expected Number, but encountered Object HOT 5
- README missing a step? HOT 3
- Symbol’s value as variable is void: haskell-debug-mode-map HOT 6
- Question: how can I get rid of "Processing" message from modeline HOT 3
- Timeout while waiting for response Method: textDocument/codeAction HOT 2
- Activate on haskell-cabal mode also HOT 1
- Try both `haskell-language-server-wrapper` and `haskell-language-server` by default
- Lisp error: (void-variable fourmolu) HOT 10
- [QUESTION] Line breaker after constraints for type lenses HOT 1
- Don't use the debug flag by default. HOT 3
- How to make lsp-haskell more loosely tied to haskell-mode? HOT 4
- `lsp-haskell` picks up environment of different project/repository; `envrc` related? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsp-haskell.