Skip to content

Commit 74a5e98

Browse files
Arden144zth
authored andcommitted
Fix using wrong analysisProdPath on arm64
1 parent c5f2d24 commit 74a5e98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/src/commands/code_analysis.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ let resultsToDiagnostics = (
127127
};
128128
};
129129

130+
let platformDir = process.arch === "arm64" ? process.platform + process.arch : process.platform;
131+
130132
let analysisDevPath = path.join(
131133
path.dirname(__dirname),
132134
"..",
@@ -141,7 +143,7 @@ let analysisProdPath = path.join(
141143
"..",
142144
"server",
143145
"analysis_binaries",
144-
process.platform,
146+
platformDir,
145147
"rescript-editor-analysis.exe"
146148
);
147149

0 commit comments

Comments
 (0)