Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deletion of preprocessor output file after usage #1801

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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