Plugin load residue, ruby
-
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.
-
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 ? -
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.
-
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"
. -
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.
Advertisement