-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There are two different cases that may happen: 1: Prism is compiled in the past, the user updated the ruby version, but it still points to the same library > linked to incompatible /home/earlopain/.rbenv/versions/3.4.1/lib/libruby.so.3.4 - /home/earlopain/Documents/ruby-prism/lib/prism/prism.so In that case, bubble up the original error. On the other hand, since prism is no dependency, users may run older verions that are missing translator classes. In that case, show a message what they should do. prism is a default gem since 3.3, so you can even use it without adding it to your gemfile.
- Loading branch information
Showing
2 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* [#349](https://github.com/rubocop/rubocop-ast/pull/349): Show better error messages when `prism` is too old or linked to the wrong Ruby version. ([@earlopain][]) |
This file contains 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