Skip to content

Running steep check based on a file created by steep init gives WARN. #861

@kuredev

Description

@kuredev

Running steep check based on a file created by steep init gives WARN below.

WARN -- rbs: set has been moved to core library, so it is always loaded. Remove explicit loading set

The SteepFile created by steep init has the following lines.

#   library "pathname", "set"       # Standard libraries

If I remove this comment out here and run steep check, the above WARN will be displayed.
I think "set" should be omitted from the SteepFile created by steep init. 🤔

Steps to reproduce

steep init
vim Steepfile # comment out `library "pathname", "set"`
steep check

System Information

% ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]

% be steep --version
1.4.0

Related Links

https://github.com/soutaro/steep/blob/master/lib/steep/drivers/init.rb
https://github.com/ruby/rbs/blob/master/lib/rbs/environment_loader.rb#L54
ruby/rbs@c24d6ee

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions