From 8631984ed6d8a183f9668961682db28a65facfd5 Mon Sep 17 00:00:00 2001 From: Bracken Spencer Date: Sun, 7 Dec 2025 22:25:01 +0100 Subject: [PATCH] Fix Windows test: use .exe extension for fsautocomplete --- test/solidlsp/fsharp/test_fsharp_basic.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/solidlsp/fsharp/test_fsharp_basic.py b/test/solidlsp/fsharp/test_fsharp_basic.py index ea90e3fc..15de4ad7 100644 --- a/test/solidlsp/fsharp/test_fsharp_basic.py +++ b/test/solidlsp/fsharp/test_fsharp_basic.py @@ -208,7 +208,9 @@ class TestFSharpLanguageServerSetup: # Create a fake fsautocomplete executable fsharp_dir = os.path.join(temp_dir, "fsharp-lsp") os.makedirs(fsharp_dir, exist_ok=True) - fsautocomplete_path = os.path.join(fsharp_dir, "fsautocomplete") + # Use .exe extension on Windows, matching production code + exe_name = "fsautocomplete.exe" if os.name == "nt" else "fsautocomplete" + fsautocomplete_path = os.path.join(fsharp_dir, exe_name) Path(fsautocomplete_path).touch() result = FSharpLanguageServer._setup_runtime_dependencies(mock_config, mock_settings)