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
Devise syntax error (Possibly ruby-2.5 related?) #4630
Comments
Seems you find a bug with Ruby 2.5.0. Please report to the Ruby issue tracker. |
For anyone trying out devise with MRI 2.5.0-preview1, it looks like devise has a fix for this on the master branch: 1009096 Add the following to # gem 'devise', '~> 4.3.0'
gem 'devise', git: 'https://github.com/plataformatec/devise' #, ref: '88e9a85' The Also, here is a related (closed) issue on the Ruby issue tracker: https://bugs.ruby-lang.org/issues/13939 |
Just wanted to add that devise v4.4.0 has a fix to this problem |
heartcombo/devise#4630 Change-Id: I0eed80d80e78fc8b351fe5303845ba550091cffa
In order to help people migrating their old apps. I think It would be great apply this patch on devise 3.5. Because migrating to an app to ruby 2.5 would imply migrating to devise 4. |
This patch was also added to the |
Devise pre 4.4 had a bug that caused an issue with ruby 2.5 heartcombo/devise#4630
@rafaelfranca - Any plans to have a rubygems release for 3.x for this patch? |
@marksiemers did this ever happen? |
@webark - I don't think so. The latest tag I see for 3.x is from 2016: https://github.com/plataformatec/devise/releases/tag/v3.5.10 |
Devise upgrade is needed to avoid issue with ruby 5.0 The issue is documented here heartcombo/devise#4630
Future searchers, here is how to use the
This works for me on ruby 2.5 and rails 4.2.11.1 . |
- Bump puma to 3.7.x so specifying the port via rails server -p works puma/puma#1200 - Bump devise to 4.4.x due to a syntax error heartcombo/devise#4630
A little background: I came across this starter rails app and figured I'd try it out. Set it up on my current ubuntu server, ran through the instructions, and ended up with this error:
I also tried running it in the VM created by this repository, where everything worked swimmingly.
The only difference I think I can come up with is the version of ruby puma seems to be calling for no good reason that I can find:
My server:
Vagrant VM from
https://github.com/brunofacca/rails-development-environment
:Somehow it seems my server is trying to start puma in ruby-2.5.0, despite the current RVM gemset being ruby-2.4.0. I don't even have 2.5 installed. I have literally no idea where it's getting that from (frankly, I'm just assuming that's what's going on).
I'm not really sure what to say about this, other than I spent an inordinate amount of time trying to figure out what's going on and still don't know.
The text was updated successfully, but these errors were encountered: