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

    Script loading errors

    Scheduled Pinned Locked Moved Developers' Forum
    10 Posts 3 Posters 2.4k 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.
    • S Offline
      samtsham
      last edited by

      Hi everyone!

      I have been having a problem with certain scripts (in SU6 on OS X) for several months now.

      On startup I get following error-message:
      %(#804000)[Error Loading File flightpathtool.rb
      no such file to load -- linetool.rbError Loading File holes.rb
      no such file to load -- ./offset.rbError Loading File HouseBuilderTool.rb
      (eval):20:in require': no such file to load -- HouseBuilder/HouseBuilder.rbError Loading File viewMemory.rb undefined method active_view' for nil:NilClass]
      Needless to say, all those files are there (in the Plugins-Folder). The housebuilder-message is new, as I only just installed the new version.

      The following scripts are all invisible although present:
      %(#0000BF)[Housebuilder (the current version)
      Sketchy PhysicsV01
      Layer Manager_v5
      projection_extension]

      Probably some others, as I have rather a lot of scripts installed, but these ones, with icons, I've only ever seen in other people's screenshots, and I'm just so damn curious. 😄

      Do I have to post a list of my Plugin-directory content, or does anyone know the knockout-factor here? In the Sketchup-forum I was told to remove sketchup.rb and another one, I forgot, as these are in Tools in SU6. Did that, some error-messages went away and I got the sandbox back, but obviously the issue hasn't been resolved.

      Thanks for any good idea ...

      SAM from Vienna.

      [samtsham]

      1 Reply Last reply Reply Quote 0
      • G Offline
        gata
        last edited by

        For starters, your problem scripts all require other scripts to work. Check to see if you have all required scripts. Open the scripts in a plain text editor like Notepad. Toward the top it list the required scripts.

        Flightpathtools.rb wants sketchup.rb AND linetool.rb; holes.rb wants sketchup.rb AND offset.rb; my version of Housebuilder wants extensions.rb and Langhandler.rb. I have a folder called Housebuilder with Housebuilder.rb in it. So you may be missing some stuff.

        The script authors would have provided additional scripts the main scripts require.

        Check Window>Preferences>Extensions and see if invisible scripts are checked. If checked go to View>Toolbars and check the toolbars you want. A program reload may be required.

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

          Thanks, gata.

          As far as I could, I already checked the Ruby-instructions beforehand, and as far as I can figure out, I have every single file the scripts need.

          I managed to get rid of the error message on Housebuilder, as one element was in the wrong place, and by getting rid of viewmemory.rb, flightpathtool.rb and holes.rb, there are now no Ruby-errors reported at startup anymore.

          However, still none of the above mentioned scripts show up on the Preferences/Extensions - List, so I can't toggle their toolbars. No dice.

          I tried to move them from the user-folder to the general library (a Mac-thing), but still no go. I really have no idea. One script from the long list must silently shoot all the others down.

          Unfortunately the whole thing is rather confusing, with Rubies not only distributed across Tools and Plugins, but also in my Admin-account, and the systemwide Library. It's hard trying to find an error that isn't reported, when I also have to look in 4 Folders for the culprit.

          Would lists of the installed rubies be of help?

          Thanks for your suggestions.

          SAM from Vienna.

          [samtsham]

          1 Reply Last reply Reply Quote 0
          • A Offline
            azuby
            last edited by

            Maybe this will help a bit: Put the following line of code into a file, which will be shown on top of each directory, i.e. '____.rb' (with underlines, right):

            Sketchup.send_action "showRubyPanel;"
            

            This will show the Ruby Console when Sketchup starts. I, as a Ruby developer, have seen, that some scripts print out messages to the console and than stop others running. Maybe you will get some ouput, but I can't guarantee, because I do not know, which scripts get loaded first (you have a couple of directories you described).

            azuby from Berlin 😉

            *error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

            Bad English? PM me, correct me. :smile:**

            1 Reply Last reply Reply Quote 0
            • G Offline
              gata
              last edited by

              On my PC, Housebuilder, Layer Manager, and projection_extension show in Preferences>Extensions. I'm not sure about the latest version of SketchyPhysics.

              Projection and Layer Manager also have folders in Plugins in addition to HouseBuilder folder. Do you have all their parts in the right places?

              Querying the developers for their input might be more useful. Azuby's suggestion too. Flightpathtool and holes, those are RickW's. You could even try contacting him via smustard.com. Didier worked on 3 others. Projection_extension is quite useful. Hope you can get it to work.

              A listing might be useful.

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

                Hi everyone.

                I'm almost up and running!
                Filter+Extension is a no-show, and HouseBuilder displays an error at startup, but appears to work fine, as do all the others.

                I had some of the rubies in subfolders as opposed to the main plugin-folder. I also did the "____.rb"-thing, azuby suggested - good to know, thanks, and after some tweaking, except for Filter+Extension everything works. Thank you for your help.

                Now, here's the error I get at startup:
                %(#FF4000)[Error Loading File filter_extension.rb
                (eval):463: compile error
                (eval):4: parse error, unexpected ',', expecting ')'
                if (n1.between? (n2 - interval), (n2 + interval))
                ^Error Loading File HouseBuilder_extension.rb
                private method `split' called for nil:NilClass]
                Here's the contents of my Plugins-Folder:
                %(#FF0000)[____.rb
                Examples
                examples.rb
                ExamplesEN.strings
                filter
                filter_extension.rb
                filter_extension.txt
                HouseBuilder
                HouseBuilder_extension.rb
                Icons
                Layer Manager
                layer_manager_extension_v5.rb
                Layer_manager_install.jpg
                layer_manager_v5.txt
                pathcopy.rb
                Projection
                projection_extension.rb
                quick_selection
                readme.txt
                Utilities
                utilities.rb
                UtilitiesEN.strings
                vector.flat_angle.rb]
                I threw everything else out 😄
                And here the Tools-Folder:
                %(#FF4000)[extensions.rb
                GettingStarted.rb
                HelpContent_en
                LangHandler.rb
                Sandbox
                SandboxTools.rb
                sketchup.rb
                TOTD.rb
                units.rb
                Utilities]
                I know, that filter-extension.rb requires the langhandler.rb and extensions.rb , and at first I thought, that's the problem, but they are both in Tools, so I don't know, what the problem is.

                It's not, like I really HAVE TO have that ruby, I just like to have all the options at my disposal, so if any of you know what I'm doing wrong, I'd be even happier than I already am.

                Thanks for everything,
                SAM from Vienna.

                [samtsham]

                1 Reply Last reply Reply Quote 0
                • G Offline
                  gata
                  last edited by

                  Filter_extension is comprised of filter_extension.rb and the folder filter. The script quick_selection.rb was included in the filter folder.

                  I do not have a folder called quick selection.

                  Layer_manager_install.jpg is a picture of plugin folder for installation. You do not need it in the program.

                  The txt files are benign. They do not cause a problem. In your case, they are instructions.

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    azuby
                    last edited by

                    Look this line from the error message:

                    if (n1.between? (n2 - interval), (n2 + interval)) # seems to be more OK, if you put the brackets to other places;
                    if n1.between?((n2 - interval), (n2 + interval)) # or
                    if(n1.between?((n2 - interval), (n2 + interval))) # oh no, it's Ruby, you do not need all them
                    if n1.between?(n2 - interval, n2 + interval) # also should work
                    

                    azuby

                    *error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

                    Bad English? PM me, correct me. :smile:**

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

                      Hi Azuby,

                      I can't find the line of code from the error messages in any of the Rubys or subscripts in question. Two of the subscripts of filter_extension are scrambled or compiled, anyway I can't read them.

                      Still, this doesn't appear to be a common problem, and since I downloaded the most current version of the script today, to weed out any chance of a mistake, I hava a hard time believing the problem really lies with the syntax of the script itself.

                      I will keep looking for the code from the error message though. Anything is worth a shot. Could the message be referencing other scripts than those called up by filter_extension.rb? Where should I look?

                      Thank you ...
                      SAM

                      And thanks also to gata, glad there's nothing horrendously wrong with my plugin contents. I'll remove the .txt-files though - enough clutter as it is.

                      [samtsham]

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        azuby
                        last edited by

                        The thing with "between" definitively is an error from the filter_extension extension, it is located in the file filter/geom_selection.rb in line 4. Because the programmers used the evaluation technique, the error is hard to track. So I crawled all the "requires" and decoded them. From the filter_extension.rb you can see who has made the script - F. Rodriguez and Didier Bur.

                        Also have a look on this old (cached) thread

                        For the housebuilder thing look here.

                        azuby

                        *error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

                        Bad English? PM me, correct me. :smile:**

                        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