mrcjkb / haskell-tools.nvim

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

DAP error: `Error on launch: <file descriptor: 69>: hPutChar: resource vanished (Broken pipe)` #312

Closed Per48edjes closed 8 months ago

Per48edjes commented 8 months ago

Neovim version (nvim -v)

v0.9.2

Operating system/version

macOS Ventura 13.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: 2.4.0.0 (GHC: 9.0.2) (PATH: /Users/rdayabhai/.local/share/nvim/mason/packages/haskell-language-server/lib/haskell-language-server-2.4.0.0/bin/haskell-language-server-wrapper)
- OK hoogle: found Hoogle 5.0.18.3, 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 7.85.0 (x86_64-apple-darwin22.0) libcurl/7.85.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.47.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.4.6

Checking config ~
- OK No errors found in config.

Checking for conflicting plugins ~
- OK No conflicting plugins detected.

How to reproduce the issue

Start debugging session

Expected behaviour

Trying to set up debugger with haskell-tools.nvim. I guess the expected behavior is what is demonstrated here!

Actual behaviour

When I attempt to open a debug session, the following error message is raised:

image

Note: I have my doubts that this is a haskell-tools.nvim issue, per se, but just raising in the event it is. If it's not, do let me know where I might start my debugging journey! 🙏🏽

(I still need to develop a better understanding of how the necessary plugins work together to enable a rich debugging environment, but I do have the prerequisites all installed.)

Log files

https://gist.github.com/Per48edjes/bdb08c9612a6580ab2b5810bb8f5ce31

The minimal config used to reproduce this issue.

(Happy to 'guinea pig' this further if `haskell-tools.nvim` is indeed the cause!)
Per48edjes commented 8 months ago

(As I mentioned above, definitely feel free to close this if this is an issue not related to your plugin! Just looking to get a foothold as I try to get this debugger working.)

mrcjkb commented 8 months ago

Hey :wave:

It looks like you're running into this issue, which appears to be a problem with ghci-dap (a dependency of haskell-debug-adapter).

As a side note:

haskell-debug-adapter is still very much experimental, so you probably won't get a rich debugging experience out of it yet. Due to Haskell's laziness, debugging is also not very useful.

Per48edjes commented 8 months ago

Yep, that was my impression...thanks, anyhow, @mrcjkb !