diff --git a/libs/platform/src/editor.ts b/libs/platform/src/editor.ts index a0da688c..b6daa022 100644 --- a/libs/platform/src/editor.ts +++ b/libs/platform/src/editor.ts @@ -13,23 +13,12 @@ import { homedir } from 'os'; import { join } from 'path'; import { access } from 'fs/promises'; import type { EditorInfo } from '@automaker/types'; -import { createLogger } from '@automaker/utils'; - const execFileAsync = promisify(execFile); // Platform detection const isWindows = process.platform === 'win32'; const isMac = process.platform === 'darwin'; -// Lazy-initialized logger for editor detection -let logger: ReturnType | null = null; -function getLogger() { - if (!logger) { - logger = createLogger('editor'); - } - return logger; -} - // Cache with TTL for editor detection let cachedEditors: EditorInfo[] | null = null; let cacheTimestamp: number = 0; @@ -158,7 +147,7 @@ async function isXcodeFullyInstalled(): Promise { const xcodeAppPath = await findMacApp('Xcode'); if (xedExists && xcodeAppPath) { - getLogger().warn( + console.warn( 'Xcode is installed but xcode-select is pointing to Command Line Tools. ' + 'To use Xcode as an editor, run: sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer' );