How to reload a extension loader file?
-
Hi all.
I need to reload a rb file,But I get some error in the ruby control panel.
"Extension loader file XXX.rb can not be loaded because an extension loader file with the same name was previously loaded."
How to reload a extension loader file?
thanks !
wikii
-
need help!
thanks!
-
You'll have to restart SketchUp to get your Extension to be reformed.
However, if you simply want to reload its main code file[s] from inside its folder, use:
load "XXX/XXX_code.rb"
Change it to suit the actual file-name... -
@tig said:
You'll have to restart SketchUp to get your Extension to be reformed.
However, if you simply want to reload its main code file[s] from inside its folder, use:
load "XXX/XXX_code.rb"
Change it to suit the actual file-name...I get it.
thankyou,TIG。happy new year!
wikii
-
I use this.
def self.reload() Sketchup.send_action(CMD_RUBY_CONSOLE) load __FILE__ puts "reloaded #{__FILE__.to_s}\n" end
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement