Skip to content

ExperimentalSyntax #7575

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

Merged

Conversation

Absolutionism
Copy link
Contributor

@Absolutionism Absolutionism commented Feb 2, 2025

Description

This PR aims to add a new interface that syntax elements can implement to state that the element requires an experiment to be enabled in order to use it.
Also gives a proper message on why the line is erroring and informs users on how to use it.

I plan on picking back up my Tool Components and Equippable Components PRs making them experimental. Since it seems that they may not ever come out of experimental with Minecraft adding stuff almost each version. So this would help with that.


Target Minecraft Versions: any
Requirements: none
Related Issues: none

@sovdeeth sovdeeth added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Feb 2, 2025
Copy link
Member

@Efnilite Efnilite left a comment

Choose a reason for hiding this comment

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

lgtm with fuse's changes

Copy link
Member

@cheeezburga cheeezburga left a comment

Choose a reason for hiding this comment

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

I think just ExperimentalSyntax could potentially work, but looks good either way.

@APickledWalrus
Copy link
Member

I think just ExperimentalSyntax could potentially work, but looks good either way.

I agree with this. I would also have it extend SyntaxElement

@Absolutionism Absolutionism changed the title ExperimentRestrictedSyntax ExperimentalSyntax Feb 4, 2025
@Pesekjak
Copy link
Contributor

This should use the Experiment class instead of the Feature implementation, so it's useful outside Skript's experiments.

@Absolutionism Absolutionism requested a review from sovdeeth March 2, 2025 17:09
Copy link
Contributor

@Fusezion Fusezion left a comment

Choose a reason for hiding this comment

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

Just one change, but isn't approval blocking at least.

@Efnilite Efnilite added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Mar 15, 2025
@Absolutionism Absolutionism requested review from a team as code owners March 19, 2025 22:33
@sovdeeth sovdeeth removed request for a team March 21, 2025 01:50
@erenkarakal erenkarakal merged commit d944807 into SkriptLang:dev/feature Mar 31, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request, an issue about something that could be improved, or a PR improving something. feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants