mfussenegger / nvim-dap

Debug Adapter Protocol client implementation for Neovim
GNU General Public License v3.0
5.46k stars 194 forks source link

Show error messages when the coroutine in trigger_run throws an error #1064

Closed wookayin closed 11 months ago

wookayin commented 11 months ago

Problem: Any exceptions thrown inside coroutine-wrapped trigger_run inside dap.run() are silenced. Dap session won't start silently without any error messages displayed to users.

Solution: Protect the call of trigger_run and show error messages with stacktrace, if any errors happened.

wookayin commented 11 months ago

FYI, such errors can happen when adapters are mis-configured; e.g. ENOENT (the adapter command is invalid or can't be spawned)

mfussenegger commented 11 months ago

Thanks