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

"Already Initialized Constant" Warnings #419

Closed
aaronskiba opened this issue Aug 11, 2023 · 2 comments
Closed

"Already Initialized Constant" Warnings #419

aaronskiba opened this issue Aug 11, 2023 · 2 comments

Comments

@aaronskiba
Copy link
Collaborator

aaronskiba commented Aug 11, 2023

The following warnings appear when executing rails s, rails c, rspec, and other commands:

/Users/aaronskiba/.rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/net/protocol.rb:66: warning: already initialized constant Net::ProtocRetryError
/Users/aaronskiba/.rvm/gems/[email protected]/gems/net-protocol-0.2.1/lib/net/protocol.rb:68: warning: previous definition of ProtocRetryError was here
/Users/aaronskiba/.rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/net/protocol.rb:206: warning: already initialized constant Net::BufferedIO::BUFSIZE
/Users/aaronskiba/.rvm/gems/[email protected]/gems/net-protocol-0.2.1/lib/net/protocol.rb:214: warning: previous definition of BUFSIZE was here
/Users/aaronskiba/.rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/net/protocol.rb:503: warning: already initialized constant Net::NetPrivate::Socket
/Users/aaronskiba/.rvm/gems/[email protected]/gems/net-protocol-0.2.1/lib/net/protocol.rb:541: warning: previous definition of Socket was here

Originally posted by @aaronskiba in #414 (comment)

@aaronskiba
Copy link
Collaborator Author

I performed a quick test by setting ruby '>= 3.0.5' in Gemfile and then running bundle install. When I did this, the warnings disappeared. Since this upgrade is required for release v4.1.0, these warnings should eventually take care of themselves.

@lagoan
Copy link
Collaborator

lagoan commented Sep 11, 2023

@aaronskiba found these issues were fixed in upgrade.

@lagoan lagoan closed this as completed Sep 11, 2023
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

2 participants