From 6fde26ecceb093f7dd4f22ba76b4a30a6f601111 Mon Sep 17 00:00:00 2001 From: Arden Sinclair Date: Tue, 4 Jul 2023 01:44:08 -0700 Subject: [PATCH] Fix using wrong analysisProdPath on arm64 --- client/src/commands/code_analysis.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/commands/code_analysis.ts b/client/src/commands/code_analysis.ts index 248304062..d808be79a 100644 --- a/client/src/commands/code_analysis.ts +++ b/client/src/commands/code_analysis.ts @@ -127,6 +127,8 @@ let resultsToDiagnostics = ( }; }; +let platformDir = process.arch === "arm64" ? process.platform + process.arch : process.platform; + let analysisDevPath = path.join( path.dirname(__dirname), "..", @@ -141,7 +143,7 @@ let analysisProdPath = path.join( "..", "server", "analysis_binaries", - process.platform, + platformDir, "rescript-editor-analysis.exe" );