From 928a6d23dce5c6b519da7ef007148253ff98d35f Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Thu, 12 Feb 2026 18:55:26 +1100 Subject: Fix using filepath.to_slash on windows --- src/server/build.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/build.odin') diff --git a/src/server/build.odin b/src/server/build.odin index d2a1b97..6df21a8 100644 --- a/src/server/build.odin +++ b/src/server/build.odin @@ -263,7 +263,7 @@ remove_index_file :: proc(uri: common.Uri) -> common.Error { fullpath := uri.path when ODIN_OS == .Windows { - fullpath, _ = filepath.to_slash(fullpath, context.temp_allocator) + fullpath, _ = filepath.replace_path_separators(fullpath, '/', context.temp_allocator) } corrected_uri := common.create_uri(fullpath, context.temp_allocator) @@ -302,7 +302,7 @@ index_file :: proc(uri: common.Uri, text: string) -> common.Error { when ODIN_OS == .Windows { correct := common.get_case_sensitive_path(fullpath, context.temp_allocator) - fullpath, _ = filepath.to_slash(correct, context.temp_allocator) + fullpath, _ = filepath.replace_path_separators(correct, '/', context.temp_allocator) } dir := filepath.base(filepath.dir(fullpath, context.temp_allocator)) -- cgit v1.2.3