Skip to content

Fix autodoc support for slot writers - #69

Merged
svetlyak40wt merged 4 commits into
masterfrom
fix/issue-66-slot-writer
Sep 3, 2026
Merged

svetlyak40wt merged 4 commits into
masterfrom
fix/issue-66-slot-writer

Conversation

@svetlyak40wt

Copy link
Copy Markdown
Member

Fixes #66.

Includes the original fix from @ethanxxxl without rewriting its commit, adds coverage for reader/writer/accessor classification and writer locatives, and documents the fix in the changelog.

Tests: qlot exec sbcl --non-interactive ... (asdf:test-system "40ants-doc-test").

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-03T13:58:41.137621Z 7a2c2ed PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7a2c2eda68

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/autodoc.lisp
Comment on lines +47 to +49
(if (typep writer 'list)
(second writer)
writer))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Resolve SETF writer definitions when generating source links

When a valid slot option such as :writer (setf foo) is used without a reader, this normalization reduces the writer name to foo, so autodoc emits (foo (writer class)); GitHub source-link generation subsequently reaches locate-and-find-source in full/locatives/slots.lisp, which calls symbol-function on foo even though only (setf foo) is fbound, causing documentation rendering to signal undefined-function (or inspect an unrelated ordinary function). Preserve enough writer identity, or have writer source resolution select the matching slot writer's actual fdefinition. The new test covers only the symbol-form writer and misses this supported function-name edge case.

AGENTS.md reference: AGENTS.md:L37-L39

Useful? React with 👍 / 👎.

@svetlyak40wt
svetlyak40wt merged commit 6e62aa5 into master Sep 3, 2026
4 checks passed
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.

autodoc fails to get slot writers

2 participants