ITADN

(-32601) No plugins for SMethod_TextDocumentInlayHint when opening default .cabal file

#470Closedignamartinoli 创建于 2025-05-14
unreproducible (distro)
I
ignamartinolicommented
### Neovim version (nvim -v) v0.12.0-dev-118+g7c15987444-dirty ### Operating system/version 6.14.6-gentoo ### Output of :checkhealth haskell-tools ```console ============================================================================== haskell-tools: 2 ⚠️ Checking for Lua dependencies ~ - ⚠️ WARNING telescope not installed. Required for hoogle search modes "telescope-local" and "telescope-web" [nvim-telescope/telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) Checking external dependencies ~ - ✅ OK haskell-language-server: found haskell-language-server version: 2.10.0.0 (GHC: 9.10.1) (PATH: /home/sicro/.local/share/nvim/mason/packages/haskell-language-server/lib/haskell-language-server-2.10.0.0/bin/haskell-language-server-wrapper) - ✅ OK hoogle: found Hoogle 5.0.18.4, https://hoogle.haskell.org/ - ⚠️ WARNING fast-tags: not found. Install [fast-tags](https://hackage.haskell.org/package/fast-tags) for extended capabilities. Optional, for generating tags as a `tagfunc` fallback. - ✅ OK curl: found curl 8.13.0 (x86_64-pc-linux-gnu) libcurl/8.13.0 OpenSSL/3.5.0 zlib/1.3.1 c-ares/1.34.5 libpsl/0.21.5 libssh2/1.11.1 nghttp2/1.65.0 nghttp3/1.9.0 - ✅ OK haskell-debug-adapter: found haskell-debug-adapter-0.0.39.0 - ✅ OK ghci-dap: found The Glorious Glasgow Haskell Compilation System, version 9.8.4 Checking config ~ - ✅ OK No errors found in config. Checking for conflicting plugins ~ - ✅ OK No conflicting plugins detected. ``` ### How to reproduce the issue - Create a project with `cabal init` and select all the default options - Open the `.cabal` file of the project ### Expected behaviour - ### Actual behaviour With every typed character, appears an error message that says ``` haskell-tools.nvim (cabal): -32601: No plugins are available to handle this SMethod_TextDocumentInlayHint request. Plugins installed for this method, but not available to handle this request are: explicit-fields does not support .cabal filetypes). importLens does not support .cabal filetypes). ``` ### Log files ```console [START][2025-05-14 18:52:36] haskell-tools.nvim logging initiated DEBUG | 2025-05-14 18:52:36 | ...zy/haskell-tools.nvim/lua/haskell-tools/log/internal.lua:146 | { "Config", { dap = { auto_discover = true, cmd = { "haskell-debug-adapter" }, logFile = "/home/sicro/.local/share/nvim/haskell-dap.log", logLevel = "Warning" }, debug_info = { unrecognized_keys = {}, was_g_haskell_tools_sourced = true }, hls = { auto_attach = <function 1>, capabilities = { general = { positionEncodings = { "utf-8", "utf-16", "utf-32" } }, textDocument = { callHierarchy = { dynamicRegistration = false }, codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" } } }, dataSupport = true, dynamicRegistration = true, isPreferredSupport = true, resolveSupport = { properties = { "edit", "command" } } }, codeLens = { dynamicRegistration = false, resolveSupport = { properties = { "command" } } }, completion = { completionItem = { commitCharactersSupport = false, deprecatedSupport = true, documentationFormat = { "markdown", "plaintext" }, preselectSupport = false, resolveSupport = { properties = { "additionalTextEdits", "command" } }, snippetSupport = true, tagSupport = { valueSet = { 1 } } }, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 } }, completionList = { itemDefaults = { "editRange", "insertTextFormat", "insertTextMode", "data" } }, contextSupport = true, dynamicRegistration = false }, declaration = { linkSupport = true }, definition = { dynamicRegistration = true, linkSupport = true }, diagnostic = { dynamicRegistration = false }, documentHighlight = { dynamicRegistration = false }, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, foldingRange = { dynamicRegistration = false, foldingRange = { collapsedText = true }, lineFoldingOnly = true }, formatting = { dynamicRegistration = true }, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = true }, implementation = { linkSupport = true }, inlayHint = { dynamicRegistration = true, resolveSupport = { properties = { "textEdits", "tooltip", "location", "command" } } }, publishDiagnostics = { dataSupport = true, relatedInformation = true, tagSupport = { valueSet = { 1, 2 } } }, rangeFormatting = { dynamicRegistration = true, rangesSupport = true }, references = { dynamicRegistration = false }, rename = { dynamicRegistration = true, prepareSupport = true }, semanticTokens = { augmentsSyntaxTokens = true, dynamicRegistration = false, formats = { "relative" }, multilineTokenSupport = false, overlappingTokenSupport = true, requests = { full = { delta = true }, range = false }, serverCancelSupport = false, tokenModifiers = { "declaration", "definition", "readonly", "static", "deprecated", "abstract", "async", "modification", "documentation", "defaultLibrary" }, tokenTypes = { "namespace", "type", "class", "enum", "interface", "struct", "typeParameter", "parameter", "variable", "property", "enumMember", "event", "function", "method", "macro", "keyword", "modifier", "comment", "string", "number", "regexp", "operator", "decorator" } }, signatureHelp = { dynamicRegistration = false, signatureInformation = { activeParameterSupport = true, documentationFormat = { "markdown", "plaintext" }, parameterInformation = { labelOffsetSupport = true } } }, synchronization = { didSave = true, dynamicRegistration = false, willSave = true, willSaveWaitUntil = true }, typeDefinition = { linkSupport = true } }, window = { showDocument = { support = true }, showMessage = { messageActionItem = { additionalPropertiesSupport = true } }, workDoneProgress = true }, workspace = { applyEdit = true, configuration = true, didChangeConfiguration = { dynamicRegistration = false }, didChangeWatchedFiles = { dynamicRegistration = false, relativePatternSupport = true }, inlayHint = { refreshSupport = true }, semanticTokens = { refreshSupport = true }, symbol = { dynamicRegistration = false, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, workspaceEdit = { resourceOperations = { "rename", "create", "delete" } }, workspaceFolders = true } }, cmd = <function 2>, debug = false, default_settings = { haskell = { checkParents = "CheckOnSave", checkProject = true, formattingProvider = "fourmolu", maxCompletions = 40, plugin = { alternateNumberFormat = { globalOn = true }, callHierarchy = { globalOn = true }, changeTypeSignature = { globalOn = true }, class = { codeActionsOn = true, codeLensOn = true }, eval = { config = { diff = true, exception = true }, globalOn = true }, excplicitFixity = { globalOn = true }, gadt = { globalOn = true }, ["ghcide-code-actions-bindings"] = { globalOn = true }, ["ghcide-code-actions-fill-holes"] = { globalOn = true }, ["ghcide-code-actions-imports-exports"] = { globalOn = true }, ["ghcide-code-actions-type-signatures"] = { globalOn = true }, ["ghcide-completions"] = { config = { autoExtendOn = true, snippetsOn = true }, globalOn = true }, ["ghcide-hover-and-symbols"] = { hoverOn = true, symbolsOn = true }, ["ghcide-type-lenses"] = { config = { mode = "always" }, globalOn = true }, haddockComments = { globalOn = true }, hlint = { codeActionsOn = true, diagnosticsOn = true }, importLens = { codeActionsOn = true, codeLensOn = true, globalOn = true }, moduleName = { globalOn = true }, pragmas = { codeActionsOn = true, completionOn = true }, qualifyImportedNames = { globalOn = true }, refineImports = { codeActionsOn = true, codeLensOn = true }, rename = { config = { crossModule = true }, globalOn = true }, retrie = { globalOn = true }, splice = { globalOn = true }, tactics = { codeActionsOn = true, codeLensOn = true, config = { auto_gas = 4, max_use_ctor_actions = 5, proofstate_styling = true, timeout_duration = 2 }, hoverOn = true } } } }, logfile = "/tmp/nvim.sicro/Q1VBgQ/0-haskell-language-server.log", on_attach = <function 3>, settings = <function 4> }, tools = { codeLens = { autoRefresh = true }, definition = { hoogle_signature_fallback = false }, hoogle = { mode = "auto" }, hover = { auto_focus = false, border = { { "╭", "FloatBorder" }, { "─", "FloatBorder" }, { "╮", "FloatBorder" }, { "│", "FloatBorder" }, { "╯", "FloatBorder" }, { "─", "FloatBorder" }, { "╰", "FloatBorder" }, { "│", "FloatBorder" } }, enable = true, stylize_markdown = false }, log = { level = 1, logfile = "/home/sicro/.local/state/nvim/haskell-tools.log" }, repl = { builtin = { create_repl_window = <function 5> }, handler = "builtin", prefer = <function 6> }, tags = { enable = <function 7>, package_events = { "BufWritePost" } } } } } DEBUG | 2025-05-14 18:52:36 | ...m/lazy/haskell-tools.nvim/lua/haskell-tools/lsp/init.lua:53 | Setting up the LSP client... DEBUG | 2025-05-14 18:52:36 | ...zy/haskell-tools.nvim/lua/haskell-tools/project/init.lua:39 | Setting up project tools... INFO | 2025-05-14 18:52:36 | ...m/lazy/haskell-tools.nvim/lua/haskell-tools/lsp/init.lua:88 | hls.json not found in project root /home/sicro/Development/Haskell/CPS DEBUG | 2025-05-14 18:52:36 | ...m/lazy/haskell-tools.nvim/lua/haskell-tools/lsp/init.lua:170 | LSP start options: lsp_start_opts WARN | 2025-05-14 18:52:36 | ...m/lazy/haskell-tools.nvim/lua/haskell-tools/dap/init.lua:128 | dap: Unable to detect project root for file /home/sicro/Development/Haskell/CPS/CPS.cabal DEBUG | 2025-05-14 18:52:39 | ...m/lazy/haskell-tools.nvim/lua/haskell-tools/lsp/init.lua:138 | LSP attach ``` ### The minimal config used to reproduce this issue. ```Lua I only have the Haskell LazyExtra installed ```
关闭于 2025-05-14 3 条评论