Lost sketchup.rb
-
My 'require "sketchup"'s all failed today. (They were working yesterday.) I found "sketchup.rb" and added its path to "$:" which found it again, but that pushed the failure to "langhandler" so wasn't really a solution and, of course, wouldn't last from one IRB session to another.
How was this supposed to be set up? (And please save me from "$:" as a variable name! Ruby is supposed to be one better than that language.)
-
I'd reinstall SU.
-
Thanks, ThomThom.
Is it the case that no one knows? Is there a record for consecutive unanswered questions? I'm up to 5.
I'm going to reinstall and then see if I can trace it down. More FILE and $:. Why, oh why, didn't @Last choose Python?
-
I've never heard of such problem. I'd think that's why there's been a lack of response. (plus, it's summer )
-
Hi Martin,
You don't need to re-install - I'm sure this is just a configuration issue.
First, IRB and sketchup.rb do not mix. If you are using IRB, that means you are using the ruby.exe installed by the Ruby Language and not the ruby.dll installed by Sketchup. This is a separate Ruby environment from the one used by Sketchup, and know nothing about SketchUp's classes and objects.
The Ruby Console is the command-line interface to SketchUp's Ruby environment - the one that knows about all the SketchUp classes and objects.
The global variable $LOAD_PATH is the friendly name for $:
How about a screenshot of the errors?
-
@jim said:
Hi Martin,
You don't need to re-install - I'm sure this is just a configuration issue.
First, IRB and sketchup.rb do not mix.
Stupid me! That was the whole problem.
Thanks!
Advertisement