Comments (5)
I messed around with this a lot during the summer break. The problem is that the LSP.el requires a particular command from the LSP spec to be enabled on the LSP implementation (lsp-haskell in this case) for eldoc to work. This command isn't enabled in lsp-haskell (no idea if HIE supports it though). Lsp-ui can show the types without a problem because it requires a different command which is enabled on lsp-haskell. Same goes for the other lsp functions that can see types, like check docs. The way I solved this was by overwriting the lsp-ui function which is stealing the type info lsp-ui generates and then giving it to eldoc instead https://github.com/walseb/QualityEmacsConfig#hack-in-eldoc-support . But this problem could probably be fixed by just telling LSP.el that the eldoc request command is enabled, since it should be supported by HIE
from lsp-haskell.
wow, did not expect a solution/response that quickly. Thank you blatant copy and paste of what you've shared.
from lsp-haskell.
No problem! There is one problem with it though atleast on my pc, changing lines sometimes results in eldoc not printing the type info. This could probably be fixed with a timer or something. It happens because lsp-ui sometimes doesn't fetch the type info in time for them to be printed by eldoc. Oh and sometimes there are also boxes on the right side of the screen. Those are remains of lsp-ui that I couldn't figure out how to remove
from lsp-haskell.
okay. pretty sure the command you mean is signature-help because it sounds like what it should and because its refrenced in the docstring for lsp--signature->eldoc-message
. I also believe this might be an issue on haskell-ide-engine raised to adress it... though its been pushed back quite a bit
from lsp-haskell.
It sounds like the issue here is support for the signatureHelp
requests in the language server, i.e. haskell-language-server
. If the server supports it then lsp-mode
should do the right thing. Could you open an issue in haskell-language-server
, please (assuming it hasn't been fixed already)?
from lsp-haskell.
Related Issues (20)
- Mouse scrolling stuck with large code lens HOT 5
- Path to HLS under nix-shell HOT 6
- Please, can inferred types be copied to clipboard HOT 5
- Overriding HLS configuration flags HOT 4
- Symbol’s function definition is void: lsp-haskell-completion-in-comments HOT 1
- 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
- (void-variable lsp-haskell-formatting-provider) HOT 2
- 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
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.