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

Avoid spurious deprecation warnings in generated code (Backport #3379) #3400

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

lolgab
Copy link
Member

@lolgab lolgab commented Aug 20, 2024

Fixes #3371

The direct problem is that we are generating code with resolved type aliases, resulting in the JavaTests aliases being resolved to deprecated JavaModuleTests traits. However, in general generated code should probably not display warnings at all, so better to just slap @nowarn on the whole chunk rather than trying to fix the immediate alias resolution problem

Pull Request: #3400

…ihaoyi#3379)

Fixes com-lihaoyi#3371

The direct problem is that we are generating code with resolved type
aliases, resulting in the `JavaTests` aliases being resolved to
deprecated `JavaModuleTests` traits. However, in general generated code
should probably not display warnings at all, so better to just slap
`@nowarn` on the whole chunk rather than trying to fix the immediate
alias resolution problem
@lolgab lolgab marked this pull request as ready for review August 20, 2024 13:35
@lolgab lolgab requested review from lihaoyi and lefou August 20, 2024 13:35
@lolgab
Copy link
Member Author

lolgab commented Aug 20, 2024

After this PR I think we can release Mill 0.11.12 since the two annoying UX regression are fixed in this PR and in #3393.

@lihaoyi
Copy link
Member

lihaoyi commented Aug 20, 2024

Yes feel free to tag it

@lolgab lolgab merged commit e79b06f into com-lihaoyi:0.11.x Aug 20, 2024
30 checks passed
@lolgab lolgab deleted the backport-nowarn branch August 20, 2024 14:02
@lefou lefou added this to the 0.11.11 milestone Aug 21, 2024
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