Use open_in_bin not open_in for merlinpp#1725
Conversation
Signed-off-by: Jonah Beckford <71855677+jonahbeckford@users.noreply.github.com>
|
There are also two problematic other uses of First is https://github.com/ocaml/merlin/blob/master/src/utils/misc.ml#L520-L537 Second is https://github.com/ocaml/merlin/blob/master/src/utils/std.ml#L822-LL839 Both of these are the same and are not used in the Merlin code base. I assume they are helpers for consumers of Merlin (but why is it duplicated?). Regardless, I think those should be changed as well, but that could break Merlin consumers. |
They might be leftovers since it's not even part of the upstream |
voodoos
left a comment
There was a problem hiding this comment.
Looks good to me, thank you @jonahbeckford
from jonahbeckford/fix-file-open-win32
CHANGES:
Thu Feb 22 14:00:42 CET 2024
+ merlin binary
- Add a "heap_mbytes" field to Merlin server responses to report heap usage (ocaml/merlin#1717)
- Add cache stats to telemetry (ocaml/merlin#1711)
- Add new SyntaxDocument command to find information about the node under the cursor (ocaml/merlin#1706)
- Fix `FLG -pp ppx.exe -as-pp/-dump-ast` use of invalid shell redirection when
direct process launch on Windows. (ocaml/merlin#1723, fixes ocaml/merlin#1722)
- Add a query_num field to the `ocamlmerlin` responses to detect server crashes (ocaml/merlin#1716)
- Jump to cases within a match statement (ocaml/merlin#1726)
- Jump to `module-type` (ocaml/merlin#1728, partially fixes ocaml/merlin#1656)
- Exposes stable functions for configuration handling and pattern variable
destruction. (ocaml/merlin#1730)
+ editor modes
- vim: load merlin under the ocamlinterface and ocamllex filetypes (ocaml/merlin#1340)
- Fix merlinpp not using binary file open (ocaml/merlin#1725, fixes ocaml/merlin#1724)
CHANGES:
Thu Feb 22 14:00:42 CET 2024
+ merlin binary
- Add a "heap_mbytes" field to Merlin server responses to report heap usage (ocaml/merlin#1717)
- Add cache stats to telemetry (ocaml/merlin#1711)
- Add new SyntaxDocument command to find information about the node under the cursor (ocaml/merlin#1706)
- Fix `FLG -pp ppx.exe -as-pp/-dump-ast` use of invalid shell redirection when
direct process launch on Windows. (ocaml/merlin#1723, fixes ocaml/merlin#1722)
- Add a query_num field to the `ocamlmerlin` responses to detect server crashes (ocaml/merlin#1716)
- Jump to cases within a match statement (ocaml/merlin#1726)
- Jump to `module-type` (ocaml/merlin#1728, partially fixes ocaml/merlin#1656)
- Exposes stable functions for configuration handling and pattern variable
destruction. (ocaml/merlin#1730)
+ editor modes
- vim: load merlin under the ocamlinterface and ocamllex filetypes (ocaml/merlin#1340)
- Fix merlinpp not using binary file open (ocaml/merlin#1725, fixes ocaml/merlin#1724)
CHANGES:
Thu Feb 22 14:00:42 CET 2024
+ merlin binary
- Add a "heap_mbytes" field to Merlin server responses to report heap usage (ocaml/merlin#1717)
- Add cache stats to telemetry (ocaml/merlin#1711)
- Add new SyntaxDocument command to find information about the node under the cursor (ocaml/merlin#1706)
- Fix `FLG -pp ppx.exe -as-pp/-dump-ast` use of invalid shell redirection when
direct process launch on Windows. (ocaml/merlin#1723, fixes ocaml/merlin#1722)
- Add a query_num field to the `ocamlmerlin` responses to detect server crashes (ocaml/merlin#1716)
- Jump to cases within a match statement (ocaml/merlin#1726)
- Jump to `module-type` (ocaml/merlin#1728, partially fixes ocaml/merlin#1656)
- Exposes stable functions for configuration handling and pattern variable
destruction. (ocaml/merlin#1730)
+ editor modes
- vim: load merlin under the ocamlinterface and ocamllex filetypes (ocaml/merlin#1340)
- Fix merlinpp not using binary file open (ocaml/merlin#1725, fixes ocaml/merlin#1724)
CHANGES:
Thu Feb 22 14:00:42 CET 2024
+ merlin binary
- Add a "heap_mbytes" field to Merlin server responses to report heap usage (ocaml/merlin#1717)
- Add cache stats to telemetry (ocaml/merlin#1711)
- Add new SyntaxDocument command to find information about the node under the cursor (ocaml/merlin#1706)
- Fix `FLG -pp ppx.exe -as-pp/-dump-ast` use of invalid shell redirection when
direct process launch on Windows. (ocaml/merlin#1723, fixes ocaml/merlin#1722)
- Add a query_num field to the `ocamlmerlin` responses to detect server crashes (ocaml/merlin#1716)
- Jump to cases within a match statement (ocaml/merlin#1726)
- Jump to `module-type` (ocaml/merlin#1728, partially fixes ocaml/merlin#1656)
- Exposes stable functions for configuration handling and pattern variable
destruction. (ocaml/merlin#1730)
+ editor modes
- vim: load merlin under the ocamlinterface and ocamllex filetypes (ocaml/merlin#1340)
- Fix merlinpp not using binary file open (ocaml/merlin#1725, fixes ocaml/merlin#1724)
Fixes #1724 thanks to @nojb spotting the problem in ocaml-ppx/ppxlib#465.