Skip to content

Nvim-dap crashes on launch #315

@alt-romes

Description

@alt-romes

The problem seems to be nvim-dap is confused about receiving a reverse-request for "runInTerminal" before receiving a response for "launch"

there are 3 types of messages: requests/responses/events

every request must have a response. events just happen

however, there are a few "special requests" because they go from the server to the client (the server requests something of the client). In this case, it requests to run something in the terminal.

But nvim-dap crashes with [ERROR] 2026-05-12 10:41:58 dap/session.lua:1090 "No callback found. Did the debug adapter send duplicate responses?" before we even send the launch response

This could be fixed in nvim-dap or in hdb. though we'd have to understand at what point does nvim-dap start allowing reverse-requests to do a workaround.

This likely regressed in the runInTerminal refactor, which made the runInTerminal reverse request get sent before se reply with the launch response. It may be easy to get back to sending the launch response eagerly even while the program is still loading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions