Skip to content

[BUG] Fresh installs and descriptor-based flows are broken on current main #244

Description

@officialasishkumar

Describe the bug
Fresh installs of dem are currently broken on main, and once the CLI is forced onto a compatible dependency set, multiple descriptor-based flows still fail with a DevEnv constructor error.

To Reproduce

  1. Create a clean virtual environment and install the repository dependencies from main.
  2. Run dem --help.
  3. Observe that the CLI crashes with TypeError: Secondary flag is not valid for non-boolean flag. because typer 0.12.x resolves an incompatible click version.
  4. After forcing click<8.2, run a descriptor-based workflow such as dem import /path/to/dev_env_descriptor.json or initialize a project with .axem/dev_env_descriptor.json.
  5. Observe that the command crashes with TypeError: DevEnv.__init__() missing 1 required positional argument: 'hosts'.

Expected behavior
A fresh install should start the CLI successfully, and descriptor-based flows such as import, init, and catalog-backed DevEnv loading should create DevEnv instances without crashing.

Screenshots
Not applicable.

Additional context
I reproduced the two failures directly from the current codebase on a clean checkout:

  • dem --help fails when the dependency resolver picks click 8.2+ alongside the current Typer range.
  • dem import and Platform.init_project() both fail because several call sites still use the pre-hybrid DevEnv constructor signature after the remote-host refactor.

The affected constructor paths include import, init, local descriptor loading, and catalog-backed DevEnv creation.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions