castwide / solargraph

A Ruby language server.
https://solargraph.org
MIT License
1.87k stars 154 forks source link

Fix empty string case when processing requires #644

Closed giorni closed 1 year ago

giorni commented 1 year ago

My codebase has a require to an absolute path (/opt/to/something/unusual). Finding spec for it uses a nil value (spliting empty string returns emtpy array) that breaks Gem::Specification.find_by_name, therefore, scans fail.