Skip to content

checker: resolve @VROOT in #flag pseudo-variable expansion#26714

Open
watzon wants to merge 2 commits intovlang:masterfrom
watzon:fix/vdoc-not-working-on-sequoia
Open

checker: resolve @VROOT in #flag pseudo-variable expansion#26714
watzon wants to merge 2 commits intovlang:masterfrom
watzon:fix/vdoc-not-working-on-sequoia

Conversation

@watzon
Copy link
Copy Markdown
Contributor

@watzon watzon commented Mar 10, 2026

Fix v doc failing against stale external tool dependencies.

The original failure came from vdoc recompiling against an outdated local
markdown module checkout that still used deprecated @VROOT paths for its
md4c third-party objects. The markdown module has already fixed that
upstream, so this patch does not restore @VROOT handling in the compiler.

Instead, it makes tool recompilation refresh external module dependencies before
building the tool binary. That allows v doc to pick up the current
vlang/markdown sources, which already use non-deprecated paths.

Fixes #26698.

@watzon watzon force-pushed the fix/vdoc-not-working-on-sequoia branch from 45dab60 to bfae059 Compare March 10, 2026 19:10
@JalonSolov
Copy link
Copy Markdown
Collaborator

JalonSolov commented Mar 21, 2026

Bouncing to force CI to re-run.

@JalonSolov JalonSolov closed this Mar 21, 2026
@JalonSolov JalonSolov reopened this Mar 21, 2026
c.error(err.msg(), pos)
return none
}
}
Copy link
Copy Markdown
Collaborator

@JalonSolov JalonSolov Mar 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this is a good idea, it doesn't solve the problem of source having @VROOT, as it only replaces after the source has been read.

Instead, the compiler should give an error message if @VROOT is used, and suggest running v fmt to fix the problem.

Of course, this also means that vfmt.v will need to be modified to make that substitution, if it doesn't already do so.

@medvednikov medvednikov force-pushed the master branch 2 times, most recently from cdf4550 to 4dc97d9 Compare March 22, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vdoc fails to compile on macOS Sequoia

2 participants