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

Revision history [back]

click to hide/show revision 1
initial version

Thanks Julien for useful code. While I am just work with one or two versions at the same time, I find out this setup lauch for VS Code (other IDE would be similar). My key concern is require 'openstudio' need proper RUBYLIB path. Not sure how to setup RUBYLIB inside script "configurations": [ { "name": "RunFile", "type": "Ruby", "request": "launch", "cwd": "${fileDirname}", "program": "${file}", "env": {
"OS_291": "/Users/kcu/Desktop/App/Run/OpenStudio/OpenStudio_2_9_1/bin/openstudio", "RUBYLIB":"/Users/kcu/Desktop/App/Run/OpenStudio/OpenStudio_2_9_1/Ruby" }

    }
]

Thanks Julien for useful code. While I am just work with one or two versions at the same time, I find out this setup lauch for VS Code (other IDE would be similar). My key concern is require 'openstudio' need proper RUBYLIB path. Not sure how to setup RUBYLIB inside script script

"configurations": [
        {
            "name": "RunFile",
            "type": "Ruby",
            "request": "launch",
            "cwd": "${fileDirname}",
            "program": "${file}",
            "env":
                { 
"OS_291": "/Users/kcu/Desktop/App/Run/OpenStudio/OpenStudio_2_9_1/bin/openstudio", "RUBYLIB":"/Users/kcu/Desktop/App/Run/OpenStudio/OpenStudio_2_9_1/Ruby" }

 }
        }
    ]

Thanks Julien for useful code. While I am just work with one or two versions at the same time, I find out this setup lauch for VS Code (other IDE would be similar). My key concern is require 'openstudio' need proper RUBYLIB path. Not sure how to setup RUBYLIB inside script

"configurations": [
        {
            "name": "RunFile",
            "type": "Ruby",
            "request": "launch",
            "cwd": "${fileDirname}",
            "program": "${file}",
            "env":
                {  
                    "OS_291": "/Users/kcu/Desktop/App/Run/OpenStudio/OpenStudio_2_9_1/bin/openstudio",
                    "RUBYLIB":"/Users/kcu/Desktop/App/Run/OpenStudio/OpenStudio_2_9_1/Ruby"
"/Users/home/Desktop/App/Run/OpenStudio/OpenStudio_2_9_1/bin/openstudio",
                    "RUBYLIB":"/Users/home/Desktop/App/Run/OpenStudio/OpenStudio_2_9_1/Ruby"
                }
        }
    ]

Thanks Julien for useful code. While I am just work with one or two versions at the same time, I find out this setup lauch for VS Code (other IDE would be similar). My key concern is require 'openstudio' need proper RUBYLIB path. Not sure how to setup RUBYLIB inside script

"configurations": [
        {
            "name": "RunFile",
            "type": "Ruby",
            "request": "launch",
            "cwd": "${fileDirname}",
            "program": "${file}",
            "env":
                {  
                    "OS_291": "/Users/home/Desktop/App/Run/OpenStudio/OpenStudio_2_9_1/bin/openstudio",
                    "RUBYLIB":"/Users/home/Desktop/App/Run/OpenStudio/OpenStudio_2_9_1/Ruby"
                }
        }
    ]

Thanks Julien for useful code. While I just work with one or two versions at same time, I find out this setup lauch for VS Code (other IDE would be similar). My key concern is require 'openstudio' need needs proper RUBYLIB path. Not sure how to setup RUBYLIB inside script

"configurations": [
        {
            "name": "RunFile",
            "type": "Ruby",
            "request": "launch",
            "cwd": "${fileDirname}",
            "program": "${file}",
            "env":
                {  
                    "OS_291": "/Users/home/Desktop/App/Run/OpenStudio/OpenStudio_2_9_1/bin/openstudio",
                    "RUBYLIB":"/Users/home/Desktop/App/Run/OpenStudio/OpenStudio_2_9_1/Ruby"
                }
        }
    ]