Skip to content

Commit f92319c

Browse files
author
Marc Jakobi
committed
fix(dap): show stdout and stderr if debug build compilation fails
1 parent c2cdbec commit f92319c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ All notable changes to this project will be documented in this file.
66
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
77
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

9+
## [4.18.1] - 2024-03-28
10+
11+
### Fixed
12+
13+
- DAP: Add both `stderr` and `stdout` to error message
14+
if debug build compilation fails.
15+
916
## [4.18.0] - 2024-03-27
1017

1118
### Added

lua/rustaceanvim/dap.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ function M.start(args, verbose, callback, on_error)
284284
if sc.code ~= 0 or output == nil then
285285
on_error(
286286
'An error occurred while compiling. Please fix all compilation issues and try again'
287-
.. (sc.stderr and ': ' .. sc.stderr or '.')
287+
.. (sc.stderr and '\nstderr: \n' .. sc.stderr or '')
288+
.. (output and '\nstdout: ' .. output or '')
288289
)
289290
return
290291
end

0 commit comments

Comments
 (0)