Skip to content

Wrong base component path in jobs commands #2003

@zainforbjs

Description

@zainforbjs

Describe the bug
Multiple job-related CLI commands fail to load because they reference the wrong path for the base component. The error is: invalid component definition, can't find component [../../base]

This affects the following commands:

  • wheels jobs monitor
  • wheels jobs purge
  • wheels jobs retry
  • wheels jobs status
  • wheels jobs work

To Reproduce

  1. Install Wheels CLI: box install wheels-cli or simply link latest CLI from develop branch to commandBox
  2. Run box reload or start CommandBox
  3. Observe the error during module loading

Expected behavior
The CLI module should load successfully without errors, and all jobs commands should be available.

Desktop:

  • OS: macOS
  • Wheels Branch: Develop

Additional context
Affected Files:

  • cli/src/commands/wheels/jobs/monitor.cfc:11
  • cli/src/commands/wheels/jobs/purge.cfc:11
  • cli/src/commands/wheels/jobs/retry.cfc:10
  • cli/src/commands/wheels/jobs/status.cfc:10
  • cli/src/commands/wheels/jobs/work.cfc:14

Problematic Code (in all files):

component extends="../../base" {

Root Cause: The jobs/ directory is directly under wheels/. The path ../../base goes two levels up to commands/ but base.cfc is located in wheels/ (only one level up).

Suggested Fix: Change extends="../../base" to extends="../base" in all five files.

Directory Structure:

commands/wheels/
├── base.cfc          <-- base.cfc is here
├── assets/
│   └── init.cfc     (extends "../base" - CORRECT)
└── jobs/
    ├── monitor.cfc  (extends "../../base" - WRONG)
    └── ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase:1-stabilizeBugs, cleanup, CI fixes — tackle first

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions