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

Address IntelliJ warnings in Interface.scala #3816

Merged
merged 3 commits into from
Nov 16, 2023
Merged

Conversation

Scott-Guest
Copy link
Contributor

@Scott-Guest Scott-Guest commented Nov 15, 2023

This PR addresses all the IntelliJ warnings in Interface.scala.

In particular, we add type annotations to Sort.ord and Pattern.ord. This fixes an issue noted by @radumereuta where IntelliJ couldn't properly resolving the implicit Ordering instances, causing erroneous compilation errors and blocking use of the debugger.

@Scott-Guest Scott-Guest self-assigned this Nov 15, 2023
@Scott-Guest Scott-Guest marked this pull request as ready for review November 15, 2023 22:38
Copy link
Contributor

@Baltoli Baltoli left a comment

Choose a reason for hiding this comment

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

Changes LGTM, but I'll let @radumereuta approve to make sure it fixes his error. Thanks Scott!

Copy link
Contributor

@radumereuta radumereuta left a comment

Choose a reason for hiding this comment

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

Finally works. Thanks.

@rv-jenkins rv-jenkins merged commit b7d1dfc into develop Nov 16, 2023
8 checks passed
@rv-jenkins rv-jenkins deleted the interface-cleanup branch November 16, 2023 12:30
rv-jenkins pushed a commit that referenced this pull request Dec 4, 2023
…address IntelliJ error (#3840)

This PR removes the `EAsSet[E]` and `WAsSet[W]` traits in
`Transformers.scala`, and instead just duplicates a few lines of code
between `SetsGeneralTransformer` and `SetsTransformerWithErrors`.

As a result, we fix an annoying issue where IntelliJ incorrectly reports
an error on every inheritor of these classes, falsely claiming that
`errorUnit()` has an incorrect return type.

Given that the cost here is low, and similar issues have bitten us in
the past by blocking use of the debugger (#3816), I think this is a
worthwhile change. If no one is opposed, I plan to address any similar
incorrectly-reported IntelliJ errors as I encounter them.
@Baltoli Baltoli mentioned this pull request Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants