Skip to content

Commit

Permalink
correctly delete preprocessor output after usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jboillot committed Jul 17, 2024
1 parent ce92495 commit 01ae643
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ unreleased
- Add `-unboxed-types` and `-no-unboxed-types` as ocaml ignored flags (#1795, fixes #1794)
+ editor modes
- vim: fix python-3.12 syntax warnings in merlin.py (#1798)
- Fix merlinpp not removing temporary files (#1801, partly fixes #1802)

merlin 5.1
==========
Expand Down
1 change: 1 addition & 0 deletions src/ocaml/driver/pparse.ml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ let apply_pp ~workdir ~filename ~source ~pp =
let ic = open_in_bin fn_out in
let result = Misc.string_of_file ic in
close_in ic;
Misc.remove_file fn_out;
Ok result

let decode_potential_ast source =
Expand Down

0 comments on commit 01ae643

Please sign in to comment.