steep icon indicating copy to clipboard operation
steep copied to clipboard

No RBS for stdlib's SimpleDelegate?

Open thomthom opened this issue 3 years ago • 2 comments

In a project where I use stdlib's SimpleDelegator it emits and error, saying the type is unknown.

I tried adding the library name to the steep config, but got an error:

#<RBS::EnvironmentLoader::UnknownLibraryError: Cannot find type definitions for library: delegate ([nil])>

(I just assumed that if you had to do a require 'delegate' to use a stdlib then you'd use the same name in the steep config.)

thomthom avatar Jul 28 '22 14:07 thomthom

I encountered a similar issue. What worked for me was actually adding steep gem to my Gemfile and running it with bundle exec steep check.

coorasse avatar Sep 07 '22 20:09 coorasse