Skip to content

bug(cli): just run fails on a fresh macOS checkout because the terminal entry execs an unbuilt maka-desktop-shell #7434

Backlog

Description

@David-G96

What happened

On macOS, following the README Quick start on a fresh checkout fails:

maka terminal-shell: /Users/.../target/debug/maka-desktop-shell: No such file or directory (os error 2)
error: recipe `run` failed on line 32 with exit code 1

just run builds maka-cli and maka-python-runtime, but since 9978093 (#7194) the macOS terminal entry execs the sibling maka-desktop-shell (products/maka/cli/src/args.rs:323-335; products/maka/desktop-shell/src/cli.rs:38). scripts/rust/run-cli.mjs passes desktop: argv.includes('desktop'), so that shell is only built for just run desktop or a previous just build. A fresh clone therefore cannot open the terminal workbench.

Expected: just run builds everything the interactive terminal entry needs, or the setup docs require just build first.

How to reproduce

  1. Fresh clone of apache/maka at 9c051de on macOS. Then cd to the repo directory.
  2. just setup
  3. just run from Terminal.app.
  4. Observe the missing maka-desktop-shell error.

just run --help succeeds because help never reaches the macOS exec path.

Environment

  • Maka version or commit: 0.3.0, 9c051de
  • OS and version: macOS 27.2.1 (arm64)
  • Surface: CLI / TUI
  • Node.js version: 26.13.1 (npm 11.20.0)
  • Rust: 1.100.1 stable
  • Xcode: 26.0, Apple clang 21.0.0
  • just: 1.59.0

Logs, screenshots, or additional context

Before the fix: target/debug/maka and target/debug/maka-python-worker exist; target/debug/maka-desktop-shell does not.

Workaround confirmed on the same checkout:
just build
just run
This builds target/debug/maka-desktop-shell (and stages Maka.app), after which the terminal entry starts and the Host comes up. I also launched it through a PTY with an isolated Root and observed the Host candidate start without errors.

Possible fixes:

  • Build the shell on macOS for interactive run entries (no subcommand / terminal-shell), while keeping --help/--version cheap; or
  • make just run depend on just build; or
  • at minimum document just build before just run in README.md and CONTRIBUTING.md.

Happy to send a PR for the run-cli.mjs change if maintainers prefer that direction.

Activity

  1. added
    bug
    on Nov 29, 2026
  2. garvit-arora commented on Dec 3, 2026

    @garvit-arora
    Contributor

    I opened #7555 for this: the development launcher now builds maka-desktop-shell for interactive macOS entries (no subcommand or erminal-shell), while --help/--version and non-terminal subcommands stay on the existing fast path. The launcher tests cover the argument cases; I could not run just run on macOS here.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions