• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

Plugin load residue, ruby

Scheduled Pinned Locked Moved Developers' Forum
5 Posts 4 Posters 722 Views 4 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.
  • M Offline
    MAdema
    last edited by 16 Nov 2015, 09:24

    Dear Forum,

    starting to learn to write scripts I came across a load problem on start up sketchup-ruby console.

    I created, used and removed from the plugin file a test script.
    Still on every start up of Sketchup, the program tries to load it:

    Error Loading File ~$akna3klik.rb
    Error: #<ArgumentError: can't find user $akna3klik.rb>

    How can I make sure the program stops looking for the ~$akna3klik.rb?

    with kindest regards.

    1 Reply Last reply Reply Quote 0
    • T Offline
      TIG Moderator
      last edited by 16 Nov 2015, 12:49

      Without knowing what files you have made and where they load from who can say?
      I suspect you have made another RB that is loading [but failing] the now missing RB, which you've deleted ?

      TIG

      1 Reply Last reply Reply Quote 0
      • S Offline
        slbaumgartner
        last edited by 16 Nov 2015, 13:37

        As TIG has said, some other plugin is telling SketchUp to load that (missing) file. Do a text search of the files in your plugins folder looking for a string containing that filename.

        1 Reply Last reply Reply Quote 0
        • D Offline
          Dan Rathbun
          last edited by 16 Nov 2015, 18:47

          I see two (2) issues.

          Ruby uses $name for global variables. Having dollar sign in the filename may confuse the Ruby interpreter.
          If you must use the dollar sign character within a string, escape it like this:
          "somewhere in here \$ there is a dollar sign".

          Second, Ruby tries to expand the tilde character (~) in strings, into the user's home directory path. (ie: ENV["HOME"]) This may be causing the "can't find user" error message.
          If you must use the tilde character within a string, escape it like this:
          "somewhere in here \~ there is a tilde".

          I'm not here much anymore.

          1 Reply Last reply Reply Quote 0
          • M Offline
            MAdema
            last edited by 30 Nov 2015, 13:37

            Thanks for the information, the problem is solved.

            A hidden bakup copy of the .tb file had been created in the Plugin folder. Sketchup kept trying to open that file.
            After making all the files visible in windows, and deleting the file, the problem was solved.

            With kindest regards.

            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