Skip to content

Skip non-executable wavec files during automatic PATH lookup #163

Closed

Description

@LunaStev

Audited against merged master 13289d7a74ad45561554bbb6673a189dbb192a27 (PR #161).

Problem and reproduction

Automatic compiler discovery selects the first regular wavec file in PATH using is_file(), even when it is not executable. A valid compiler later in PATH is never considered.

On Unix, create a first PATH directory containing a wavec file with mode 0644 and a second directory containing an executable compiler fixture. Unset VEX_WAVEC and run vex doctor --format=json outside a project.

Observed: exit 5; doctor selects the first file and reports no execute permission. Expected: select the usable compiler in the second directory.

Scope and acceptance

  • During automatic PATH discovery on Unix, skip files without executable permission.
  • Preserve PATH ordering among eligible candidates and managed-install fallback behavior.
  • An explicitly selected VEX_WAVEC=/path/to/non-executable must still report an actionable error rather than silently choosing another compiler.
  • Add a Unix regression test using temporary files and permission bits; preserve Windows lookup behavior.

No compiler installation or PATH mutation is needed in the test.

Starting points

This is a bounded follow-up suitable for a first contribution; no broader feature redesign is requested.

Activity

  1. added
    bug
    good first issue
    build
    on Oct 18, 2026
  2. self-assigned this
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugbuildgood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions