"A constant `TCPServer' is used but not defined in RBS" when requiring openssl
wagenet opened this issue · 3 comments
wagenet commented
I'm not sure if this is technically a Ruby bug or a typeprof bug, but if you have a file with require 'openssl'
you'll get the error: "A constant 'TCPServer' is used but not defined in RBS". This can be resolved by adding require 'socket'
before require 'openssl'
.
mame commented
Thank you. It is a known issue. Currently, RBS is preparing manifest.yml
feature (ruby/rbs#808) to describe dependencies to standard libraries such as socket. By writing manifest.yml
to openssl so that it requires socket, this issue will be resolved.
spnkr commented
👍
lawrencecurtis commented
Any update on this issue at all? I believe this has been merged