Cannot load such file -- win32/screenshot (LoadError)

While running the test in Ruby mine am seeing the following error
“cannot load such file – win32/screenshot (LoadError)”. HOwever, i see
gem ‘win32ole-pp’ is being commented. Cant find any resolution that
worked so far? can someone help please?

What does it mean that a gem “is being commented”?

Does the work run outside Ruby mine?

Stan Vince wrote in post #1185591:

While running the test in Ruby mine am seeing the following error
“cannot load such file – win32/screenshot (LoadError)”. HOwever, i see
gem ‘win32ole-pp’ is being commented. Cant find any resolution that
worked so far? can someone help please?

This run right, on win10:

gem install win32-screenshot
ruby -rwin32/screenshot -e
“Win32::Screenshot::Take.of(:foreground).write!(‘image.png’)”

In this case, it looks to me more like RubyMine issue than a RubyIssue.
Of course you could verify that GEM_HOME, respectively GEM_PATH, is set
correctly when running from within RubyMine, but if this looks correct,
I would ask in a specific RubyMine forum.