Error “cannot load such file — 2.0/Console_ext” running unit tests in RubyMine

匆匆过客 提交于 2019-12-06 01:48:58

You no need win32console when working with Ruby 2.0. Ruby 2.0 on windows supports ANSI escape sequences, support unicode character output correctly. So the win32console gem is unnecessary. Remove it.

Also win32Console is an old gem - think they don't support Ruby 2.0

My solution was to simply comment out the reference to win32console in my Gemfile. Thank you for the previous answer that pinpointed this.

In this case, my error was: c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/win32console-1.3.2-x86-mingw32/lib/Win32/Console.rb:12:in `require': cannot load such file -- 2.0/Console_ext (LoadError)

This allowed the test to run, as well as bundle installs. Long term I will likely delete the reference.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!