Skip to content

Commit b607d43

Browse files
Copilotsmorimoto
andauthored
Fix utop detection by using correct version flag (#1939)
* Initial plan * Fix utop detection by changing --version to -version Co-authored-by: smorimoto <[email protected]> * Add changelog entry for utop detection fix Co-authored-by: smorimoto <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: smorimoto <[email protected]>
1 parent 0418229 commit b607d43

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
- Fix utop detection by using `-version` flag instead of `--version` to align
6+
with OCaml toolchain conventions. This ensures the extension properly detects
7+
and uses utop when running code selections. (#1938)
8+
59
## 1.32.2
610

711
- Reword DPM notification to inform users DPM is available and not selected. (#1930)

src/repl.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ let name = "REPL"
5454

5555
let has_utop (sandbox : Sandbox.t) =
5656
let open Promise.Syntax in
57-
let cmd = Sandbox.get_command sandbox "utop" [ "--version" ] `Tool in
57+
let cmd = Sandbox.get_command sandbox "utop" [ "-version" ] `Tool in
5858
let cwd = Sandbox.workspace_root () in
5959
let+ result = Cmd.output ?cwd cmd in
6060
match result with

0 commit comments

Comments
 (0)