AstroNvim / AstroNvim/astrocommunity

DAP pack in astrocommunity.pack.typescript is missing typescript dap support

Open
#148 26 comments 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
1.7k
Forks
313
PR merge metrics
No merged PRs in 30d

Description

I have this error with the typescript pack:

```text
Error executing luv callback:
.../.local/share/nvim/lazy/nvim-dap/lua/dap/session.lua:1187: adapter.port is required for server adapter
stack traceback:
[C]: in function 'assert'
.../.local/share/nvim/lazy/nvim-dap/lua/dap/session.lua:1187: in function <.../.local/share/nvim/lazy/nvim-dap/lua/dap/session.lua:1179>
```

I already deleted ~/.cache/nvim and ~/.local/nvim and performed a very clean installation and the same error happens.

The adapter is being executed:

![image](https://user-images.githubusercontent.com/201430/232329607-1e519c07-4909-4aec-9acc-1f6e17aa2e73.png)

Due to this, if I try again after executing the debug the first time, it fails with another error saying there is already another process running (which makes sense...)

Any ideas what could be wrong?

Contributor guide

Open the contributing guide

Research direction

Start at the astrocommunity.pack.typescript DAP pack and review the nvim-dap adapter error shown in the report, especially the missing server port. Reproduce the TypeScript debugging setup, then verify that the adapter starts successfully and a second debug attempt does not leave a duplicate process.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, neovim, typescript
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.