Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing projection with static mapper from another assembly #1418

Conversation

trejjam
Copy link
Contributor

@trejjam trejjam commented Jul 26, 2024

Fix failing projection with static mapper from another assembly

Description

A static mapper from another assembly halts the source generator in "IDE" mode. This PR resolves this issue.

Checklist

  • The existing code style is followed
  • The commit message follows our guidelines
  • Performed a self-review of my code
  • Hard-to-understand areas of my code are commented
  • The documentation is updated (as applicable)
  • Unit tests are added/updated
  • Integration tests are added/updated (as applicable, especially if feature/bug depends on roslyn or framework version in use)

@trejjam trejjam force-pushed the feature/failing-projection-with-static-mapper-from-another-assembly branch 3 times, most recently from f41d395 to efb701c Compare July 26, 2024 09:34
@trejjam
Copy link
Contributor Author

trejjam commented Jul 26, 2024

More context here:
dotnet/roslyn#73964

@trejjam trejjam force-pushed the feature/failing-projection-with-static-mapper-from-another-assembly branch from 6a62492 to 466f18b Compare July 26, 2024 12:05
@latonz latonz added the bug Something isn't working label Aug 3, 2024
Copy link
Contributor

@latonz latonz left a comment

Choose a reason for hiding this comment

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

Thanks for this great contribution! TIL about referenced compilations 😊
I added my feedback, looking forward to get this into main 👍

src/Riok.Mapperly/SyntaxProvider.Roslyn4.0.cs Outdated Show resolved Hide resolved
src/Riok.Mapperly/SyntaxProvider.Roslyn4.0.cs Outdated Show resolved Hide resolved
src/Riok.Mapperly/SyntaxProvider.Roslyn4.4.cs Outdated Show resolved Hide resolved
test/Riok.Mapperly.Tests/Mapping/UseStaticMapperTest.cs Outdated Show resolved Hide resolved
@latonz
Copy link
Contributor

latonz commented Aug 3, 2024

Rel. #1406

@trejjam trejjam force-pushed the feature/failing-projection-with-static-mapper-from-another-assembly branch from cebeb9a to 38df7f2 Compare August 3, 2024 09:51
@trejjam trejjam requested a review from latonz August 3, 2024 10:01
@latonz latonz enabled auto-merge (squash) August 3, 2024 14:35
@latonz latonz merged commit 6e7ab62 into riok:main Aug 3, 2024
17 checks passed
@trejjam trejjam deleted the feature/failing-projection-with-static-mapper-from-another-assembly branch August 4, 2024 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants