Skip to content

Commit

Permalink
fix(dap): show stdout and stderr if debug build compilation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Mar 28, 2024
1 parent c2cdbec commit f92319c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.18.1] - 2024-03-28

### Fixed

- DAP: Add both `stderr` and `stdout` to error message
if debug build compilation fails.

## [4.18.0] - 2024-03-27

### Added
Expand Down
3 changes: 2 additions & 1 deletion lua/rustaceanvim/dap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ function M.start(args, verbose, callback, on_error)
if sc.code ~= 0 or output == nil then
on_error(
'An error occurred while compiling. Please fix all compilation issues and try again'
.. (sc.stderr and ': ' .. sc.stderr or '.')
.. (sc.stderr and '\nstderr: \n' .. sc.stderr or '')
.. (output and '\nstdout: ' .. output or '')
)
return
end
Expand Down

0 comments on commit f92319c

Please sign in to comment.