Skip to content

Require canonical entry points instead of scanning arbitrary Wave files #37

Closed

Description

@LunaStev

Problem

When the canonical entry file is missing, Vex scans only the top level of src/ and selects the lexicographically first .wave file. For vex run, it searches source text for the exact substring fun main().

This can select a comment, miss valid formatting, ignore nested files, or build an unrelated module. Package target selection should not depend on source-text substring matching.

Expected behavior

A package should use its canonical entry point or an explicitly declared manifest target.

Acceptance criteria

  • Require src/main.wave for the default binary and src/lib.wave for the default library until explicit targets exist.
  • Remove source-text scanning for main.
  • Report the expected path and how to declare another target once supported.
  • Do not silently select an arbitrary source file.
  • Add regression tests for comments, whitespace variants, nested modules, and multiple source files.
  • Coordinate explicit target support through a separate manifest-target issue.

Activity

  1. added
    bug
    build
    ui/ux
    wave compatibility
    on Sep 18, 2026
  2. self-assigned this
    on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugbuildui/uxwave compatibility

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions