Open leana8959 opened 23 hours ago
I noticed that, at each buffer change (input, etc.), neovim shows the following error message.
LSP[haskell-tools.nvim] Error condition, please check your setup and/or the [issue tracker](https://github.com/haskell/haskell-language-server/issues): LSP: no handler for: "textDocument/documentColor"
This happens with haskell-tools.nvim and lspconfig.nvim's hls configuration. I provide a latter example for the former below.
I have tried to disable the lsp functionality or disable ccc by default, but the error message is still popping up.
set termguicolors let s:plug_dir = expand('/tmp/plugged/vim-plug') if !filereadable(s:plug_dir .. '/autoload/plug.vim') execute printf('!curl -fLo %s/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim', s:plug_dir) end execute 'set runtimepath+=' . s:plug_dir call plug#begin(s:plug_dir) Plug 'uga-rosa/ccc.nvim' Plug 'neovim/nvim-lspconfig' call plug#end() PlugInstall | quit lua <<EOF local ccc = require("ccc") local mapping = ccc.mapping ccc.setup({ pickers = { disable = { "haskell" } }, highlighter = { auto_enable = true, lsp = true, excludes = { "haskell", }, }, }) require("lspconfig").hls.setup({}) EOF
Install haskell language server (the LSP needs to run for this issue to manifest)
Open the following example file (write the content to something like main.hs)
main.hs
module Main where main :: IO () main = undefined
Type anything in insert mode and the error will pop up.
The call to "textDocument/documentColor" shouldn't fail with such errors at each buffer change.
"textDocument/documentColor"
The call to "textDocument/documentColor" fails with an error message.
Thank you for the project and for reading this issue!
I'm sure the request is only sent if the server responds that textDocument/documentColor is supported🤔 It might be a bug in the server. I'll check when I have time.
Not a question
I investigated.
Description
I noticed that, at each buffer change (input, etc.), neovim shows the following error message.
This happens with haskell-tools.nvim and lspconfig.nvim's hls configuration. I provide a latter example for the former below.
I have tried to disable the lsp functionality or disable ccc by default, but the error message is still popping up.
Environments
Minimal reproducible full config
Steps to reproduce
Install haskell language server (the LSP needs to run for this issue to manifest)
Open the following example file (write the content to something like
main.hs
)Type anything in insert mode and the error will pop up.
Expected behavior
The call to
"textDocument/documentColor"
shouldn't fail with such errors at each buffer change.Actual behavior
The call to
"textDocument/documentColor"
fails with an error message.Additional context
Thank you for the project and for reading this issue!