Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Per48edjes opened this issue Dec 22, 2023 · 3 comments

Comments

@Per48edjes
Copy link

Per48edjes commented Dec 22, 2023

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 Per48edjes added the bug Something isn't working label Dec 22, 2023
@Per48edjes
Copy link
Author

(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
Copy link
Owner

mrcjkb commented Dec 22, 2023

Hey 👋

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.

@mrcjkb mrcjkb added upstream (haskell-debug-adapter) and removed bug Something isn't working labels Dec 22, 2023
@Per48edjes
Copy link
Author

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

@mrcjkb mrcjkb closed this as completed Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants