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
Reject malformed compiler version tokens in doctor and version queries #166
bugSomething isn't workinggood first issueIssues that are good for newcomers or first-time contributors.toolingIssues related to machine-readable metadata, IDE support, and external tooling.
Audited against merged master 13289d7a74ad45561554bbb6673a189dbb192a27 (PR #161).
Problem and reproduction
Compiler::version() verifies the wavec prefix and token count, then accepts any second token as the version.
A fixture returning wavec banana for --version and valid capability responses produces exit 0 from vex doctor --format=json outside a project. Its wavec check is ok, with version: "banana".
Scope and acceptance
Validate the version token as a semantic version before caching or reporting success.
Keep valid prerelease/development versions such as 0.2.1-pre-beta-dev working and preserve any currently supported trailing version description.
Do not apply Vex's release-only build-metadata prohibition to general compiler discovery as part of this fix.
Add malformed-token, missing-token, wrong-prefix and valid-prerelease fixture cases.
Doctor must report a failed compiler check for malformed output, rather than reporting the compiler as healthy.
Keep this change within compiler-response validation; no compiler download or compatibility-policy change is requested.
bugSomething isn't workinggood first issueIssues that are good for newcomers or first-time contributors.toolingIssues related to machine-readable metadata, IDE support, and external tooling.
Activity