sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Double Ruby Console entry

    Scheduled Pinned Locked Moved Developers' Forum
    12 Posts 7 Posters 705 Views 7 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • thomthomT Offline
      thomthom
      last edited by

      For some reason I got two entries of "Ruby Console" under my Window menu. Anyone else experienced this? Or know how to correct it. I know that I used to have only one.

      Thomas Thomassen β€” SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • GaieusG Offline
        Gaieus
        last edited by

        One of the scripts cause it. I even remember seeing more than two! 😲

        Gai...

        1 Reply Last reply Reply Quote 0
        • S Offline
          sepo
          last edited by

          Yeah I have that on V6 ...have not moved all plugins to SU7 so not yet on V7.

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            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....

            Thomas Thomassen β€” SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 Reply Last reply Reply Quote 0
            • R Offline
              remus
              last edited by

              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.

              http://remusrendering.wordpress.com/

              1 Reply Last reply Reply Quote 0
              • GaieusG Offline
                Gaieus
                last edited by

                You cannot have two copies of a script (with the same name?) in the same folder!

                Gai...

                1 Reply Last reply Reply Quote 0
                • R Offline
                  remus
                  last edited by

                  Im pretty sure it was something like that, although ike i said im a bit sketchy on the details.

                  http://remusrendering.wordpress.com/

                  1 Reply Last reply Reply Quote 0
                  • PixeroP Offline
                    Pixero
                    last edited by

                    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. πŸ˜•

                    1 Reply Last reply Reply Quote 0
                    • ChiefwoodworkerC Offline
                      Chiefwoodworker
                      last edited by

                      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.

                      Joe....
                      http://www.srww.com

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        todd burch
                        last edited by

                        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

                        1 Reply Last reply Reply Quote 0
                        • thomthomT Offline
                          thomthom
                          last edited by

                          @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)

                          Thomas Thomassen β€” SketchUp Monkey & Coding addict
                          List of my plugins and link to the CookieWare fund

                          1 Reply Last reply Reply Quote 0
                          • PixeroP Offline
                            Pixero
                            last edited by

                            Just wanted to add that it was deletecoplanaredges.rb that did it for me as well.
                            Fixed now.

                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            • First post
                              Last post
                            Buy SketchPlus
                            Buy SUbD
                            Buy WrapR
                            Buy eBook
                            Buy Modelur
                            Buy Vertex Tools
                            Buy SketchCuisine
                            Buy FormFonts

                            Advertisement