Setting up Ruby Environment for Measures in Win 10
is Ruby 3.x supported?
Looking at the OpenStudio compatibility matrix I have Ruby 2.7 installed locally. ( which is the correct version for my install) Currently using 3.5.1 (SDK) and 1.5 of the OS Application.
A Windows command prompt successfully can run any basic .rb script and I have some system variables set-up . I Have RUBYLIB that points to the openstudio.rb file located in D:\openstudioapplication-1.5.0\Ruby\openstudio.rb.
I am initially trying to run ruby test scripts from some of the pre-existing scripts. If I Run Ruby from a cmd prompt and go to this folder
C:\Users\xxx\OpenStudio\Measures\FindAndReplaceInAllThermalZoneNames\tests and run the .rb file eg Ruby find_and_replace_in_all_thermal_zone_names_test.rb all appear ok . Which suggests I have the basics setup ok. .
However If I try and run any of the other local test scripts, it generally throws an identical error See second screen shot
This error is common to most scripts.
I'm sure its a simple set-up or pathing issue. But why one script would run but no others is odd. Any pointers ?