Skip to content

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Oct 4, 2025

Fix a crash when calling @doc on non-document-able expressions so that docs (or lack thereof) can be successfully printed. For example, looking up docs on sad faces, doesn't crash and cause sad faces after this change:

help?> :()
  Expr(head::Symbol, args...)

Details: expands astname to handle valid expression types explicitly, removes the unused, undocumented @var export from Base.Docs, and updates the error message to be clearer.

🤖 Generated with some assistance from Claude Code.

@vtjnash vtjnash added the docsystem The documentation building system label Oct 4, 2025
Fix a crash when calling `@doc` on non-document-able expressions such as
`:()` so that docs can be returned for the expression itself.

Expands `astname` to handle valid expression types explicitly, removes
the unused, undocumented `@var` export from Base.Docs, and updates the
error message to be clearer.

🤖 Generated with some assistance from Claude Code.
@vtjnash vtjnash force-pushed the jn/doc-errors-less-better branch from db5c7a7 to 4ca97dc Compare October 6, 2025 21:12
@vtjnash vtjnash added the needs pkgeval Tests for all registered packages should be run with this change label Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docsystem The documentation building system needs pkgeval Tests for all registered packages should be run with this change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant