BallAerospace / COSMOS

Ball Aerospace COSMOS
https://ballaerospace.github.io/cosmos-website/
Other
360 stars 129 forks source link

Adding Gems to Gemfile / Require 'library' in ScriptRunner #1711

Closed VulcanJN closed 2 years ago

VulcanJN commented 2 years ago

Hi, I'm trying to use the Script Runner to create a script that uses net-scp and when I require 'net/scp' in the script and run it I get a LoadError : LoadError. After adding the gem in the Gemfile under COSMOS-5.0.3 and COSMOS-5.0.3/cosmos like so gem 'net-scp', : require => 'net/scp' I get a bundle install error

bundle_error

I was able to get around this by changing the Gemfile source ENV['RUBYGEMS_URL'] to source 'https://rubygems.org' (which should've worked without doing this as RUBYGEMS_URL is correctly defined in the .env file )

Even after the bundle install successfully completed I still get the Load:Error in the script runner and was wondering if you had any suggestions. Thanks!

jmthomas commented 2 years ago

I think PR #1703 will address this issue

VulcanJN commented 2 years ago

Yes, after pulling the merge from #1703 I can now add the dependencies and it works! Thank you!