Skip to content

fix: prohibit duplicate envVar definitions - #963

Open
Vtec234 wants to merge 1 commit into
mainfrom
dup-envvar
Open

Vtec234 wants to merge 1 commit into
mainfrom
dup-envvar

Conversation

@Vtec234

@Vtec234 Vtec234 commented Oct 3, 2026

Copy link
Copy Markdown
Member

This PR emits an error when it detects an envVar that is defined more than once. One such case - ELAN_HOME is now defined only on the Elan page.

The toHtml implementation in envVar.descr emits an incorrect ID at the definition site when the variable is defined more than once. For instance, on https://lean-lang.org/doc/reference/latest/Build-Tools-and-Distribution/Lake/#lake-environment, the ToC links to LAKE and ELAN work whereas ELAN_HOME goes to nowhere. Instead of fixing that, I thought it would be cleaner to prohibit duplicates here.

@leanprover-bot leanprover-bot added the HTML available HTML has been generated for this PR label Oct 3, 2026
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Preview for this PR is ready! 🎉 (also as a proofreading version). built with commit 6dc5c18.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

HTML available HTML has been generated for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants