File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -133,14 +133,16 @@ let analysisDevPath = path.join(
133
133
"analysis" ,
134
134
"rescript-editor-analysis.exe"
135
135
) ;
136
+
136
137
let analysisProdPath = path . join (
137
138
path . dirname ( __dirname ) ,
139
+ "server" ,
138
140
"analysis_binaries" ,
139
141
process . platform ,
140
142
"rescript-editor-analysis.exe"
141
143
) ;
142
144
143
- let getBinaryPath = ( ) : string | null => {
145
+ let getBinaryPath = ( ) : string | null => {
144
146
if ( fs . existsSync ( analysisDevPath ) ) {
145
147
return analysisDevPath ;
146
148
} else if ( fs . existsSync ( analysisProdPath ) ) {
@@ -160,11 +162,11 @@ export const runCodeAnalysisWithReanalyze = (
160
162
161
163
let binaryPath = getBinaryPath ( ) ;
162
164
if ( binaryPath === null ) {
163
- window . showErrorMessage ( "Binary executable not found." , analysisDevPath ) ;
165
+ window . showErrorMessage ( "Binary executable not found." , analysisProdPath ) ;
164
166
return ;
165
167
}
166
168
167
- let p = cp . spawn ( analysisDevPath , [ "reanalyze" , "-json" ] , {
169
+ let p = cp . spawn ( binaryPath , [ "reanalyze" , "-json" ] , {
168
170
cwd,
169
171
} ) ;
170
172
You can’t perform that action at this time.
0 commit comments