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

"A constant `TCPServer' is used but not defined in RBS" when requiring openssl #75

Open
wagenet opened this issue Dec 9, 2021 · 3 comments

Comments

@wagenet
Copy link
Contributor

wagenet commented Dec 9, 2021

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
Copy link
Member

mame commented Dec 14, 2021

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
Copy link

spnkr commented Apr 21, 2022

👍

@lawrencecurtis
Copy link

Any update on this issue at all? I believe this has been merged

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

No branches or pull requests

4 participants