Double Ruby Console entry
-
Yeah I have that on V6 ...have not moved all plugins to SU7 so not yet on V7.
-
I've search through all the ruby's in my plugin that contain the string 'Console' and I got no match in any code that would add new menu items. Only mentioned in comments.
...maybe it's from one of the scrambled rubys....
-
I think its to do with having 2 copies of a script in your plugins folder. I cant remeber any more details about it, though. Perhaps send jim/todd burch a PM about it. They might be able to remeber the details.
-
You cannot have two copies of a script (with the same name?) in the same folder!
-
Im pretty sure it was something like that, although ike i said im a bit sketchy on the details.
-
I too have two console entries. I never found the causing script even though I put some effort in the search.
I'd very much like to know this too. -
I too have this problem. Both SU 6 & 7. I have hunted it for hours to no avail. If someone has the solution I shure would like to know too.
-
The typical problem is that some script has required "Sketchup.rb" instead of "sketchup.rb". Note the first letter is capitalized. For the purposes of requiring the file, it is really only loaded into memory once. However, for the purposes of maintaining the global array of loaded programs in sketchup.rb, the names do not equal, so it is "loaded" again by sketchup.rb, thus the two entries for the Ruby Console (sketchup.rb is loading "Sketchup.rb".)
Over 2 years ago, on the old sketchup forums, I pasted a solution (and even emailed it to @Last - that's how long ago it was) for a solution to fix this. Basically, a change to sketchup.rb to fold all names to uppercase when looking to see if a load had been done already.
Todd
-
@unknownuser said:
The typical problem is that some script has required "Sketchup.rb" instead of "sketchup.rb". Note the first letter is capitalized. For the purposes of requiring the file, it is really only loaded into memory once. However, for the purposes of maintaining the global array of loaded programs in sketchup.rb, the names do not equal, so it is "loaded" again by sketchup.rb, thus the two entries for the Ruby Console (sketchup.rb is loading "Sketchup.rb".)
Over 2 years ago, on the old sketchup forums, I pasted a solution (and even emailed it to @Last - that's how long ago it was) for a solution to fix this. Basically, a change to sketchup.rb to fold all names to uppercase when looking to see if a load had been done already.
Todd
Ahah! thanks to your info I found the culprit in my case. It was Delete Coplanar Edges 1.2 (deletecoplanaredges.rb)
-
Just wanted to add that it was deletecoplanaredges.rb that did it for me as well.
Fixed now.
Advertisement