-
Notifications
You must be signed in to change notification settings - Fork 922
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
NoMethodError on Ruby 3.2 for File.exists?
#1024
Comments
Same here: NoMethodError: undefined method Tasks: TOP => sunspot:solr:start |
We should probably release a new version of sunspot that integrates these changes as anyone downloading from Ruby Gems will have their app break on 3.2.0 https://rubygems.org/gems/sunspot_rails |
Same problem here. locally I make the change but it will block a production release. Is it possible for you to make a new version with the changes? Anyone ? Thanks |
Here is what I did to get by. If you are using rails, I just put it in a file in the initializers directory:
class File
def self.exists?(filename)
File.exist?(filename)
end
end
Frank
… On Oct 5, 2023, at 11:35 AM, Fred ***@***.***> wrote:
Same problem here. locally I make the change but it will block a production release. Is it possible for you to make a new version with the changes?
Anyone ?
Thanks
—
Reply to this email directly, view it on GitHub <#1024 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AABEM2XY3CPECKCVOM3U2L3X53HU5AVCNFSM6AAAAAATZM3TI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBZGE2DQOJSGI>.
You are receiving this because you commented.
|
Cool, it looks better. Thanks. The automated tests of github action do not pass. I was trying to run Solr in the CI like I do locally before running the Rspec tests. (it works locally) but that's another question... |
Ruby 3.2 removed the deprecated
File.exists?
and now Sunspot raises the following error on Ruby 3.2:#1016 fixes this by replacing
File.exists?
withFile.exist?
.I would love to see that PR merged. 🙇
Thanks!
The text was updated successfully, but these errors were encountered: