How to find/fix installation errors
-
I load new plugins from time to time, but don't remember what I loaded to get these errors:
Error Loading File examplescripts.rb
undefined method `GetString' for nil:NilClass
no such file to load -- WebTextures/webtextures_loader.rb
Error Loading File webtextures.rb
no such file to load -- WebTextures/webtextures_loader.rbAnyone have an idea?
webtextures.rb is in my tools folder, but I can't find any folder named WebTextures.
UPDATE
I found the WebTextures folder in an old "Tools" folder, so now, even though examplescripts.rb is in the Plugins/Examples folder, I'm left with
%(#FF0000)[Error Loading File examplescripts.rb
undefined method `GetString' for nil:NilClass] -
Have you got 'langhandler.rb' in the Tools folder?
Please tell me you haven't removed the Tools folder !You could try reinstalling Sketchup.
Then look through the Tools folder and Plugins folder [in parallel] and ensure that NO files that are in the Tools folder are also present in the Plugins folder !Sketchup ships with a set of special scripts in the Tools folder.
If you install some extra Sketchup tools they might appear there too.
BUT all other files belong in Plugins or the tool's subfolder in Plugins.
Never have files that belong in the Tools folder 'duplicated' in the Plugins folder ! -
@tig said:
Have you got 'langhandler.rb' in the Tools folder?
Yes
Please tell me you haven't removed the Tools folder !
Remove the Tools Folder No
You could try reinstalling Sketchup.
Eeek! Not yet
Then look through the Tools folder and Plugins folder [in parallel] and ensure that NO files that are in the Tools folder are also present in the Plugins folder !
Side by Side: no duplicates
Sketchup ships with a set of special scripts in the Tools folder.
I always keep a copy of that and the original plugins folder (just in case)
If you install some extra Sketchup tools they might appear there too.
BUT all other files belong in Plugins or the tool's subfolder in Plugins.Never have files that belong in the Tools folder 'duplicated' in the Plugins folder !
Never, Boss, NEVER -
@unknownuser said:
Error Loading File examplescripts.rb undefined method
GetString' for nil:NilClass`Says that there is an error loading the file
examplescripts.rb
- which only loads from the 'Examples' subfolder if the 'Examples' Extension has been activated under Preferences...
So ensure it's in there and not in the Plugins folder on its own - when it'll try to autoload !
That error relates to some code in the script that is trying to do a 'langhandler' method [GetString] or 'Nil' - it only works on a 'String'.
I've looked through the code in my version of that file, and it has no 'GetString' text in it at all...
If you open that file in Notepad does yours ?
-
@tig said:
So ensure it's in there and not in the Plugins folder on its own - when it'll try to autoload !
examplescripts.rb was also in the plugins folder
Thank you, TIG.
Advertisement