ruby icon indicating copy to clipboard operation
ruby copied to clipboard

`require_relative': cannot load such file

Open Rhodine-orleans-lindsay opened this issue 6 years ago • 2 comments

Exercise is not running. When I input the file name to run the test I get the error message below: $ ruby series_test.rb series_test.rb:2:in require_relative': cannot load such file -- C:/Users/rorle/Exercism/ruby/series/series (LoadError) from series_test.rb:2:in

'

How can I solve this so i can run the test

Rhodine-orleans-lindsay avatar Sep 19 '19 21:09 Rhodine-orleans-lindsay

This is usually because the series.rb file does not exist in the folder where the test is. The part of the message that is relevant here is:

cannot load such file -- C:/Users/rorle/Exercism/ruby/series/series (LoadError)

It doesn't show extension as it can't know which extension it is looking for. In our case, we want the file series.rb to exist.

kotp avatar Sep 20 '19 01:09 kotp

@Rhodine please let me know how I can assist, or if you have resolved this. (last check you said no.)

Please step through what your steps are to reproduce the error. And a listing of the files that are in the directory.

kotp avatar Sep 21 '19 02:09 kotp

I'm going to go ahead and close this, as the original author has not come back with further information.

kytrinyx avatar Oct 12 '22 22:10 kytrinyx