Open
Conversation
4af9e61 to
3a353fb
Compare
Author
|
Prism 1.5.0 has been released and will now warn when an incompatible builder class is used. Probably it should use |
3a353fb to
a8a5f08
Compare
prism requires its own builder class in order to emit ast for versions that the parser gem doesn't support. The next prism version will warn when a incorrect builder class is used, it wasn't previously enforced.
a8a5f08 to
0d7ee65
Compare
Author
|
Since this doesn't work with typechecking, I have simply raised the minimum prism version to 1.4.0 |
NielsKSchjoedt
approved these changes
Nov 20, 2025
|
Is this bound to go out soon? |
|
@gmcgibbon @rafaelfranca Just a quick note that this PR has been approved and fixes the Prism deprecation warning we’re encountering. When you have time, could you please merge it and include it in a future release? Thanks you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What are you trying to accomplish?
Avoid prism deprecation warnings:
Prism::Translation::Parserruby/prism#3524What approach did you choose and why?
Use the non-deprecated classes.
Parser34is available since 0.24.0 and can be used without concern. The builder is somewhat new, so I usedefined?to check it and left a note for when it can be removed.What should reviewers focus on?
I left more context in the two commit messages.
Type of Change
Additional Release Notes
Include any notes here to include in the release description. For example, if you selected "breaking change" above, leave notes on how users can transition to this version.
If no additional notes are necessary, delete this section or leave it unchanged.
Checklist