Skip to content

Commit

Permalink
log error for cmake exe not found (#3847)
Browse files Browse the repository at this point in the history
  • Loading branch information
qarni committed Jun 25, 2024
1 parent 39f372b commit c1c2412
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/cmake/cmakeExecutable.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import * as proc from '../proc';
import * as util from '../util';
import {setContextAndStore} from '../extension';
import * as logging from '@cmt/logging';
import * as nls from 'vscode-nls';

nls.config({ messageFormat: nls.MessageFormat.bundle, bundleFormat: nls.BundleFormat.standalone })();
const localize: nls.LocalizeFunc = nls.loadMessageBundle();

const log = logging.createLogger('cmakeExecutable');

export interface CMakeExecutable {
path: string;
Expand Down Expand Up @@ -34,6 +41,8 @@ export async function getCMakeExecutableInformation(path: string): Promise<CMake
cmakeExe.isDebuggerSupported?.valueOf() ?? false
);
return cmakeExe;
} else {
log.error(localize('cmake.exe.not.found.in.cache', 'CMake executable not found in cache. Checking again.'));
}
}

Expand Down

0 comments on commit c1c2412

Please sign in to comment.