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

Suppress ReferenceToMixin for @Dynamic #2280

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

senseiwells
Copy link
Contributor

Fixes #629

@Earthcomputer
Copy link
Member

It's probably better for this logic to be added to MixinClassReferenceInspection, since we can change that code. Inspection suppressors tend to be a bit brittle and make the logic of why an inspection isn't appearing hard to follow. Generally they should only be used if it's logically an inspection suppression (e.g. @SuppressWarnings, @Dynamic when it behaves like a suppression) or if there is no alternative.

@Earthcomputer Earthcomputer merged commit b2c6e44 into minecraft-dev:dev Apr 17, 2024
4 checks passed
Earthcomputer pushed a commit that referenced this pull request Jul 3, 2024
* Fix #2278 1.20.5 requires Java 21

* Suppress `ReferenceToMixin` for `@Dynamic` (#2280)

* Suppress `ReferenceToMixin` for `@Dynamic`

* Fix formatting for `MixinClassCannotBeReferencedSuppressor`

* Move logic to `MixinClassReferenceInspection`

* Update NeoForge MDK

Up until neoforged/MDK@6074a78

* Small adjustment to fabric's build.gradle template

Following fabric-example-mod change for 1.20.5

* Version 1.7.5

* change error requirements from public to non-private (#2289)

untested, I just used the web editor

* Add NeoGradle version dropdown

* NeoForge 1.20.5 template

* Only show the 50 most recent NeoGradle versions

* Allow dynamic selectors to choose the class to perform member lookups in (#2293)

* * fix dynamic selector missing namespace when the selector declares it at registration
* allow dynamic selectors to change the target class that is used when looking up members

* move custom owner over to mixin selector

* Add 2024.2 to readme

* Fix typo

It's late okay

* New: Add support for `@WrapMethod` in MixinExtras. (#2300)

* New: Support `WrongOperationParametersInspection` in `@WrapMethod`s. (#2303)

* Minecraft 1.21 templates

* Version 1.7.6

* fix: #2316 (#2317)

* Initial support for NeoForge's ModDevGradle

Mappings don't work currently, the TSRG file seems to contain
indices to an array in another JSON file?

* Improve fabric.mod.json entrypoints insight

- Recognize entrypoints declared in object form
- Add more conditions to the inspection
- Add some tests to cover the inspection

Fixes #2296

* MixinExtras Expressions: Migrate to Expressions library.

* Fix: Resolve being unable to get the descriptor for some complex types.

* MixinExtras Expressions: Recreate `ClassInfo#getCommonSuperClassOrInterface`.
It's quite scuffed and often returns `Object` even when there is a suitable common interface, but what's important is that this matches the runtime logic.

---------

Co-authored-by: RedNesto <RedNestoMC@gmail.com>
Co-authored-by: senseiwells <66843746+senseiwells@users.noreply.github.com>
Co-authored-by: 7410 <85879080+O7410@users.noreply.github.com>
Co-authored-by: Bawnorton <bawnorton@me.com>
Co-authored-by: Nel <57587152+nelind3@users.noreply.github.com>
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.

Reference to @Mixin class inspection applied to @Dynamic#mixin
3 participants