RubyMine code inspection gives incorrect "Missing 1 argument(s)"

I have an array 'foo' that's returned by a method call.

RM code inspection thinks that 'foo.select' is a call into Kernel, not into Array, and gives an error: Missing 1 argument(s).

Is there a way to avoid this, other than suppressing that check?

 

2 comments

Hello,

sorry for the delay. I didn't manage to reproduce the problem so could you please provide a code sample showing it.

0
sftp.dir.glob(directory, "*.#{file_extension}")
.select { |f| Time.at(f.attributes.mtime) > 1.minutes.ago }
.map { |f| sftp.download!("#{directory}/#{f.name}") }
0

Please sign in to leave a comment.