Skip to content

Check if the AI engine exists before running the command. #1

Description

@bahyali

Problem:

I received the following error because I don't have codex installed.

Suggestion:

Check if the AI engine exists before running it and if it doesn't tell the user how to install it.

Error: Command failed with ENOENT: codex login
spawn codex ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn codex',
  path: 'codex',
  spawnargs: [ 'login' ],
  originalMessage: 'spawn codex ENOENT',
  shortMessage: 'Command failed with ENOENT: codex login\nspawn codex ENOENT',
  command: 'codex login',
  escapedCommand: 'codex login',
  exitCode: undefined,
  signal: undefined,
  signalDescription: undefined,
  stdout: undefined,
  stderr: undefined,
  cwd: '/Users/bahy/playground/sustaina',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions