Skip to content

Language.Haskell.LSP.Types.Message.RequestMessage the key params was not present #501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
teto opened this issue Oct 13, 2020 · 4 comments
Closed
Labels
status: needs info Not actionable, because there's missing information type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@teto
Copy link
Contributor

teto commented Oct 13, 2020

If you encounter a bug or you have a support question, please try to fill out some of the information below.
However, if you think your issue does not need any of it, you may omit it.
Generally speaking, the information below is meant for helping debugging issues
but they are no prerequisite for opening issues.

Subject of the issue

Describe your issue here.

[ DEBUG ] 2020-10-13T21:20:40+0200 ] ...0zz-neovim-master/share/nvim/runtime/lua/vim/lsp/rpc.lua:462 ] "decoded" { error = { code = -32603, message = 'haskell-lsp:parse error. Object (fromList [("jsonrpc",String "2.0"),("method",String "shutdown"),("id",Number 3.0)]) "When parsing the record RequestMessage of type Language.Haskell.LSP.Types.Message.RequestMessage the key params was not present." stack update and install new haskell-lsp. Or check information on https://marketplace.visualstudio.com/items?itemName=xxxxxxxxxxxxxxx' }, id = 3, jsonrpc = "2.0"}

Your environment

  • Output of haskell-language-server --probe-tools or haskell-language-server-wrapper --probe-toolshaskell-language-server --probe-tools
INFO: Invocation ID: c61d1ded-e638-401a-943d-3afdd6fa3f60
INFO: Build option --compilation_mode has changed, discarding analysis cache.
INFO: Analyzed target @hls-exe//haskell-language-server:haskell-language-server (1 packages loaded, 9568 targets configured).
INFO: Found 1 target...
Target @hls//:_haskell-language-server_exe_haskell-language-server up-to-date:
  bazel-bin/external/hls/haskell-language-server-0.4.0.0/_install/bin/haskell-language-server
INFO: Elapsed time: 0.589s, Critical Path: 0.03s
INFO: 0 processes.
INFO: Build completed successfully, 8 total actions
haskell-language-server version: 0.4.0.0 (GHC: 8.8.3) (PATH: /home/teto/.cache/bazel/_bazel_teto/32070fb26dd3cfe8bd075800f8bb83d1/execroot/toplevel_workspace/bazel-out/k8-opt/bin/external/hls/haskell-language-server-0.4.0.0/_install/bin/haskell-language-server)
Tool versions found on the $PATH
cabal:		Not found
stack:		2.3.1
ghc:		8.8.3
  • Which lsp-client do you use: Neovim master
  • Describe your project (alternative: link to the project): closed source bazel buildsystem
  • Contents of hie.yaml: generated, multicradle based

Steps to reproduce

Just open my editor (neovim), nothing happens.

Include debug information

I can't provide any debug log, it's a complex project and there are many errors but anyway the same issue seems to have existed in hie:
haskell/haskell-ide-engine#983

@jneira jneira added editor: vim/neovim type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. labels Oct 13, 2020
@jneira
Copy link
Member

jneira commented Oct 13, 2020

Thanks for the bug report. It would be really useful reproduce it in a alternate open source project.
Otoh could you try another editor to confirm it is neovim specific?

@lukel97
Copy link
Collaborator

lukel97 commented Oct 15, 2020

This is an issue in alanz/lsp, that request message should be valid since the shutdown request has no params associated with it

@jneira
Copy link
Member

jneira commented Dec 16, 2021

there had been some lsp (former haskell-lsp) releases since this, @teto could you reproduce the problem with last hls (1.5.1)?

@jneira jneira added the status: needs info Not actionable, because there's missing information label Dec 16, 2021
@teto
Copy link
Contributor Author

teto commented Dec 16, 2021

I haen't seen this in a long time. Will close and reopen if I see it again

@teto teto closed this as completed Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs info Not actionable, because there's missing information type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

No branches or pull requests

3 participants