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: already initialized constant Net::ProtocRetryError #279

Open
onurkucukkece opened this issue Nov 17, 2022 · 1 comment
Open

Warning: already initialized constant Net::ProtocRetryError #279

onurkucukkece opened this issue Nov 17, 2022 · 1 comment

Comments

@onurkucukkece
Copy link

onurkucukkece commented Nov 17, 2022

After the gem update to v1.12.0, we started to get below warnings on net-protocol gem.

.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/net-protocol-0.1.3/lib/net/protocol.rb:68: warning: already initialized constant Net::ProtocRetryError
.rbenv/versions/2.7.5/lib/ruby/2.7.0/net/protocol.rb:66: warning: previous definition of ProtocRetryError was here
.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/net-protocol-0.1.3/lib/net/protocol.rb:208: warning: already initialized constant Net::BufferedIO::BUFSIZE
.rbenv/versions/2.7.5/lib/ruby/2.7.0/net/protocol.rb:206: warning: previous definition of BUFSIZE was here
.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/net-protocol-0.1.3/lib/net/protocol.rb:504: warning: already initialized constant Net::NetPrivate::Socket
.rbenv/versions/2.7.5/lib/ruby/2.7.0/net/protocol.rb:503: warning: previous definition of Socket was here

For more context, please see ruby/net-imap#16

@mrbrdo
Copy link

mrbrdo commented Nov 20, 2022

I've been having the same issue with 1.12.0, and the fixes proposed in ruby/net-imap#16 did not fix it. Even though adding some more gems did fix it (including uri specific version), unfortunately if there is any gem with a path: ... argument in the Gemfile, that now generates huge amounts of warnings. Simply rolling back to 1.11.1 fixes everything.

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

No branches or pull requests

2 participants