-
Neovim version (nvim -v)v0.11.2 Operating system/versionNixOS 25.05 Output of :checkhealth haskell-toolsChecking 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.8.4) (PATH: /nix/store/24jiyk0jzs3vx9qpph7cgnvqkaf0dyn3-haskell-language-server-2.10.0.0/bin/haskell-language-server-wrapper)
- ⚠️ WARNING hoogle: not found.
Install [ndmitchell/hoogle](https://github.com/ndmitchell/hoogle) for extended capabilities.
Recommended for better Hoogle search performance.
Without a local installation, the web API will be used by default.
Required if the hoogle mode is set to "telescope-local".
- ⚠️ 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.4.1 zlib/1.3.1 brotli/1.1.0 zstd/1.5.7 libidn2/2.3.8 libpsl/0.21.5 libssh2/1.11.1 nghttp2/1.65.0
- ⚠️ WARNING haskell-debug-adapter: not found.
Install [haskell-debug-adapter](https://github.com/phoityne/haskell-debug-adapter) for extended capabilities.
Optional, for `dap` support.
- ⚠️ WARNING ghci-dap: not found.
Install [ghci-dap](https://github.com/phoityne/ghci-dap) for extended capabilities.
Optional, for `dap` support.
Checking config ~
- ✅ OK No errors found in config.
Checking for conflicting plugins ~
- ✅ OK No conflicting plugins detected. How to reproduce the issue
Expected behaviourneovim should not spawn this much error, if at all. Actual behaviourGetting the aforementioned error. Log fileshttps://gist.github.com/leana8959/55b699009f7efba29aa1955c5d2ca272 The minimal config used to reproduce this issue.-- Sorry I had to deactivate this, for some reason this makes neovim spawn another unrelated error 99% of the time.
-- vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro {
spec = {
{
"mrcjkb/haskell-tools.nvim",
version = "^6",
init = function()
-- Enable inlay hints
vim.lsp.inlay_hint.enable()
vim.g.haskell_tools = {}
end,
lazy = false,
},
},
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hey 👋 This isn't a bug. Haskell-language-server doesn't support inlay hints for cabal files (or at all, afaik). Here's how I do it in my config: |
Beta Was this translation helpful? Give feedback.
Hmm, I guess it was added recently.
I'm that case, yes I would add an exclusion for cabal files.
Hls doesn't support all features for cabal files, but reports them as supported (because it supports them for Haskell files).
Haskell-tools spawns separate clients for Haskell and cabal files to minimise issues. But since inlay hints have to be enabled manually, it's up to the user to perform the appropriate checks.