-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Experimental Prism feature listed as runtime dependency #282
Comments
We are also experiencing this issue, with the same behavior as reported above. Downgrading has been our solution, but this really should be addressed. |
Yeah, it seems we messed up. @koic I think we should move this to the |
Right, I think #283 is all that is required? |
This was marked as experimental with regard to the validity of what should be stable published interface API. It seems necessary to understand the details of the issue before making a decision to remove it from the default dependencies. RuboCop AST 1.31 requires Ruby 2.7+, and Prism works with Ruby 2.7+. This means they should be compatible in terms of requirements, and if there are any issues, it would be worth reporting to Prism:
@mhashizume @Routable Can you provide specifics about what errors are occurring? cc @kddnewton |
Agreed on reporting issue, but I also feel that we should not say that |
Yeah, I was under the impression that's the actual issue - now we force the installation of Prism even when it's not used. It seems to me the users will have to install Prism separately for the time being, if they want to use it. |
@koic the issue we are experiencing is that our GitHub CI based on an Alpine image is failing since the development tools need to be installed. It can be fixed easily by adding Here's the output log in case it's of use (we use standardrb which depends on
|
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.
@KNejad Thank you for the details. Let's hold off on making it a default runtime dependency until at least this installation error with Prism is resolved. If possible, can you share that error on Prism's issue tracker? |
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.
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.
rubocop-ast 1.31.1 has been released. |
Seems this is not a bug in prism, the reason of this is that prism requires native extensions to be installed, not sure if they have any plan to remove native extensions So probably it should be held not until prism changes something, but until rubocop releases v2.0 with respect to semantic version and breakable changes |
Thanks for sorting this @koic! I agree with @VitaliySerov, I don't believe this is an issue with prism. It's just they have a system dependency which isn't installed by default on some containers. |
Support for Prism was added in rubocop-ast 1.31.0 and marked as "experimental" in the changelog. However, Prism was also added as a runtime dependency in the Gemspec.
It seems contradictory to require a library for an experimental feature, particularly when it's only available in the latest Ruby release.
We're starting to see some failures in our CI pipelines because of this new requirement.
Would you be able to remove Prism as a runtime dependency? Thank you!
The text was updated successfully, but these errors were encountered: