I’ve never noticed this before but during testing of one of my plugins I decided to show the ruby console right before the loading of the plugin. My code is the following:
THIS_DIR = File.dirname(__FILE__) # Fix for ruby 2.0 if THIS_DIR.respond_to?(:force_encoding) THIS_DIR = THIS_DIR.dup.force_encoding("UTF-8") end
My error message is:
c:/users/administrator/appdata/roaming/sketchup/sketchup 2017/sketchup/plugins/medeek_foundation_ext/medeek_foundation_load.rbs:39: warning: already initialized constant Medeek_Engineering_Inc_Extensions::MedeekFoundationPlugin::THIS_DIR c:/users/administrator/appdata/roaming/sketchup/sketchup 2017/sketchup/plugins/medeek_foundation_ext/medeek_foundation_load.rbs:36: warning: previous definition of THIS_DIR was here
I really have no idea what the problem is here or what I’m doing wrong. I guess I’ve never seen this before because I usually don’t show the console in the plugin load .rbz.