Skip to content

Commit 01ae643

Browse files
committed
correctly delete preprocessor output after usage
1 parent ce92495 commit 01ae643

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ unreleased
77
- Add `-unboxed-types` and `-no-unboxed-types` as ocaml ignored flags (#1795, fixes #1794)
88
+ editor modes
99
- vim: fix python-3.12 syntax warnings in merlin.py (#1798)
10+
- Fix merlinpp not removing temporary files (#1801, partly fixes #1802)
1011

1112
merlin 5.1
1213
==========

src/ocaml/driver/pparse.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ let apply_pp ~workdir ~filename ~source ~pp =
180180
let ic = open_in_bin fn_out in
181181
let result = Misc.string_of_file ic in
182182
close_in ic;
183+
Misc.remove_file fn_out;
183184
Ok result
184185

185186
let decode_potential_ast source =

0 commit comments

Comments
 (0)