Skip to content

with install-user fails outside a With project: "'build' requires a source file argument, build.w, or a with.toml project" #1146

Closed

Description

@joshhickson

Summary

with install-user fails immediately unless it is run from inside an existing With project. The command's purpose is installing the compiler, so requiring a project to already exist is circular — and it is the natural fallback now that the documented installer scripts 404 (filed separately).

Reproduction

# any directory that is not a With project
cd /tmp && mkdir -p not-a-project && cd not-a-project
/path/to/with.exe install-user

Actual

error: 'build' requires a source file argument, build.w, or a with.toml project

The subcommand appears to dispatch straight into build and inherit its project-detection requirement.

Expected

with --help documents it as:

  install-user     Install compiler to ~/.local/bin

A user who has just downloaded the release binary and wants it on PATH has no project yet. This should work from any directory, installing the currently-running compiler.

Not a duplicate of #1037

#1037 covers with build :install-user producing a ~/.local/bin/with that later dies with SIGKILL (rc 137) on macOS, an invalid-code-signature issue after a successful install. This is a different failure: the standalone install-user subcommand on Windows never gets as far as installing anything.

Environment

With v0.15.2.1 (release asset with-windows-x86_64.exe, sha256 8f4817f2c4a3a916515ec93fd8a8f228bc9cfcd423689c5977dc564efc02a115, matching the with-windows-x86_64.exe pin in seed.lock)
Host Windows 11 Home 10.0.26200, x86_64
LLVM SDK with-llvm-sdk-22.1.6-windows-x86_64.tar.gz taken from nightly-20260907-34132069721-1-8a729db8d01f, with LLVM_PREFIX set (see the linked issue on SDK packaging)

First-time install on a machine with no prior With and no system LLVM.

Activity

  1. ehartford commented on Oct 25, 2026

    @ehartford
    Contributor

    Triage 2026-10-25, with v0.15.3.0 (main a261b65): reproduced; the message is still the build one.

    $ mkdir empty && cd empty
    $ with install-user
    error: 'build' requires a source file argument, build.w, or a with.toml project
    

    install-user dispatches to the build graph (src/main.w:1190-1191) and needs a project root before its fast path (:3752).

    pre-release: a misleading diagnostic on an install command; at least the error should say what install-user needs.

  2. ehartford commented on Oct 25, 2026

    @ehartford
    Contributor

    Fixed on main by e3b0ad0 (PR #2665, stack #2668; battery green on the stack top 9f92dbb). The commit message names the root-cause line and the regression test.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions