• Login
sketchucation logo sketchucation
  • Login
🤑 30% Off | Artisan 2 on sale until April 30th Buy Now

[Plugin] TT_Lib²

Scheduled Pinned Locked Moved Plugins
310 Posts 66 Posters 393.9k Views
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.
  • T Offline
    TIG Moderator
    last edited by 21 Dec 2013, 18:38

    There isn't a circular require as such...
    If the core.rb is loaded/required, then it in turn requires the system.rb...
    That in turn requires the core.rb BUT it is skipped because the core.rb has already been loaded.

    BUT your TT_Lib2.rb code doesn't actually 'load or require' the core.rb - but rather it specifies it in an Extension.new(), and then it runs register_extension() that extension [which is where it breaks it]...
    I suspect that [in versions up to v2013 at least] the extension's rb register_extension() does NOT get listed in the 'loaded' list [I forget its proper name!], although it does 'load' the code in some way, so... then core.rb's code requires system.rb which requires core.rb in the normal way, but at that point it tries to load core.rb thinking it's for the first time when it's the second !
    So core.rb now skips system.rb's require because it thinks it's been done ???

    Whatever is happening... just stopping the extension code without doing a register_extension() avoids this issue because it doesn't need loading at all any way...

    TIG

    1 Reply Last reply Reply Quote 0
    • T Offline
      tt_su
      last edited by 23 Dec 2013, 10:55

      @tig said:

      On PC and MAC I now get this issue whenever SketchUp starts
      @unknownuser said:

      Error Loading File C:/Program Files/SketchUp/SketchUp 2013/Plugins/TT_Lib2/core.rb
      uninitialized constant TT::System
      Error Loading File TT_Lib2.rb
      uninitialized constant TT::System
      One step forward one back.

      I tried with a fresh install of TT_Lib2 on SU8 and SU2013 - under SU8 I never saw the error. Under SU2013 I saw the error when I had the console open when I installed. However, when I restarted SU there was no errors and everything was working fine... :s

      1 Reply Last reply Reply Quote 0
      • T Offline
        TIG Moderator
        last edited by 23 Dec 2013, 11:41

        To double check... I removed all of your tools and the TT_Lib2 files from my v2013 Plugins folder.
        I then reinstalled the latest TT_Lib2 version - v2.9.5 [?].

        After that, whenever I restarted SketchUp it gives the same error-message as previously reported.
        As before adding a # in front of the line that registers your spurious extension [and thereby tries to load the core.rb] stops the error as SketchUp starts, but it does not affect the Lib at all, since other tt installed tools 'properly' load any code as needed from the Lib, which does NOT need to be an extension at all...
        😒

        TIG

        1 Reply Last reply Reply Quote 0
        • T Offline
          tt_su
          last edited by 23 Dec 2013, 12:03

          What Windows version are you using?

          (I want to get to the actual cause of this, fixing the actual problem instead of patching the symptom - which is why I need to reproduce this.)

          1 Reply Last reply Reply Quote 0
          • T Offline
            tt_su
            last edited by 23 Dec 2013, 12:32

            Ah! Now I reproduce it. If TT_Lib is loading all by itself.

            I had AutoSmooth installed which loaded the core.rb file - then there was no errors.

            1 Reply Last reply Reply Quote 0
            • T Offline
              thomthom
              last edited by 23 Dec 2013, 16:44

              Pushed a new version 2.9.6 to BitBucket and the PluginStore. Should take care of the Load Errors and compatibility with PluginStore - for realz this time!

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

              1 Reply Last reply Reply Quote 0
              • C Offline
                cchere
                last edited by 8 Jan 2014, 09:06

                Thank you for the new version file (v2.9.7),it works well at last.No more "core.rb" problem when SU start up(with v2.9.5).

                1 Reply Last reply Reply Quote 0
                • B Offline
                  billiam
                  last edited by 9 Jan 2014, 17:35

                  having trouble installing this, when opening sketchup an error appears that says some of my files are in the windows virtual store. I am the only user on this laptop and have full permissions. I have also been searching for the compatibility button (researched on another thread) and I have been unable to find it/

                  I did not install this as a .rbz but switched the file name to .zip, then copied TT-lib folder and TT-lib.rb into the plugins folder. Am I missing something

                  please help

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    Dave R
                    last edited by 9 Jan 2014, 17:56

                    You need FULL administrative privileges for the Plugins folder. Edit those privileges and you'll be able to either move the files from the Virtual Store or reinstall.

                    You should just install the .RBZ file instead of converting to ZIP. You should also download and install the Sketchucation Plugin Store.

                    Etaoin Shrdlu

                    %

                    (THERE'S NO PLACE LIKE)

                    G28 X0.0 Y0.0 Z0.0

                    M30

                    %

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      tt_su
                      last edited by 9 Jan 2014, 18:01

                      After that message there should be an Explorer window opening, which is contains the Virtual Store files. Note the full file path in the address bar. Those files should be in the real Plugins folder.

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        SKPudden
                        last edited by 3 Feb 2014, 23:46

                        Sorry - new core.rb problem here:

                        Having 'inherited' some large, complex and badly-built SU models, I need a way to clean them up without resorting to a dozen partial solutions. I've been trying to get TT_cleanup to work, but I'm getting the following error when Sketchup starts:

                        Error Loading File /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/TT_Lib2/core.rb
                        can't convert nil into StringError Loading File /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/TT_Lib2.rb
                        can't convert nil into StringError Loading File /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/tt_cleanup/core.rb
                        can't convert nil into StringError Loading File tt_cleanup.rb
                        can't convert nil into String

                        I should maybe mention that my Mac is a PPC G4 (there's a lot of us left!) and I'm using the most recent versions of the plugin and library. I'm beginning to wonder if the hardware may be the problem. It is rather old (without being in any sense rickety). This said, I haven't experienced problems with any other plugins (yet).

                        But I'm sure someone will know better than me...

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          tt_su
                          last edited by 4 Feb 2014, 10:25

                          hm.. missing a stacktrace there.

                          Can you try these commands in the Ruby Console:

                          load 'tt_cleanup.rb'

                          load 'tt_cleanup/core.rb'

                          ?

                          See if you get a more detailed error message?

                          Also, what version of TT_Lib and CleanUp do you have installed?

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            SKPudden
                            last edited by 4 Feb 2014, 17:29

                            Hi TT

                            Thanks for the fast response.

                            Here's what the Console gives me:

                            load 'tt_cleanup.rb'
                            /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/tt_cleanup.rb:20: warning: already initialized constant PLUGIN_ID
                            /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/tt_cleanup.rb:21: warning: already initialized constant PLUGIN_NAME
                            /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/tt_cleanup.rb:22: warning: already initialized constant PLUGIN_VERSION
                            /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/tt_cleanup.rb:25: warning: already initialized constant FILENAMESPACE
                            /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/tt_cleanup.rb:26: warning: already initialized constant PATH_ROOT
                            /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/tt_cleanup.rb:27: warning: already initialized constant PATH
                            true

                            load 'tt_cleanup/core.rb'
                            /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/TT_Lib2.rb:19: warning: already initialized constant PLUGIN_ID
                            /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/TT_Lib2.rb:20: warning: already initialized constant PLUGIN_NAME
                            /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/TT_Lib2.rb:21: warning: already initialized constant PLUGIN_VERSION
                            /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/TT_Lib2/system.rb:16: warning: already initialized constant PLATFORM_IS_OSX
                            /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/TT_Lib2/system.rb:19: warning: already initialized constant PLATFORM_IS_WINDOWS
                            Error: #<TypeError: /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/TT_Lib2/system.rb:22:in expand_path': can't convert nil into String> /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/tt_cleanup/core.rb:11 /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/TT_Lib2/system.rb:22 /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/TT_Lib2/core.rb:10:in require'
                            /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/TT_Lib2/core.rb:10
                            /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/tt_cleanup/core.rb:10:in require' /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/tt_cleanup/core.rb:10 (eval):155:in load'
                            (eval):155

                            The versions installed are:

                            Cleanup 3.2.0
                            TT Lib 2.9.8

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              thomthom
                              last edited by 28 Feb 2014, 15:27

                              Oh, I forgot to come back to this issue. Is it still an issue or have you found a way to resolve it?

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

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                SKPudden
                                last edited by 28 Feb 2014, 21:21

                                Hi Thomas. Thanks for getting back to me. I now have a working setup but only on my Mac at work. it's an Intel Mac Mini running 10.5.8 and I'm using SU7, TT_Cleanup 3.2.1 with TT_Lib 2.7.1. I tried 2.7.0, 2.8.3 and 2.9.8 before this and none of them worked. On my home computer, a G4 desktop running 10.4.11, no combination of TT_Cleanup and TT_Lib will work. I've tried them all (many times). Do you have any suggestions? Thanks.

                                1 Reply Last reply Reply Quote 0
                                • S Offline
                                  SKPudden
                                  last edited by 2 Mar 2014, 01:04

                                  Further to my earlier post:

                                  1. I now have a working setup on a 10.5.8 partition on my home Mac, using TT_Cleanup 3.2.1 and TT_Lib2 2.7.1 (the same setup as my Mac at work). I haven't tried every possible combination, but 2.9.8 definitely won't work. Having to use a separate partition is obviously not ideal, but it's a workround - a pity all my other stuff is on the main partition (running 10.4.11).

                                  2. I now have a working setup on the main partition using Cleanup 2.0.0. which of course requires no TT_Lib. Again not ideal, but it's a workround.

                                  It appears that the operating system may be the problem. Is there a way to get the more recent versions of TT_Cleanup and TT_Lib2 to run on OSX 10.4.11? If not, what is the most recent version of TT_Cleanup that will run on 10.4.11 (with or without TT_Lib)?

                                  Trouble is, Cleanup3 is such an advance on 2 that I may have to consider upgrading the main partition just to get the benefits!

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    thomthom
                                    last edited by 3 Mar 2014, 13:32

                                    10.4...hmm... been a long time since I used that. I think I have an old G4 Mac Mini somewhere. Though not sure if it's alive.
                                    And what's the latest SketchUp version you can run on 10.4? (Guess I should know this.... :s)

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

                                    1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      SKPudden
                                      last edited by 3 Mar 2014, 17:24

                                      I knew you'd say that :OD

                                      On 10.4 the latest version of Sketchup is 7. Leopard can use 8.

                                      1 Reply Last reply Reply Quote 0
                                      • ssokolS Offline
                                        ssokol
                                        last edited by 3 Mar 2014, 20:58

                                        ThomThom , thank you for your great plugins!
                                        I use Sketchup 2014 on Win8.1 and I have problem. I installed your current plugins but error appear. I had simillar problem with other plugins but I resolved this by creating other plugin folder without polish letters. But if moved your plugins to this folder it doesn't work. please help.Thank you.
                                        Error below:

                                        Error Loading File C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_Lib2/core.rb
                                        Error: #<IOError: Path not found>
                                        C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_Lib2/c_extension_manager.rb:49:in initialize' C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_Lib2/core.rb:124:in new'
                                        C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_Lib2/core.rb:124:in <module:Lib>' C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_Lib2/core.rb:110:in module:TT'
                                        C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_Lib2/core.rb:20:in <top (required)>' C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/extensions.rb:197:in require'
                                        C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/extensions.rb:197:in load' C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_Lib2.rb:40:in register_extension'
                                        C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_Lib2.rb:40:in <module:Lib>' C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_Lib2.rb:14:in module:TT'
                                        C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_Lib2.rb:13:in <top (required)>' Error Loading File C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_material_tools/core.rb Error: #<IOError: Path not found> C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_Lib2/c_extension_manager.rb:49:in initialize'
                                        C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_Lib2/core.rb:124:in new' C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_Lib2/core.rb:124:in module:Lib'
                                        C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_Lib2/core.rb:110:in <module:TT>' C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_Lib2/core.rb:20:in <top (required)>'
                                        C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:45:in require' C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:45:in require'
                                        C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_material_tools/core.rb:10:in <top (required)>' C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/extensions.rb:197:in require'
                                        C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/extensions.rb:197:in load' C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_material_tools.rb:39:in register_extension'
                                        C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_material_tools.rb:39:in <module:MaterialTools>' C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_material_tools.rb:15:in module:Plugins'
                                        C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_material_tools.rb:14:in <module:TT>' C:/Users/Stanisław/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_material_tools.rb:13:in <top (required)>'

                                        Thanks for help!

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          thomthom
                                          last edited by 4 Mar 2014, 10:22

                                          @skpudden said:

                                          I knew you'd say that :OD

                                          On 10.4 the latest version of Sketchup is 7. Leopard can use 8.

                                          Right, I would need to poke around in dark corners to see if I can find the hardware to reproduce this. To be honest - I haven't tested my plugins on SU7 for a long time...

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

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 12
                                          • 13
                                          • 14
                                          • 15
                                          • 16
                                          • 14 / 16
                                          • First post
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement