Skip to content

Fix diagnostics of multi-derive attributes landing on the first derive - #1415

Draft
hakiers wants to merge 5 commits into
mainfrom
hakiers/1414-ls
Draft

hakiers wants to merge 5 commits into
mainfrom
hakiers/1414-ls

Conversation

@hakiers

@hakiers hakiers commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Part of: #1414

Summary

Sends the call site of every derive (already computed by parse_derive) to the proc macro server instead of the first one only, and maps expansion results back per derive.

Counterpart of software-mansion/scarb#3275; requires scarb-proc-macro-server-types 0.6.0.

Note

[patch.crates-io] entries pointing at the Scarb branch are temporary until 0.6.0 is published; they will be removed before merge.

[‎.tool-versions] pointing at the Scarb dev build are temporary until the new release.

@hakiers
hakiers marked this pull request as ready for review September 23, 2026 13:32
@hakiers
hakiers requested a review from a team as a code owner September 23, 2026 13:32
@hakiers
hakiers requested review from Arcticae, piotmag769 and wawel37 and removed request for a team September 23, 2026 13:32

@piotmag769 piotmag769 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

Comment thread src/lang/proc_macros/db.rs Outdated
Comment thread Cargo.toml
Comment on lines +136 to +137
# temporary until scarb-proc-macro-server-types 0.6.0 is published
scarb-proc-macro-server-types = { git = "https://github.com/software-mansion/scarb", rev = "5113000d732f6f92b9d2e567742eb8076cf580f6" }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shouldn't this be a draft until this is actually released, so we see that the checks pass and only then mark it as ready to merge?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The PR can be a draft, but we should merge after merging the PR on scarb's side. The release of the package always happened on Scarb release iirc

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We can convert this to a draft. We should also update the version https://github.com/software-mansion/cairols/pull/1415/changes#diff-751af1a340658c7b8176fe32d7db9fadbe15d1d075daba1919a91df04155bc70R1 after the Scarb release.

Comment thread src/lang/proc_macros/db.rs Outdated
Comment thread src/lang/proc_macros/db.rs
@hakiers
hakiers marked this pull request as draft September 24, 2026 14:26
@hakiers
hakiers requested a review from Arcticae September 25, 2026 07:25
Comment thread src/lang/proc_macros/db.rs Outdated
@hakiers
hakiers requested a review from Arcticae September 25, 2026 14:29

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants