Skip to content

Remove spring gem to fix gem-related issues #634

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

Merged
merged 9 commits into from
Feb 22, 2024

Conversation

bigchickenwings
Copy link
Contributor

@bigchickenwings bigchickenwings commented Feb 21, 2024

As requested by @santib, I've created this PR for maintainers (and possibly users) to discuss about what to do with spring gem.

Description:

Currently, cloning this repository, running the setup command, and then running the specs don't work.

rails db:prepare and related commands issues (Caused by spring):

They are not working in MacOS M1, and are throwing the following error:

objc[26168]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.

This is a recurring issue, as demonstrated here.

While we can always just disable fork safety, this would go against best practices, and instead we should remove the spring gem or at least disable them for MacOS M1 environments. Let me know the preferred approach.

Also, as Spring does not offer support for Ruby 3.3 and Rails 7.1, we should not use it until further updates. As this doesn't really change the functionality of the app, I believe we're good to just remove it for now.


Notes:

  • Let me know if we should disable spring on MacOS M1 environments instead of fully removing it.

bigchickenwings and others added 9 commits February 18, 2024 11:05
Spring does not support Rails 7.1 and Ruby 3.3,
which are both used in this project.
If you attempt to run a fresh installation of this repo,
the tests won't pass because of the importations:
- As the arctic_admin gem is not initially on the gemfile,
it will cause the system specs to fail.
- We also need to have the `active_admin.js` in order to pass the specs
(and ensure functionality).

Worth mentioning that `arctic_admin/base` already adds `mixins` and `fontawesome`,
so there might be no need to add them manually.
rspec-rails gem should be in dev and test environment
Fix `rspec-rails` gem issues (rootstrap#626)
@santib santib requested a review from a team February 22, 2024 13:05
Copy link
Contributor

@JulianPasquale JulianPasquale left a comment

Choose a reason for hiding this comment

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

👍

@santib
Copy link
Member

santib commented Feb 22, 2024

I was checking and seems that since rails/rails#42997 the new default is not installing Spring. So this PR sounds good to me.

Thanks @bigchickenwings 🙌

@santib santib merged commit a211aa8 into rootstrap:main Feb 22, 2024
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.

6 participants