lib/ruby_indexer/lib/ruby_indexer/index.rb in ruby-lsp-0.14.5 vs lib/ruby_indexer/lib/ruby_indexer/index.rb in ruby-lsp-0.14.6

- old
+ new

@@ -189,11 +189,12 @@ collector = Collector.new(self, result, indexable_path.full_path) collector.collect(result.value) require_path = indexable_path.require_path @require_paths_tree.insert(require_path, indexable_path) if require_path - rescue Errno::EISDIR - # If `path` is a directory, just ignore it and continue indexing + rescue Errno::EISDIR, Errno::ENOENT + # If `path` is a directory, just ignore it and continue indexing. If the file doesn't exist, then we also ignore + # it end # Follows aliases in a namespace. The algorithm keeps checking if the name is an alias and then recursively follows # it. The idea is that we test the name in parts starting from the complete name to the first namespace. For # `Foo::Bar::Baz`, we would test: