ruby / error_highlight

The gem enhances Exception#message by adding a short explanation where the exception is raised
MIT License
150 stars 23 forks source link

Prism added node_id and Node#breadth_first_search in the 1.0 release.… #49

Closed HParker closed 4 weeks ago

HParker commented 4 weeks ago

Prism added node_id and Node#breadth_first_search in the 1.0 release. These methods are required for Prism to be able to find the method from the backtrace.

https://github.com/ruby/prism/blob/main/CHANGELOG.md#100---2024-08-28

In practice you will likely only end up in this situation if you previously had pre-1.0 prism installed and upgrade Ruby to a version with Prism as the default parser, but haven't upgraded Prism yet.

However, it is probably worth avoiding this error even for this very rare case.

cc: @kddnewton