haskell-ide-engine
haskell-ide-engine copied to clipboard
haskell-lsp error when executing any action
trafficstars
I don't know where I should report this issue, but I'm getting a haskell-lsp error whenever I try to execute an action. For example:
- When I try to change some variable name I get the following
haskell-lsp:no handler for. Object (fromList [("jsonrpc",String "2.0"),("params",Object (fromList [("newName",String "Asser"),("textDocument",Object (fromList [("uri",String "file:///home/nlehmann/phd/binah/generator/src/Ast.hs")])),("position",Object (fromList [("line",Number 12.0),("character",Number 12.0)]))])),("method",String "textDocument/rename"),("id",Number 108.0)]) - When I try to autoimport some module I get
haskell-lsp:parse error. Object (fromList [("jsonrpc",String "2.0"),("params",Object (fromList [("command",Array [Object (fromList [("moduleToImport",String "Data.Char"),("importStyle",Object (fromList [("tag",String "Simple")])),("file",String "file:///home/nlehmann/phd/binah/generator/src/Ast.hs")])])])),("method",String "workspace/executeCommand"),("id",Number 171.0)]) "parsing Text failed, expected String, but encountered Array" `stack update` and install new haskell-lsp. Or check information on https://marketplace.visualstudio.com/items?itemName=xxxxxxxxxxxxxxx
I'm using the haskell layer in spacemacs with lsp-haskell-20200309.2144, lsp-mode-20200325.1808, and I compiled hie-8.8.2 from source
$ hie-8.8.2 --version
Version 1.2, Git revision b7fd5fb04b1711d433fc203751bc61624edc8dd0 (dirty) (3843 commits) x86_64 ghc-8.8.2