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

warning: instance variable @versions_to_cache not initialized #2493

Closed
benjaminjrobin opened this issue Jun 11, 2020 · 2 comments
Closed

warning: instance variable @versions_to_cache not initialized #2493

benjaminjrobin opened this issue Jun 11, 2020 · 2 comments

Comments

@benjaminjrobin
Copy link

When CircleCI runs my app's test suite, the output is very clouded by excessive prints of this:

/home/circleci/project/vendor/bundle/gems/carrierwave-2.0.2/lib/carrierwave/uploader/versions.rb:253: warning: instance variable @versions_to_cache not initialized
/home/circleci/project/vendor/bundle/gems/carrierwave-2.0.2/lib/carrierwave/uploader/versions.rb:253: warning: instance variable @versions_to_cache not initialized
/home/circleci/project/vendor/bundle/gems/carrierwave-2.0.2/lib/carrierwave/uploader/versions.rb:253: warning: instance variable @versions_to_cache not initialized
/home/circleci/project/vendor/bundle/gems/carrierwave-2.0.2/lib/carrierwave/uploader/versions.rb:257: warning: instance variable @versions_to_store not initialized
/home/circleci/project/vendor/bundle/gems/carrierwave-2.0.2/lib/carrierwave/uploader/versions.rb:257: warning: instance variable @versions_to_store not initialized
/home/circleci/project/vendor/bundle/gems/carrierwave-2.0.2/lib/carrierwave/uploader/versions.rb:257: warning: instance variable @versions_to_store not initialized
/home/circleci/project/vendor/bundle/gems/carrierwave-2.0.2/lib/carrierwave/uploader/versions.rb:257: warning: instance variable @versions_to_store not initialized
/home/circleci/project/vendor/bundle/gems/carrierwave-2.0.2/lib/carrierwave/uploader/versions.rb:253: warning: instance variable @versions_to_cache not initialized
/home/circleci/project/vendor/bundle/gems/carrierwave-2.0.2/lib/carrierwave/uploader/versions.rb:253: warning: instance variable @versions_to_cache not initialized
/home/circleci/project/vendor/bundle/gems/carrierwave-2.0.2/lib/carrierwave/uploader/versions.rb:253: warning: instance variable @versions_to_cache not initialized
/home/circleci/project/vendor/bundle/gems/carrierwave-2.0.2/lib/carrierwave/uploader/versions.rb:253: warning: instance variable @versions_to_cache not initialized
/home/circleci/project/vendor/bundle/gems/carrierwave-2.0.2/lib/carrierwave/uploader/versions.rb:257: warning: instance variable @versions_to_store not initialized
/home/circleci/project/vendor/bundle/gems/carrierwave-2.0.2/lib/carrierwave/uploader/versions.rb:257: warning: instance variable @versions_to_store not initialized
/home/circleci/project/vendor/bundle/gems/carrierwave-2.0.2/lib/carrierwave/uploader/versions.rb:257: warning: instance variable @versions_to_store not initialized
/home/circleci/project/vendor/bundle/gems/carrierwave-2.0.2/lib/carrierwave/uploader/versions.rb:257: warning: instance variable @versions_to_store not initialized
*/home/circleci/project/vendor/bundle/gems/carrierwave-2.0.2/lib/carrierwave/uploader/versions.rb:253: warning: instance variable @versions_to_cache not initialized
/home/circleci/project/vendor/bundle/gems/carrierwave-2.0.2/lib/carrierwave/uploader/versions.rb:253: warning: instance variable @versions_to_cache not initialized
/home/circleci/project/vendor/bundle/gems/carrierwave-2.0.2/lib/carrierwave/uploader/versions.rb:253: warning: instance variable @versions_to_cache not initialized

To the point that it's difficult to see which test(s) failed or errored at all.

@benjaminjrobin
Copy link
Author

To be clear, this does not show up locally when running the test suite.

@simonc
Copy link

simonc commented Jul 16, 2020

Hi there. I'm experiencing the same issue running specs inside a Docker container. Let me know if I can be of any help.

joemsak pushed a commit to Kadenze/carrierwave that referenced this issue Mar 27, 2021
Fixes carrierwaveuploader#2493, Closes carrierwaveuploader#2506
Memoizing @versions_to_* is unsafe since versions can change dynamically when conditional version is used.
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 a pull request may close this issue.

2 participants