Skip to content

Commit

Permalink
revert(dap): redirect stdout to a temp file (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb authored Feb 13, 2024
1 parent 55eaffb commit 1e95699
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ 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.7.2] - 2024-02-13

### Revert

- DAP(`codelldb`): Redirect `stdio` (`stdout`) to a temp file.

## [4.7.1] - 2024-02-12

### Fixed
Expand Down Expand Up @@ -88,7 +94,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixes

- DAP(`codelldb`): Redirect `stdio` to a temp file.
- DAP(`codelldb`): Redirect `stdio` (`stdout`) to a temp file.

## [4.3.0] - 2024-01-31

Expand Down
5 changes: 0 additions & 5 deletions lua/rustaceanvim/dap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,6 @@ function M.start(args, verbose, callback, on_error)
local final_config = local_config ~= false and local_config or dap_config
--- @cast final_config DapClientConfig

if is_codelldb then
-- https://github.com/vadimcn/codelldb/blob/v1.9.0/MANUAL.md#stdio-redirection
final_config['stdio'] = { nil, vim.fn.tempname() }
end

if dap.adapters[final_config.type] == nil then
on_error('No adapter exists named "' .. final_config.type .. '". See ":h dap-adapter" for more information')
return
Expand Down

0 comments on commit 1e95699

Please sign in to comment.