Skip to content

JSON::GeneratorError#detailed_message raises NoMethodError with Ruby < 3.2 #758

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

Closed
rahim opened this issue Mar 5, 2025 · 1 comment · Fixed by #757
Closed

JSON::GeneratorError#detailed_message raises NoMethodError with Ruby < 3.2 #758

rahim opened this issue Mar 5, 2025 · 1 comment · Fixed by #757

Comments

@rahim
Copy link
Contributor

rahim commented Mar 5, 2025

This affects json >= 2.9.0 used with ruby < 3.2.

#712 added JSON::GeneratorError which defines #detailed_message expecting to delegate to super. For affected rubies this leads to NoMethodError if invoked, eg as happens here in sinatra.

@rahim
Copy link
Contributor Author

rahim commented Mar 5, 2025

I've opened #757 as a possible resolution.

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 a pull request may close this issue.

1 participant