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

    Extensions not loaded at startup and Extensions list empty

    Scheduled Pinned Locked Moved Plugins
    7 Posts 3 Posters 286 Views 3 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.
    • ppoublanP Offline
      ppoublan
      last edited by

      Dear all,
      With SU Make 2013, on Windows, I'm facing a strange behavior.
      I've 2 PCs and it works fine on one of them, but I can't find the difference.

      Here is the problem on one PC :

      • I'm installing SU Make 2013: all is ok
      • I'm adding an extension : all is ok until I quit SU.
      • I restart SU, no extension is loaded, no "Plugins" menu displayed, and in Windows/Preferences dialog I got an empty list of extensions (even the sandbox and standar su extensions have disapeared.
      • If from there I reinstall anyone of the extensions, all the other one reappears and are loaded and work fine.

      I checked all the security issues with files and dirs as described in many other threads but did not find how to fix it.
      If I load manually the scripts from the console it works.

      My first question is anybody else faced the same issue ?

      Yours
      Pascal

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        A mystery πŸ˜•

        On the problem PC...
        Run SketchUp.
        Open the Ruby Console and type:
        $LOAD_PATH
        This should give a list of the folder-paths that SketchUp uses at startup to auto-load .rb files.
        Typically it should include the Plugins folder and the Tools folder. Typically:
        ["C:/Program Files/SketchUp/SketchUp 2013/Plugins", "C:/Program Files/SketchUp/SketchUp 2013/Tools"]
        Type this to find the default Plugins fodler:
        Sketchup.find_support_file('Plugins')
        Typically:
        C:/Program Files/SketchUp/SketchUp 2013/Plugins
        Check the contents of these two folders in Windows Explorer.
        If there are no .rb files in there then they can't load.
        If there are .rb files in there then something is stopping them loading at startup...
        You say the files can be loaded manually ??
        How do you specify the path?
        load 'xxx.rb' ?
        Check that the Tools folder has at least Read Security permissions for every one listed in Properties > Security.
        Also check that the Plugins folder has FULL Read/Write permissions for every one...
        Also check that SketchUp.exe runs as an administrator...
        See this diatribe for more details... http://sketchucation.com/forums/viewtopic.php?p=508319#p508319

        Have you tried repairing [or even reinstalling] SketchUp on the problem PC ?

        TIG

        1 Reply Last reply Reply Quote 0
        • ppoublanP Offline
          ppoublan
          last edited by

          Hi Tig,
          Thanks for your answer.
          Seems you found the issue ! Plugins dir missing into $LOAD_PATH
          But I do not know how to fix it.
          Just after starting SU, if I run $LOAD_PATH into the console I got the Tools directory as single element of an array, but not the Plugins directory. On the PC where all works fine I've got both directories Tools and Plugins.
          Tried to re-install SU. Same.
          Where are these path stored ? registry entry ? elsewhere ? another Tool .rb file not completely run ?

          Will continue to look at this.
          Yours

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            What do you get with:
            Sketchup.find_support_file('Plugins')
            Typically:
            C:/Program Files/SketchUp/SketchUp 2013/Plugins
            If you type this:
            File.exist?(Sketchup.find_support_file('Plugins'))
            is it 'true' ?
            It should be...
            If you have renamed the Plugins folder it will not be found ??
            Please type this and post the result:
            Dir.entries(f=Sketchup.find_support_file('')).each{|d|p d if File.directory?(File.join(f,d))};puts
            It will print a list of all folders in the Plugisn folder...
            Typically it'll list:
            "." ".." "Components" "Exporters" "Importers" "LayOut" "Materials" "Plugins" "Resources" "Style Builder" "Styles" "Support" "Tools"
            Depending on your installation...

            Is it actually named "Plugins" ?
            No trailing space or accented characters etc ??
            If not, then rename it and restart SketchUp...

            Also please list the .rb files in the 'Tools' folder - unlike v8 other files are now all in the 'Plugins' folder - there should only be three:
            sketchup.rb langhandler.rb extensions.rb

            πŸ˜•

            TIG

            1 Reply Last reply Reply Quote 0
            • ppoublanP Offline
              ppoublan
              last edited by

              ...
              noextensions.JPG

              @unknownuser said:

              "What do you get with:
              Sketchup.find_support_file('Plugins')"

              I got this : C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins

              @unknownuser said:

              Typically:
              C:/Program Files/SketchUp/SketchUp 2013/Plugins
              If you type this:
              File.exist?(Sketchup.find_support_file('Plugins'))
              is it 'true' ?

              Yes I got "true"

              @unknownuser said:

              It should be...
              If you have renamed the Plugins folder it will not be found ??
              Please type this and post the result:
              Dir.entries(f=Sketchup.find_support_file('')).each{|d|p d if File.directory?(File.join(f,d))};puts
              It will print a list of all folders in the Plugisn folder...
              Typically it'll list:
              "."
              ".."
              "Components"
              "Exporters"
              "Importers"
              "LayOut"
              "Materials"
              "Plugins"
              "Resources"
              "Style Builder"
              "Styles"
              "Support"
              "Tools"
              Depending on your installation...

              Here is a copy of the console after type the commands :

              $LOAD_PATH
              ["C:/Program Files (x86)/SketchUp/SketchUp 2013/Tools"]

              Sketchup.find_support_file('Plugins')
              C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins
              File.exist?(Sketchup.find_support_file('Plugins'))
              true

              Dir.entries(f=Sketchup.find_support_file('')).each{|d|p d if File.directory?(File.join(f,d))};puts
              "."
              ".."
              "Components"
              "Exporters"
              "Importers"
              "LayOut"
              "Materials"
              "Plugins"
              "resources"
              "Style Builder"
              "Styles"
              "Support"
              "Tools"

              nil

              @unknownuser said:

              Is it actually named "Plugins" ?
              No trailing space or accented characters etc ??
              If not, then rename it and restart SketchUp...

              I renamed this dir, restarted Sketchup. No error message. Same issue (rb not loaded).

              plugins.JPG
              tools.jpg

              Here is a list of files in Plugins directory :

              su_advancedcameratools.rb
              su_dynamiccomponents.rb
              su_sandbox.rb
              su_webtextures.rb

              and 4 directories with the same name (without .rb)

              @unknownuser said:

              Also please list the .rb files in the 'Tools' folder - unlike v8 other files are now all in the 'Plugins' folder - there should only be three:
              sketchup.rb
              langhandler.rb
              extensions.rb

              Here are list of files in Tools directory :

              extensions.rb
              langhandler.rb
              sketchup.rb

              all with the same date. no other file.

              Do not understand why LOAD_PATH does not include the Plugins folder.
              Attached is a screen capture showing the issue, just after SU starts and images of Sketchup 2013, Plugins and Tools directories.
              I checked again and again the rights : Full control to Administrators, Users, and Everyone.

              ... will become crazy 😞

              1 Reply Last reply Reply Quote 0
              • TIGT Offline
                TIG Moderator
                last edited by

                So apart from having NO rb files in the Plugins folder !
                There should be at least the ones matching the 'su_' subfolders πŸ˜’
                The existing Plugins folder is not getting added to the $LOAD_PATH...

                😲

                Can you select the Plugins folder icon...
                Right-click > context-menu > Properties > Security > Edit and do a Alt-Gr + Prt-Scrn to copy the dialog for every entry...

                I suspect it's your Windows setup rather than SketchUp's issue...
                The Plugins folder won't be listed in $LOAD_PATH if it's not accessible ??

                πŸ˜’

                TIG

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mac1
                  last edited by

                  FYI => just some thoughts;

                  1. Typically windows explorer does not support file tree printing but you can down a small app from MS that allows to do that and avoids typing in long path. There is also a tree command but you get a lots of paper then;
                  2. windows XP , vista, w7 and w8 do not by default show the administrator logon at the welcome screen so I doubt you are logged on as admin and normally do not want to be. You have to separately activate it and that activation is different vs version of the OS see this http://www.raymond.cc/blog/display-administrator-account-on-windows-xp-welcome-screen/;
                  3. Initially when the SU2013 released the plugin folder "Plugin" would not show in the menu bar. It required both su_examples dir and assocated rb file or a plugin that activated. Those are not in your file tree maybe not needed now. https://productforums.google.com/forum/#!mydiscussions/sketchup/wgHev0V84Gg
                  4. Are the two PCs exactly the same;
                  5. Compare file tree of both since one works and other does not;
                  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