Skip to content
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

[Fix #282] Remove Prism from runtime dependency #285

Merged
merged 1 commit into from Mar 1, 2024

Conversation

koic
Copy link
Member

@koic koic commented Mar 1, 2024

Fixes #282.

This PR removes Prism from runtime dependency.

If it is decided that Prism will not be a runtime dependency for the time being, error message and documentation will be used to communicate the dependency on Prism to users.

Making it a default runtime dependency will be avoided until at least #282 installation error with Prism is resolved.

Fixes rubocop#282.

This PR removes Prism from runtime dependency.

If it is decided that Prism will not be a runtime dependency for the time being,
error message and documentation will be used to communicate the dependency on Prism to users.

Making it a default runtime dependency will be avoided until at least rubocop#282 installation error with Prism is resolved.
@koic koic force-pushed the remove_parser_from_runtime_dependency branch from 3bf7d20 to 102c5df Compare March 1, 2024 08:42
@bbatsov bbatsov merged commit 5d24fec into rubocop:master Mar 1, 2024
19 of 20 checks passed
@koic koic deleted the remove_parser_from_runtime_dependency branch March 1, 2024 08:50
Comment on lines +290 to +292
require 'prism'
rescue LoadError
warn "Error: Unable to load Prism. Add `gem 'prism'` to your Gemfile."
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to enforce a minimum version?

Copy link
Member Author

Choose a reason for hiding this comment

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

There is no need to specify a minimum version, as using the latest version is sufficient. Additionally, it is not always possible to align the development status of Prism with intentions behind released warning of rubocop-ast. So, this approach to warnings is the same as that for gemified Ruby standard libraries.

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 this pull request may close these issues.

Experimental Prism feature listed as runtime dependency
3 participants