You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Skip non-executable wavec files during automatic PATH lookup #163
bugSomething isn't workingbuildIssues related to building projects or integrating with wavec.good first issueIssues that are good for newcomers or first-time contributors.
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.
bugSomething isn't workingbuildIssues related to building projects or integrating with wavec.good first issueIssues that are good for newcomers or first-time contributors.
Activity