Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is there a best or preferred workflow for complex OpenStudio Ruby script development including interactive debugging and execution tracing?

I am developing measures for OpenStudio on a Windows 8.1 platform using Ruby. I have followed the Measures Writing Guide and this was very helpful to get started and am now moving to an extended integrated workflow. I have set up the Eclipse IDE with the Dynamic Language Toolkit (DLTK) for editing scripts and to check Ruby syntax. Does anyone have experience using this or another IDE to interactively debug and trace script execution and to provide OS library Ruby bindings completions? Is there another approach that allows interactive development and debugging? Is there a best or preferred workflow for complex script development?

Is there a best or preferred workflow for complex OpenStudio Ruby script development including interactive debugging and execution tracing?

I am developing measures for OpenStudio on a Windows 8.1 platform using Ruby. I have followed the Measures Writing Guide and this was very helpful to get started and am now moving to an extended integrated workflow. I have set up the Eclipse IDE with the Dynamic Language Toolkit (DLTK) for editing scripts and to check Ruby syntax. Does anyone have experience using this or another IDE to interactively debug and trace script execution and to provide OS library Ruby bindings completions? Is there another approach that allows interactive development and debugging? Is there a best or preferred workflow for complex script development?

Question update[11/25/14]

I have now installed RubyMine v7.0 and created a full measure case folder. I set the configuration options following the answers provided, adapted to my local installation. The configuration dialog that I located looks similar to the answer dialog but was in a different location at >Run>Edit Configurations>Defaults>Ruby. Maybe this is a RubyMine version issue or there is another similar dialog somewhere else? The parameters used are shown below and include the installed dev version of OS 1.5.2. I also have the source files installed and I have tried both “-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -I ‘C:\Program Files (x86)\OpenStudio 1.5.2\Ruby’ “ and “-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -I ‘C:\Program Files (x86)\OpenStudio 1.5.2\Ruby’ -I 'D:\OpenStudio\10 Local Repositories\OpenStudio\developer\ruby' ” for the Ruby arguments. It appears that the OpenStudio:: references are still unresolved. I have searched RubyMine help but not found how to add external libraries to the RubyMine Project. What other settings are needed to resolve the OS references? Thanks

Is there a best or preferred workflow for complex OpenStudio Ruby script development including interactive debugging and execution tracing?

I am developing measures for OpenStudio on a Windows 8.1 platform using Ruby. I have followed the Measures Writing Guide and this was very helpful to get started and am now moving to an extended integrated workflow. I have set up the Eclipse IDE with the Dynamic Language Toolkit (DLTK) for editing scripts and to check Ruby syntax. Does anyone have experience using this or another IDE to interactively debug and trace script execution and to provide OS library Ruby bindings completions? Is there another approach that allows interactive development and debugging? Is there a best or preferred workflow for complex script development?

Question update[11/25/14]

I have now installed RubyMine v7.0 and created a full measure case folder. I set the configuration options following the answers provided, adapted to my local installation. The configuration dialog that I located looks similar to the answer dialog but was in a different location at >Run>Edit Configurations>Defaults>Ruby. Maybe this is a RubyMine version issue or there is another similar dialog somewhere else? The parameters used are shown below and include the installed dev version of OS 1.5.2. I also have the source files installed and I have tried both “-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -I ‘C:\Program Files (x86)\OpenStudio 1.5.2\Ruby’ “ and “-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -I ‘C:\Program Files (x86)\OpenStudio 1.5.2\Ruby’ -I 'D:\OpenStudio\10 Local Repositories\OpenStudio\developer\ruby' ” for the Ruby arguments. It appears that the OpenStudio:: references are still unresolved. I have searched RubyMine help but not found how to add external libraries to the RubyMine Project. What other settings are needed to resolve the OS references? Thanks