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 the legendary compare issue with two same literals #5503

Merged
merged 34 commits into from
Jun 2, 2023

Conversation

TheLimeGlass
Copy link
Collaborator

@TheLimeGlass TheLimeGlass commented Mar 10, 2023

Description

Fixes the legendary compare issue with two same literals. Example: Skript would set fire as visual effect, and then if you went to compare it against a block it would error. Skript should be assuming fire is an itemtype and compare against it. More details at #5497

I also added file context to the EffAssert because I had many tests fail during testing and needed to know which files they belong to.

I also added event-block and event-location to the test event so that it can match the JUnit values.


Target Minecraft Versions: any
Requirements: none
Related Issues: #2711, #4773, #5497, #5557 and #5675 there are probably more I couldn't find.

duplicates: #4769, #4774, #4779, #4809

@TheLimeGlass TheLimeGlass added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Mar 10, 2023
@TheLimeGlass TheLimeGlass requested a review from TPGamesNL March 10, 2023 06:58
@TheLimeGlass TheLimeGlass mentioned this pull request Mar 19, 2023
1 task
@TheLimeGlass TheLimeGlass added the priority: medium Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation). label Mar 31, 2023
Copy link
Member

@Moderocky Moderocky left a comment

Choose a reason for hiding this comment

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

Looks nice, are you sure it won't break anything else?

@TheLimeGlass
Copy link
Collaborator Author

Looks nice, are you sure it won't break anything else?

Yes

@TheLimeGlass TheLimeGlass added the 2.7 Targeting a 2.7.X version release label Apr 14, 2023
Copy link
Member

@Moderocky Moderocky left a comment

Choose a reason for hiding this comment

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

I can't see any problems with this.

Copy link
Member

@UnderscoreTud UnderscoreTud left a comment

Choose a reason for hiding this comment

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

I'd revert the other stuff as it's not in the scope of this pr or related to it in anyway

@UnderscoreTud
Copy link
Member

Also, tests are failing

Copy link
Member

@AyhamAl-Ali AyhamAl-Ali left a comment

Choose a reason for hiding this comment

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

Well done ⚡

Code wise looks good, I haven't made enough tests though so I prefer this gets more testing by the community.

Copy link
Member

@APickledWalrus APickledWalrus left a comment

Choose a reason for hiding this comment

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

Looks good to me. Would be good to have for testing in beta3. Nice work :)

@TheLimeGlass TheLimeGlass removed the request for review from TPGamesNL May 30, 2023 21:47
Copy link
Member

@AyhamAl-Ali AyhamAl-Ali left a comment

Choose a reason for hiding this comment

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

Looking good ⚡

src/main/java/ch/njol/skript/test/runner/TestTracker.java Outdated Show resolved Hide resolved
@TheLimeGlass TheLimeGlass merged commit 407a680 into master Jun 2, 2023
@TheLimeGlass TheLimeGlass deleted the fix/convert-compare branch June 2, 2023 05:28
@sovdeeth sovdeeth mentioned this pull request Aug 27, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.7 Targeting a 2.7.X version release bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. priority: medium Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants