mrcjkb / haskell-tools.nvim

🦥 Supercharge your Haskell experience in neovim!
GNU General Public License v2.0
432 stars 18 forks source link

Missing platformConstants #332

Closed aketchum15 closed 6 months ago

aketchum15 commented 6 months ago

Neovim version (nvim -v)

v0.9.5

Operating system/version

6.7.0-arch3-1

Output of :checkhealth haskell-tools

==============================================================================
haskell-tools: require("haskell-tools.health").check()

Checking for Lua dependencies ~
- OK [nvim-telescope/telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) installed.

Checking external dependencies ~
- OK haskell-language-server: found haskell-language-server version: 1.9.1.0 (GHC: 9.0.2) (PATH: /usr/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.5.0 (x86_64-pc-linux-gnu) libcurl/8.5.0 OpenSSL/3.2.0 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4) libssh2/1.11.0 nghttp2/1.58.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

Currently have haskell took and hls installed, haskell tools through lazy and hls through my systems package manager. I am using only stack. Error occurs on opening a haskell buffer in nvim.

Expected behaviour

No error.

Actual behaviour

on startup of nvim haskell tools gives the following error:

LSP[haskell-tools.nvim] Error condition, please check your setup and/or the [issue tra
cker](https://github.com/haskell/haskell-language-server/issues):
setInitialDynFlags: Missing file: /home/adam/.stack/programs/x86_64-linux/ghc-tinfo6-9
.6.3/lib/ghc-9.6.3/lib/platformConstants

Log files

No response

The minimal config used to reproduce this issue.

No config necessary.
mrcjkb commented 6 months ago

Hey 👋

Converting to a discussion, because this is not caused by this plugin.

The error is reported by haskell-language-server. Are you able to build your project with Stack?

If you can, I suggest you check the haskell-language-server issue tracker or open an issue there: https://github.com/haskell/haskell-language-server/issues