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

2.7.0-preview2 triggers 'TypeError: no implicit conversion of nil into String' #37572

Closed
jasnow opened this issue Oct 26, 2019 · 8 comments
Closed

Comments

@jasnow
Copy link

jasnow commented Oct 26, 2019

Steps to reproduce

  1. Clone https://github.com/jasnow/Practice-Git-with-Rails5edge

  2. Run "cd Practice-Git-with-Rails5edge"

  3. Add .rvmrc as "rvm use 2.7.0-preview1@ruby2.7-rails6.1 --create"

  4. Run "cd ..; cd Practice-Git-with-Rails5edge" to set .rvmrc.

  5. Run "rake" to see it runs cleanly.

  6. Changed .rvmrc to "rvm use 2.7.0-preview2@ruby2.7-rails6.1 --create"

  7. Run "cd ..; cd Practice-Git-with-Rails5edge" to set .rvmrc.

  8. Run "rake" to see issue. For more details, see gist:

Expected behavior

See step 5 above to pre-2.7.0-preview2 "rake" behavior.

Actual behavior

See step 8 above for 2.7.0preview2 "rake" behavior.

System configuration

Rails version: 6.1.0.alpha

Ruby version: ruby 2.7.0preview2 (2019-10-22 master 02aadf1032) [x86_64-darwin16]

@eugeneius
Copy link
Member

This should be fixed by #37504. Could you try that branch?

@jasnow
Copy link
Author

jasnow commented Oct 26, 2019

@eugeneius - Changed Gemfile to

gem 'rails', git: 'https://github.com/utilum/rails', branch: 'no_implicit_conversion_of_nil'

and above errors went away. Thanks.

@eugeneius
Copy link
Member

It looks like this error will be downgraded to a warning for Ruby 2.7: ruby/ruby#2637

I left a comment on #37504 about one match? call that was missed.

@eugeneius
Copy link
Member

Rails will be fixed, but it's less urgent now that it's no longer an error. Please be patient 🙂

@y-yagi
Copy link
Member

y-yagi commented Nov 8, 2019

Fixed by #37504.

@y-yagi y-yagi closed this as completed Nov 8, 2019
@jasnow
Copy link
Author

jasnow commented Nov 12, 2019

Will Ruby 2.7.0+ work on Rails pre-6.1 projects?

@stanleeDK
Copy link

stanleeDK commented Nov 12, 2019 via email

@jasnow
Copy link
Author

jasnow commented Nov 12, 2019

@stanleeDK - I can't but you might be able to click on the unsubscribe link at the end of your previous post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants